how to change the pixel value of an image

i have an image and i need to change the pixel value of that image in any co-ordinate.

답변 (1개)

Jeff E
Jeff E 2012년 2월 24일

0 개 추천

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
>>

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2012년 2월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by