Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - thiago.br@live.com

Pages: [1]
1
Python and Java API / Use Raster Transform and Palette
« on: November 27, 2020, 03:55:07 AM »
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)

Pages: [1]