Analyze Segmented Cells in an Image
Analyze Segmented Cells in an Image
Use blob analysis techniques on a segmented image to mark the location and size of complete and nonoverlapping cells in a microscopic image.
i = [image];cells = FillingTransform@Binarize[i, {0, .7}]markers = MaxDetect[DistanceTransform[cells], .25]Compute the watershed segmentation of the cells using the estimated set of markers and select cells based on their area.
segments = SelectComponents[WatershedComponents[GradientFilter[cells, 2], markers], "Area", 200 < # < 2000&];
Colorize[segments]circles = ComponentMeasurements[segments, {"Centroid", "EquivalentDiskRadius"}];
Show[i, Graphics[{Red, Thick, Circle@@#& /@ circles[[All, 2]]}]]