ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
74 stars 21 forks source link

About applying the generated mask back to the RGB file #57

Closed xxie12 closed 2 years ago

xxie12 commented 2 years ago

Hi,

I wonder if any function or command line can apply the mask to the original RGB file for sentinel 2? Thanks.

neilflood commented 2 years ago

No, we do not supply anything like that. This would be part of a more general set of tools for processing raster images. Some possible tools for this sort of thing include the Raster Calculator in QGIS, or the gdal_calc.py command in GDAL. For more flexible programming tools for raster processing, you could also look at GDAL's Python bindings, or tools like rasterio or RIOS, which are both layered on top of GDAL.