how to obtain Binary image ?? , Image binarization
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I intend to obtain the binary image. The intensity values of real image (varies from 0 to 4096) stored in the matrix, let's say 'h' . I tried to obtain the binarized images with the follwoing code, but I got some wierd image.. Do I need to play with the thresold ??
BW = imbinarize(h,'global');
imagesc(BW);
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 12 月 15 日
imagesc uses the current colormap. After you use it
colormap(gray(2))
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!