Clear Filters
Clear Filters

Can we change color of the some particular pixel in binary image?

3 views (last 30 days)
I have binary image. I want to set red color to 100 white pixel only. Is it possible?
  4 Comments
bamini thavarajah
bamini thavarajah on 5 Dec 2017
I want to select 100 white pixel from binary image. Then I want to give red color for that 100 white pixel only.
bamini thavarajah
bamini thavarajah on 5 Dec 2017
I'd not have to create a new integer or double image to have a value of 100. I have to select random pixel with that original image coordinate. When l use find function that give indices out of size of image.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 5 Dec 2017
This is a duplicate of https://www.mathworks.com/matlabcentral/answers/370483-how-to-change-the-color-of-pixels-in-a-binary-image#comment_512650. A suitable answer was given there so you should not start a duplicate question when you already have a workable answer there.

Community Treasure Hunt

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

Start Hunting!