필터 지우기
필터 지우기

how to eliminate the purple cell

조회 수: 1 (최근 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에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by