How to replace a pixel value of my image with another value?
16 views (last 30 days)
Show older comments
Anon
on 7 Feb 2020
Answered: JESUS DAVID ARIZA ROYETH
on 7 Feb 2020
Hi everyone,
I have a pixel value of my image, which I would like to replace with another pixel value from the same image.
The way I want to do this to replace the coordinate value. I have the coordinate [34 71] in my image, which I would like to replace with the value from the coordinate [34 55]
Any help on this would be greatly appreciated.
0 Comments
Accepted Answer
JESUS DAVID ARIZA ROYETH
on 7 Feb 2020
works for RGB ,grayscale, and black and white images
yourimage(34,71,:)=yourimage(34,55,:)
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Object Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!