how to change the pixel value of an image
1 次查看(过去 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!