Let's assume we have the following code example, which is loading an image and running Felzenszwalb algorithms on an image:
using Images, ImageSegmentationimg = load("sample-images/cat-3352842_640.jpg");segments = felzenszwalb(img, 75, 350)
What do you think is the output of the algorithm? Or in other words, what is stored in the segments variables? Let's check by typing segments in Julia REPL:
Main> segmentsSegmented Image with: labels map: 426×640 Array{Int64,2} number of labels: 5
We see a well-formatted response, which does not expose any other information except the image size and number of labels or segments. In order to retrieve the information from the segments variable, we have been using the following set of functions: ...