Extracting white blood cell from cell samples
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I am working on leukemia images. http://www.clinicalflow.com/Cases/Case_List/Acute_Lymphoblastic_Leukemia_%28ALL%29_general.
I need to extract only the purple cells, which are also the largest cells as opposed to others. Plz let me know how to extract only those cells , and also how i can find the area, mean and intensity of these cells alone. Kindly help..
Thank you,
Mona
댓글 수: 1
답변 (1개)
Sarah Wait Zaranek
2011년 3월 16일
This should be enough to get you started. I filtered the purple cells by looking at the blue color plane. I then removed any noise - and used region properties to get the area of the cells. You can use region properties to get a list of pixels and use that to calculate mean values from the original image.
%%Reading in the image
myImage = imread('L1+blast.jpg');
figure
imshow(myImage)
%%Extracting the blue plane
bPlane = myImage(:,:,3) - 0.5*(myImage(:,:,1)) - 0.5*(myImage(:,:,2));
figure
imshow(bPlane)
%%Extract out purple cells
figure
BW = bPlane > 29;
imshow(BW)
%%Remove noise 100 pixels or less
BW2 = bwareaopen(BW, 100);
imshow(BW2)
%%Calculate area of regions
cellStats = regionprops(BW2, 'all');
cellAreas = [cellStats(:).Area];
%%Superimpose onto original image
figure, imshow(myImage), hold on
himage = imshow(BW2);
set(himage, 'AlphaData', 0.5);
댓글 수: 4
murk hassan memon
2017년 2월 9일
i am facing this type of error when i am converting gray from original and then extracting blue pan kindly help me to resolve this problem and if i am making any mistake then also tell me the write way to code
Navin Kumar
2020년 5월 22일
Hi,how can i segment cells and nucleus separately?By applying the above code,only the nucleus get segmented.So i applied lab color space and kmeans.For some images only i got correct answer,please let me know how to extract cells.
참고 항목
카테고리
Help Center 및 File Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!