VanGog wrote:I am going to do mask from the roads and streets.
Can you write syntax how to make multiple fills? As I would want to select more colors and to fill them white to create binary mask.
The only way I know, is
convert image \
-fuzz XX% -fill white -opaque "color1" \
-fuzz YY% -fill white -opaque "color2" \
...
result
You can specify one -fuzz value and it will be used for all fills.
You may want to convert your image to some other colorspace such as HSL, HSB, YUV, etc and separate channels and then look to see if any one channel can be thresholded to give what you need.