Hello!
I'm looking forward to set a raster a formula on Raster Calculator and changing the palettes, after generating DEM and an Orthomosaic via Python API.
I have found this example below, but it seems deprecated now. What are the functions to set a formula for raster calculator, apply and change the palettes?
Thanks for now!
chunk.raster_transform.formula = ["(B1+B2+B3)*2/B2"]
chunk.raster_transform.calibrateRange()
chunk.raster_transform.enabled = True
chunk.exportOrthomosaic(outputs+"\\ortho.tif", image_format = PhotoScan.ImageFormatTIFF, raster_transform = PhotoScan.RasterTransformValue, write_world=True, tiff_big=True)