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

2 次查看(过去 30 天)
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?

采纳的回答

Image Analyst
Image Analyst 2018-1-13
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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by