
How to make the grey area completely black, so it's a binary image?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I have a grayscale tumor image like this:

I want to make the grey area complely dark, something like this:

(This is a mask for another image)
so that the white area remailns white, but the grey area goes dark. Is it possible?
0 件のコメント
採用された回答
その他の回答 (1 件)
DGM
2022 年 4 月 16 日
The mask that was used to create the hole in the image is the binarized image. You shouldn't need to turn the source image into a copy of the mask.
but if you must:
A = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/966480/image.bmp');
A(A<255) = 0;
imshow(A)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!