how to eliminate the purple cell

2 次查看(过去 30 天)
Ahmed
Ahmed 2011-9-19
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 个评论
Jan
Jan 2011-9-19
Please explain, what you have done so far and if you e.g. work with the image processing toolbox.
Ahmed
Ahmed 2011-9-22
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)

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2011-9-19
This can be done if you adapt one of my color segmentation demos: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  3 个评论
Image Analyst
Image Analyst 2011-9-22
Do you mean "can" or "can't"???
Ahmed
Ahmed 2011-9-23
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by