Convert an image to a different format, eventually rescaling the data and/or changing the pixel type.
This application performs an image pixel type conversion (short, ushort, uchar, int, uint, float and double
types are handled). The output image is written in the specified format (ie. that corresponds to the given
extension).
The conversion can include a rescale using the image 2 percent minimum and maximum values. The rescale
can be linear or log2.
This section describes in details the parameters available for this application. Table 4.6, page 422 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is Convert.
Parameter key | Parameter type |
Parameter description |
in | Input image |
Input image |
type | Choices |
Rescale type |
type none | Choice |
None |
type linear | Choice |
Linear |
type log2 | Choice |
Log2 |
type.linear.gamma | Float |
Gamma correction factor |
mask | Input image |
Input mask |
hcp | Group |
Histogram Cutting Parameters |
hcp.high | Float |
High Cut Quantile |
hcp.low | Float |
Low Cut Quantile |
out | Output image |
Output Image |
ram | Int |
Available RAM (Mb) |
inxml | XML input parameters file |
Load otb application from xml file |
outxml | XML output parameters file |
Save otb application to xml file |
|
||
|
||
|
||
|
||
|
Rescale type Transfer function for the rescaling Available choices are:
Input mask The masked pixels won’t be used to adapt the dynamic (the mask must have the same dimensions as the input image)
Histogram Cutting Parameters Parameters to cut the histogram edges before rescaling
Available RAM (Mb) Available memory for processing (in MB)
Load otb application from xml file Load otb application from xml file
Save otb application to xml file Save otb application to xml file
To run this example in command-line, use the following:
To run this example from Python, use the following code snippet:
None
This application has been written by OTB-Team.
These additional ressources can be useful for further information: