Segmentation & confusion matrix for colored image; matrix dimensions must agree.
Ältere Kommentare anzeigen
Pls I'm having issues getting my confusion matrix done. Below are all code-files and picture '1.jpg' is NOT a monochrome image. On plotting the confusion matrix, it keeps giving me
'matrix dimensions must agree'
thank u for the quick response.
2 Kommentare
Sreeja Banerjee
am 29 Sep. 2014
I see that your code requires the file '1.jpg' in order to execute. Could you please attach the file so that I can try to reproduce the error?
bayoishola20
am 2 Okt. 2014
Antworten (2)
Ping-Chang Shih
am 29 Sep. 2014
0 Stimmen
Given that the input image is not a monochrome image, all elements in your "segmented_images" cell array have three dimensions. However, the polygonal ROI image you create (stored as variable "BW_1") has two dimensions. Plugging the two types of variables into the MATLAB "confusion" function causes an error since the two arguments are expected to have the same number of dimensions.
The above conclusion is obtained from my interpretation of your code. If I misunderstood your code, please let me know.
3 Kommentare
bayoishola20
am 2 Okt. 2014
Image Analyst
am 10 Okt. 2014
Are you still having trouble? If so, post your latest code.
bayoishola20
am 10 Okt. 2014
Bearbeitet: bayoishola20
am 10 Okt. 2014
Nurudeen Ayanleye Yusuff
am 22 Jul. 2018
0 Stimmen
please i need code for ISODATA which i will implement in my GUI i created. Also i need how to code accuracy assessment for classified image using kmean of unsupervised classification
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
