how to eliminate the purple cell

hai...
I have problem which is how to eliminate the purple cell from red cell and save the image in rgb level(original pixel)

2 Comments

Please explain, what you have done so far and if you e.g. work with the image processing toolbox.
I already know how to extract the purple.Now how to remove this purple cell from the original image(in grayscale or rgb or other color)
TQ
%% Reading in the image
myImage = imread('B1.jpg');
figure
imshow(myImage)
%% Extracting the blue plane
bPlane = myImage(:,:,3) - 0.56*(myImage(:,:,1)) - 0.56*(myImage(:,:,2));
figure
imshow(bPlane)
%% Extract out purple cells
figure
BW = bPlane > 23;
imshow(BW)
%% Remove noise 180 pixels or less
BW2 = bwareaopen(BW, 180);
imshow(BW2)

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 19 Sep 2011
This can be done if you adapt one of my color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

3 Comments

i still can remove the purple one because it surrounding with red and the purple color just inside the red cell(bigger cell) where i want to remove.
Do you mean "can" or "can't"???
sorry...
can't..actually...
another question..how to convert binary image which the purple cell was successful remove into the rgb image.can we do?

Sign in to comment.

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Asked:

on 19 Sep 2011

Community Treasure Hunt

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

Start Hunting!