Segmentation of WBC in microscopy images

Stain deconvolution followed by threshold based segmentation is used.
174 Downloads
Updated 21 Nov 2021

View License

Shape and size detection for WBC in blood is necessary for ensuring the ability to eliminate or control the infections or any inflammatory problems in the body.
WBC are of five types, subdivided into two parts,
1)Granulocytes: neutrophils , basophils, eosinophils
2)Agranulocytes: lymphocytes, monocyts.
The nucleus of WBC contains DNA and RNA that are stained by hematoxyline in Purple/blue color and the granules in cytoplasm are stained by eosine in pink color. As agranulocytes does not have granules in cytoplasm we won’t see eosine stained image for them. The function deconv is separating out the hematoxyline stained region and eosin stained region in different output images. The function segmentation can be used on this images to segment out nucleus and cytoplasmics granules.
Approach:
  1. Input RGB image is first deconvoluted to H and E stained Image.
  2. Find threshold for each output deconvolved image.
  3. Plot histogram representing two regions after segmentation.
  4. Apply segmentation based on threshold values.
  5. Output image is binary.
To see the results download this file, some output images are provided.
The segmentation can be done as follows.
InputImg = imread('ALL_IDB1\ALL_IDB1\im\Im061_1.jpg');
deconimg = deconv(InputImg);
H=deconimg(:,:,1);
E=deconimg(:,:,2);
[Sh,Hh,Th,Lh]=segmentation(H);
[Se,He,Te,Le]=segmentation(E);

Cite As

Abhinav Gadge (2024). Segmentation of WBC in microscopy images (https://www.mathworks.com/matlabcentral/fileexchange/102329-segmentation-of-wbc-in-microscopy-images), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!

functions_output/function

functions_output/function

Version Published Release Notes
1.0.0