OTB.Convert: Convert an image to a different format, optionally 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 of the data range, by default it's set from 23777730013402120 9833613364400f the data values. The rescale can be linear or log2. The choice of the output channels can be done with the extended filename, but less easy to handle. To do this, a 'channels' parameter allows you to select the desired bands at the output. There are 3 modes, the available choices are: * grayscale : to display mono image as standard color image * rgb : select 3 bands in the input image (multi-bands) * all : keep all bands.

Inputs

Input image

format
href
Please set a value for in.

Transfer function for the rescaling

string
Please set a value for type.

Gamma correction factor

number

Optional mask to indicate which pixels are valid for computing the histogram quantiles. Only pixels where the mask is less than 0.5 will contribute to the histogram. The mask must have the same dimensions as the input image.

format
href
Please set a value for mask.

Quantiles to cut from histogram high values before computing min/max rescaling (in percent, 2 by default)

number

Quantiles to cut from histogram low values before computing min/max rescaling (in percent, 2 by default)

number

Output image

string
Please set a value for out.

It's possible to select the channels of the output image. There are 3 modes, the available choices are:

string
Please set a value for channels.

channels.grayscale.channel

integer
Please set a value for channels.grayscale.channel.

Red channel index.

integer
Please set a value for channels.rgb.red.

Green channel index.

integer
Please set a value for channels.rgb.green.

Blue channel index.

integer
Please set a value for channels.rgb.blue.

Available memory for processing (in MB)

integer

Outputs

Output image

format
transmission

Execution options

successUri
inProgressUri
failedUri

format

mode

Execute End Point

View the execution endpoint of a process.

View the alternative version in HTML.

