Issue with my script Matrix dimensions must agree
Mostrar comentarios más antiguos
My script returns a matrix error. I'm a first time matlab user and have no idea how to fix the issue but I assume it is simple. I've attached the entire script "FFT_Final_1CH" as will as the image file it is meant to analyse.
Matrix dimensions must agree.
Error in graphImageFinal (line 45) impfMask = impf.*mask;
Error in FFT_Final_1CH (line 165) [A2, Int2, aMax2, Scale2, EntFFT(l), OIFor(l)] = graphImageFinal(im1,...
6 comentarios
Walter Roberson
el 5 de Feb. de 2018
Without looking at the code, I can predict that probably mask is 2D bug impf is probably 3D (RGB)
Arash Tehrani
el 5 de Feb. de 2018
Walter Roberson
el 5 de Feb. de 2018
If it is the problem I suspect then
impfMask = impf.*mask(:,:,[1 1 1]);
Arash Tehrani
el 5 de Feb. de 2018
Walter Roberson
el 6 de Feb. de 2018
Editada: Walter Roberson
el 6 de Feb. de 2018
That problem does not occur on the random tif images I had sitting around. I will need a sample image from you to test with. Also, are there any non-default settings to use in the input dialog?
Arash Tehrani
el 6 de Feb. de 2018
Respuestas (0)
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!