Hai, i had face the problem to segment the dark pink.
Show older comments
i want to remove all unwanted color in the image except the dark pink only. I really hope someone can help me because i reach the due date to submit this programming.
here my coding clear all: close all; clc;
J=imread('TB13.tif'); figure, imshow(J); Red=J(:,:,1); Green=J(:,:,2); Blue=J(:,:,3); figure, imshow(Green), title('Green Image channel'); figure,imhist(Green);
% I=rgb2gray(J); Green_Seg=J;
[r, c]=size(Green_Seg); for i=1:r for j=1:c if Green_Seg(i,j)>=0 && Green_Seg(i,j)<=150 Green_Seg(i,j)=0;
else
Green_Seg(i,j)=255;
end
end
end
figure, imshow(Green_Seg);
Answers (1)
Image Analyst
on 14 May 2018
0 votes
Use the Color Thresholder on the Apps tab of the tool ribbon. Load your file in, use HSV color space, and set the thresholds. Then export the function.
Categories
Find more on Image Preview and Device Configuration 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!