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

3 次查看(过去 30 天)
I have binary image. I want to set red color to 100 white pixel only. Is it possible?
  4 个评论
bamini thavarajah
bamini thavarajah 2017-12-5
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 2017-12-5
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.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2017-12-5
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.

类别

Help CenterFile Exchange 中查找有关 Red 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by