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

3 views (last 30 days)
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?

Accepted Answer

Image Analyst
Image Analyst on 13 Jan 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 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!