Issue with my script Matrix dimensions must agree
이전 댓글 표시
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
Walter Roberson
2018년 2월 5일
Without looking at the code, I can predict that probably mask is 2D bug impf is probably 3D (RGB)
Arash Tehrani
2018년 2월 5일
Walter Roberson
2018년 2월 5일
If it is the problem I suspect then
impfMask = impf.*mask(:,:,[1 1 1]);
Arash Tehrani
2018년 2월 5일
Walter Roberson
2018년 2월 6일
편집: Walter Roberson
2018년 2월 6일
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
2018년 2월 6일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!