Borrar filtros
Borrar filtros

What is difference between "orientation" of Regionprops and "principal component coefficients" of PCA

3 visualizaciones (últimos 30 días)
Hi
I am stuck in my work because of few confusions.
1. Is the difference of "principal component coefficients" of PCA and "orientation" of regionprops? Do they give the same result?
2. In PCA, By default, pca centers the data and uses the singular value decomposition (SVD) algorithm. But what if I use regionprops to get orientation? Is that on centered data as well?
Can anyone clarify please?

Respuesta aceptada

Image Analyst
Image Analyst el 13 de En. de 2018
The orientation fits an ellipse to the blob and gives you the angle of the major axis. PCA (demo attached) gives the PCs of the data not the angle. Of course PC1 will align with the major axis but the PC1 values themselves are the values of the image along the PC1 direction. So for a megapixel binary image you'd get a million floating point values that are the binary image interpolated at the new locations in PC-space.
Think of a color image with a gamut that looks like a long cigar if you were to do a scatterplot of the color values. now PC1 would be along the long axis of the cigar. PC1 is the major axis of the rotated coordinate system. PC2 and PC3 are the short axes perpendicular to the main cigar axis. So the new PC1 value is a linear combination of the red, green, and blue values. It's basically a gray level, not an angle like orientation from regionprops is.
  3 comentarios
Image Analyst
Image Analyst el 14 de En. de 2018
Why don't you calculate each and plot them over the blobs and see which you agree with more overall?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by