can I take pca analysis of columns extracted from pixel values of a converted to gray image?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
starting columns and ending columns
I made a code that outputs the pixel values of the columns from an image.
meanpixelvalues(i) = meanpixelvalues(binaryImage(masks));
I then applied pca analysis to the pixel values and the pca code output 1:
coeff = pca(meanpixelvalues(i))
Results:
coeff =
1
but I don't think that's physically possible and i'm wondering what did i do wrong to get a value of 1 and what does the columns of an image mean?
Thank you.
4 comentarios
Respuestas (1)
Image Analyst
el 20 de En. de 2023
You can do it. I attach an example where I did it for an RGB image where each column was one of the color channels converted into a column vector. But if your variables (features) are individual channels of a gray scale image, like you said, it's difficult to interpret. Why do you want to do it if you don't know what the PCs would represent?
7 comentarios
Ver también
Categorías
Más información sobre Dimensionality Reduction and Feature Extraction en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!