Why i get empty (black image) when extract the pixel label data
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abdullah al-dulaimi
am 17 Nov. 2022
Kommentiert: yasmin ismail
am 10 Okt. 2023
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1196533/image.png)
when i extract pixel label data to path forlder i founded the images empty (black images)!!
0 Kommentare
Akzeptierte Antwort
Navya Singam
am 23 Nov. 2022
Hi,
You can refer to the following MATLAB answer: Why do I get all black image result after exporting Labels as PNG file format from the Image Labeler App? - MATLAB Answers - MATLAB Central (mathworks.com)
1 Kommentar
yasmin ismail
am 10 Okt. 2023
@Navya Singam I used you the link above, it helped to show the label images but how to use it to find jaccrad index , the labeled image already black and gives low jaccard index as shown in attached images and following code:
A = logical(imread('7001-236.png'));
BW_groundTruth =logical(imread('Label_1.png'));
similarity = jaccard(A(:,:,1), BW_groundTruth)
similarity =
0.0925
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows 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!