how to change specific color in image to black?

1 次查看(过去 30 天)
hi i am trying to make a code that change the specific user define color in image to black without changing other
can any one help me this is what i have done
% Read image
im = imread('coloredChips.png');
subplot(2,2,1);
imshow(im);
im(:,:,3)=im(:,:,2);im(:,:,2)=im(:,:,1)
subplot(2,2,2);
imshow(im);
  5 个评论
Rik
Rik 2022-4-29
I think that would make this question a duplicate.
@Muhammad can you give a reason why this question should not be closed?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by