how to change specific color in image to black?

1 Ansicht (letzte 30 Tage)
Muhammad
Muhammad am 28 Apr. 2022
Kommentiert: Rik am 29 Apr. 2022
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 Kommentare
Rik
Rik am 29 Apr. 2022
I think that would make this question a duplicate.
@Muhammad can you give a reason why this question should not be closed?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by