Add a mask to filter segments
A lot of segments are some times detected in the vegetation and could be filtered before applying registration.
In a more general way, we could provide a binary mask to filter segments in any area. This filter will be applied before filtering segments on geometrical criteria.