New version of the segment detector in Scribo module.
Several improvements have been made on the Segment Detection algorithm.
API Changes
The algorithm has two ways of returning the result depending on the usage:
- Pixel-wise:
detect_line_pixel(const mln::image2d<std::uint8_t>& input, int min_len, const SegDetParams& params)
that returns an image - Vectorial:
detect_line_vector(const mln::image2d<std::uint8_t>& input, int min_len, const SegDetParams& params)
that returns a list of segments
The parameters structure has been updated (for expert):
- second threshold used in observation extraction
- angles are given in degree
Other changes
- Performance optimisation