calculates a cumulated histogram of blob sizes
[CumulatedSizeHistogram ListOfSizes] = CumulateSizeHistogram(BlobImage); CumulatedSizeHistogram = CumulateSizeHistogram(BlobImage);
2D matrix of type uint32 or int32
row vector containing the cumulated histogram
vector that contains all blob sizes. This parameter is optional.
This function calculates a cumulated histogram of blob sizes.
global IPD_PATH; RGB = ReadImage(IPD_PATH + 'demos\teaset.png'); Image = RGB2Gray(RGB); ThresholdImage = SegmentByThreshold(Image, 200); BlobImage = SearchBlobs(ThresholdImage); [CumulatedSizeHistogram ListOfSizes] = CumulateSizeHistogram(BlobImage); figure(); plot(ListOfSizes, CumulatedSizeHistogram); | ![]() | ![]() |