{"id": "OTB.Convert", "title": "Convert an image to a different format, optionally rescaling the data and/or changing the pixel type.", "description": "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 of the data range, by default it's set from 23777730013402120 9833613364400f the data values. The rescale can be linear or log2. The choice of the output channels can be done with the extended filename, but less easy to handle. To do this, a 'channels' parameter allows you to select the desired bands at the output. There are 3 modes, the available choices are: * grayscale : to display mono image as standard color image * rgb : select 3 bands in the input image (multi-bands) * all : keep all bands.", "version": "1.0.0", "jobControlOptions": ["sync-execute", "async-execute", "dismiss"], "outputTransmission": ["value", "reference"], "links": [{"rel": "http://www.opengis.net/def/rel/ogc/1.0/execute", "type": "application/json", "title": "Execute End Point", "href": "http://demo.mapmint.com/ogc-api/processes/OTB.Convert/execution"}, {"rel": "alternate", "type": "text/html", "title": "Execute End Point", "href": "http://demo.mapmint.com/ogc-api/processes/OTB.Convert/execution.html"}], "inputs": {"in": {"title": "Input image", "description": "Input image", "extended-schema": {"oneOf": [{"allOf": [{"$ref": "http://zoo-project.org/dl/link.json"}, {"type": "object", "properties": {"type": {"enum": ["image/tiff", "image/jpeg", "image/png"]}}}]}, {"type": "object", "required": ["value"], "properties": {"value": {"oneOf": [{"type": "string", "contentEncoding": "base64", "contentMediaType": "image/tiff"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/jpeg"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/png"}]}}}]}, "schema": {"oneOf": [{"type": "string", "contentEncoding": "base64", "contentMediaType": "image/tiff"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/jpeg"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/png"}]}, "id": "in"}, "type": {"title": "Transfer function for the rescaling", "description": "Transfer function for the rescaling", "schema": {"type": "string", "default": "none", "enum": ["none", "linear", "log2"]}, "id": "type"}, "type.linear.gamma": {"title": "Gamma correction factor", "description": "Gamma correction factor", "schema": {"type": "number", "default": 1, "format": "double", "nullable": true}, "id": "type.linear.gamma"}, "mask": {"title": "Optional mask to indicate which pixels are valid for computing the histogram quantiles. Only pixels where the mask is less than 0.5 will contribute to the histogram. The mask must have the same dimensions as the input image.", "description": "Optional mask to indicate which pixels are valid for computing the histogram quantiles. Only pixels where the mask is less than 0.5 will contribute to the histogram. The mask must have the same dimensions as the input image.", "extended-schema": {"oneOf": [{"allOf": [{"$ref": "http://zoo-project.org/dl/link.json"}, {"type": "object", "properties": {"type": {"enum": ["image/tiff", "image/jpeg", "image/png"]}}}]}, {"type": "object", "required": ["value"], "properties": {"value": {"oneOf": [{"type": "string", "contentEncoding": "base64", "contentMediaType": "image/tiff"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/jpeg"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/png"}]}}}], "nullable": true}, "schema": {"oneOf": [{"type": "string", "contentEncoding": "base64", "contentMediaType": "image/tiff"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/jpeg"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/png"}]}, "id": "mask"}, "hcp.high": {"title": "Quantiles to cut from histogram high values before computing min/max rescaling (in percent, 2 by default)", "description": "Quantiles to cut from histogram high values before computing min/max rescaling (in percent, 2 by default)", "schema": {"type": "number", "default": 2, "format": "double", "nullable": true}, "id": "hcp.high"}, "hcp.low": {"title": "Quantiles to cut from histogram low values before computing min/max rescaling (in percent, 2 by default)", "description": "Quantiles to cut from histogram low values before computing min/max rescaling (in percent, 2 by default)", "schema": {"type": "number", "default": 2, "format": "double", "nullable": true}, "id": "hcp.low"}, "out": {"title": "Output image", "description": "Output image", "schema": {"type": "string", "default": "uint8", "enum": ["uint8", "uint16", "int16", "int32", "int32", "float", "double"]}, "id": "out"}, "channels": {"title": "It's possible to select the channels of the output image. There are 3 modes, the available choices are:", "description": "It's possible to select the channels of the output image. There are 3 modes, the available choices are:", "schema": {"type": "string", "default": "all", "enum": ["all", "grayscale", "rgb"]}, "id": "channels"}, "channels.grayscale.channel": {"title": "channels.grayscale.channel", "description": "channels.grayscale.channel", "schema": {"type": "integer", "default": 1}, "id": "channels.grayscale.channel"}, "channels.rgb.red": {"title": "Red channel index.", "description": "Red channel index.", "schema": {"type": "integer"}, "id": "channels.rgb.red"}, "channels.rgb.green": {"title": "Green channel index.", "description": "Green channel index.", "schema": {"type": "integer"}, "id": "channels.rgb.green"}, "channels.rgb.blue": {"title": "Blue channel index.", "description": "Blue channel index.", "schema": {"type": "integer"}, "id": "channels.rgb.blue"}, "ram": {"title": "Available memory for processing (in MB)", "description": "Available memory for processing (in MB)", "schema": {"type": "integer", "default": 128, "nullable": true}, "id": "ram"}}, "outputs": {"out": {"title": "Output image", "description": "Output image", "extended-schema": {"oneOf": [{"allOf": [{"$ref": "http://zoo-project.org/dl/link.json"}, {"type": "object", "properties": {"type": {"enum": ["image/tiff", "image/jpeg", "image/png"]}}}]}, {"type": "object", "required": ["value"], "properties": {"value": {"oneOf": [{"type": "string", "contentEncoding": "base64", "contentMediaType": "image/tiff"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/jpeg"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/png"}]}}}]}, "schema": {"oneOf": [{"type": "string", "contentEncoding": "base64", "contentMediaType": "image/tiff"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/jpeg"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "image/png"}]}, "id": "out"}}}

http://demo.mapmint.com/ogc-apihttp://localhost/ogc-api/processes/OTB.Convert.html
Last modified: Sat Feb 19 15:43:34 CET 2022