Research Article
Comparative Analysis between LDR and HDR Images for Automatic Fruit Recognition and Counting
Algorithm 1
Fruits detection and counting algorithm pseudocode.
Load image | Convert RGB image to HSV image: rgb2hsv | Define: hueThresholdLow: Hue component lower threshold | hueThresholdHigh: Hue component higher threshold | smallAcceptArea: Smallest acceptable area | Apply the hue thresholds to the loaded image | Filter out objects smaller than smallAcceptArea | Define: radmin: minimum radius value | radmax: maximum radius value | sensitivity: factor for circular Hough transform accumulator array | Funtion to detect circles between radmin and radmax: imfindcircles(image, [radmin radmax], sensitivity) |
|