Saving labels as an image file
이전 댓글 표시
Hello,
I have segmented an image and created a matrix which gives each segmented object a unique label (similar to the matrix resulting from 'bwlabel' but many of the objects touch). I would like to save the label matrix so that I can later read it back in for further processing.
I have tried saving the matrix using 'imwrite', however the result is a binary image with all labels set to 255 rather than a grayscale leaving each with a unique identifier. I have tried saving it as a jpg, tif, and bmp, all of which give me the same results. When I use the 'label2rgb' function, the individual objects save just fine, but then I can't turn the image back into labels easily.
Thank you!
Jocelyn
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Build Interactive Tools에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!