필터 지우기
필터 지우기

Saving a labeled image

조회 수: 2 (최근 30일)
med-sweng
med-sweng 2013년 12월 19일
I have used the function `bwlabel` to label an image as follows:
[L, num] = bwlabel(I, 8);
For the the image I'm working with, say I have got `20` lables. Thus, when you run `unique(L)`, you will get a number list up to `20`.
The issue is that when I `imwrite(L)`, and the run `unique` on that new written image, I get the values of the pixels as their intensity in the original image I labeled, and not as a labeled image.
How can I `imwrite` that labeled image, while keeping it a labeled image?
Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by