The graph-based approach

This time, will be using the Felzenszwalb algorithm, which is an unsupervised and efficient graph-based approach. It was proposed by P.F Felzenszwalb and Huttenlocher in 2004 and has been actively used in computer vision since. The benefits of using the Felzenszwalb algorithm are as follows:

  • A small number of hyperparameters
  • Fast and linear execution time
  • Preserves details in low variability areas

Julia implements Felzenszwalb algorithms in the felzenszwalb function, which is part of the ImageSegmentation package. felzenszwalb has two parameters:

  • The threshold for the region merging step; the bigger the value, the larger the segment, which is usually set from 10 to 500
  • Minimum (optional) segment size; usually 20 ...

Get Hands-On Computer Vision with Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.