Hello to everyone, first of all thank you in advance for all of your answer.
I'm working on a project that giving an image in input i have to create a mask of a certain class of pixels. After an elaboration on the bands, i got this:
This one is the image masked:
Considering that every image I have to process generates a mask that has a lines shape like this (horizontal, oblique or vertical) i'm looking for a fast way that can connect the pixel of the mask that are along the same line, sufficiently close and that have similar numerical properties (referred to the RGB bands and the NIR band) known to me.
Any ideas ?