How to specify the data type of output image as int16

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