Segmentation of WBC in microscopy images
Version 1.0.0 (1.75 MB) by Abhinav Gadge
Stain deconvolution followed by threshold based segmentation is used.
Updated 21 Nov 2021
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.
- Input RGB image is first deconvoluted to H and E stained Image.
- Find threshold for each output deconvolved image.
- Plot histogram representing two regions after segmentation.
- Apply segmentation based on threshold values.
- 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);
Abhinav Gadge (2023). 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 CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.