Devang
1
I was trying to use otbApllication module in Python for orthorectification.
Like the GUI I want to specify the output image data type to be int16.
How can I specify that in the :
app.SetParameterString(“io.out”, “output_image.tif”)
instruction.
Thanking you
Cedric
2
Hello,
the syntax is :
[...]
app.SetParameterString("io.out", "output_image.tif")
app.SetParameterOutputImagePixelType("io.out", otb.ImagePixelType_int16)
[...]
Available pixel types in the python module are :
otb.ImagePixelType_cdouble
otb.ImagePixelType_cfloat
otb.ImagePixelType_cint16
otb.ImagePixelType_cint32
otb.ImagePixelType_double
otb.ImagePixelType_float
otb.ImagePixelType_int16
otb.ImagePixelType_int32
otb.ImagePixelType_uint16
otb.ImagePixelType_uint32
otb.ImagePixelType_uint8
Cédric
2 Likes