mixture.py
Go to the documentation of this file.
1 from terralib import raster, rp, core
2 
3 rst = raster.open(core.TERRALIB_DATA_DIR + '/geotiff/cbers2b_rgb342_crop.tif')
4 rp.MixtureModelPCA(rst, 'mixturepca.tif', range(0,3),{'clouds':[255.0, 184.875, 255.0], 'shadow':[42.075, 24.99, 49.98], 'vegetation':[99.96, 64.005, 154.02]}, True)
5 rp.MixtureModelLinear(rst, 'mixturelinear.tif', range(0,3),{'clouds':[255.0, 184.875, 255.0], 'shadow':[42.075, 24.99, 49.98], 'vegetation':[99.96, 64.005, 154.02]}, True)