What is difference between "orientation" of Regionprops and "principal component coefficients" of PCA
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ashbub
am 13 Jan. 2018
Kommentiert: Ashbub
am 15 Jan. 2018
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?
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 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 Kommentare
Image Analyst
am 14 Jan. 2018
Why don't you calculate each and plot them over the blobs and see which you agree with more overall?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dimensionality Reduction and Feature Extraction finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!