How can i modify matrix which i retrieve from image?
古いコメントを表示
I have a gray image, i want to see only the black part ,rest of image i want to replace with value 250, so that gray part will be white.
f=imread('image1.jpg');
T = zeros(size(f));
for ii = 1:numel(f)
if f(ii)<50
T(ii) = f(ii);
else
T(ii) = 250;
end
end
imshow(T)
5 件のコメント
Matt J
2013 年 6 月 19 日
Yes, the code you've shown would accomplish that, so what is your question?
Iain
2013 年 6 月 19 日
What, exactly, is your question?
Umme Tania
2013 年 6 月 19 日
Evan
2013 年 6 月 19 日
What's the minimum value of your image?
Umme Tania
2013 年 6 月 19 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!