Obtaining Histogram of the size of apples in an image
Version 1.0.6 (287 KB) by
NEMANTH KUMAR M S
In an image containing multiple apples, the histogram is plotted based on the size of apples present in the image into the three bin size.
In this project, an image containing multiple apple is taken and the following steps are implemented to compute the histogram of size of apples in an image.
- Color clustering is done to separate the images from the background.
- Used active contour to segment the objects in the image.
- Based on the color threshold, the segmentation of red apples from the image is done and other threshold values are used to segment the green apples from the image.
- Morphological operations are done to get the proper shape and size of the apples as in the original image.
- Area of each of the apple is calculated and the histogram is plotted based on the range obtained from the size of the objects.
Some samples:
Cite As
NEMANTH KUMAR M S (2024). Obtaining Histogram of the size of apples in an image (https://www.mathworks.com/matlabcentral/fileexchange/102324-obtaining-histogram-of-the-size-of-apples-in-an-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.