Hi there,
I try to use raster-transforms, actually to export NDVI-Orthos.
When I run my script, a RunTimeError occurs, when exporting the ortho
Without "raster_transform = PhotoScan.RasterTransformValue", everything works fine.
Do I use the wrong syntax ?
Thanks, Ruedi
...
self.chunk.raster_transform.formula = ["(B4-B2)/(B4+B2)"]
self.chunk.raster_transform.calibrateRange()
self.chunk.raster_transform.enabled = True
self.chunk.exportOrthomosaic(saveOrtho, image_format = PhotoScan.ImageFormatTIFF, raster_transform = PhotoScan.RasterTransformValue)
...
Log:
2018-01-03 10:46:00 Agisoft PhotoScan Professional Version: 1.4.0 build 5650 (64 bit)
2018-01-03 10:46:00 Platform: Mac OS
2018-01-03 10:46:00 CPU: Intel(R) Xeon(R) CPU X5670 @ 2.93GHz (server)
...
2018-01-03 12:43:33 self.chunk.exportOrthomosaic(saveOrtho, image_format = PhotoScan.ImageFormatTIFF, raster_transform = PhotoScan.RasterTransformValue)
2018-01-03 12:43:33 RuntimeError: Invalid data type
2018-01-03 12:43:33 Error: Invalid data type