how to change the pixel value of an image
2 ビュー (過去 30 日間)
古いコメントを表示
i have an image and i need to change the pixel value of that image in any co-ordinate.
0 件のコメント
回答 (1 件)
Jeff E
2012 年 2 月 24 日
Assuming a grayscale image:
>> img = uint8([10 30 50 ; 3 4 10])
img =
10 30 50
3 4 10
>> img(2,2) = 0
img =
10 30 50
3 0 10
>>
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!