how to convert a gray level to another gray level in matlab?
1 回表示 (過去 30 日間)
古いコメントを表示
i have an gray scale image.i want to change some gray level to another gray level.for example i want to convert all pixel with value 128 to 0 ,how can i do this?
0 件のコメント
採用された回答
その他の回答 (1 件)
Muhammad Usman Saleem
2016 年 4 月 4 日
my_image =imread('YourImage.tif');
for R=1:num of Rows
for C=1:num of Columns
pixel=my_image(R,C);
if pixel ==128
pixel=0;
end
end
1 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!