OTB.ColorMapping: Maps an input label image to 8-bits RGB using look-up tables.

This application allows one to map a label image to a 8-bits RGB image (in both ways) using different methods. -The custom method allows one to use a custom look-up table. The look-up table is loaded from a text file where each line describes an entry. The typical use of this method is to colorise a classification map. -The continuous method allows mapping a range of values in a scalar input image to a colored image using continuous look-up table, in order to enhance image interpretation. Several look-up tables can been chosen with different color ranges.-The optimal method computes an optimal look-up table. When processing a segmentation label image (label to color), the color difference between adjacent segmented regions is maximized. When processing an unknown color image (color to label), all the present colors are mapped to a continuous label list. - The support image method uses a color support image to associate an average color to each region.

Inputs

Input image filename

format
href
Please set a value for in.

Output image filename

string
Please set a value for out.

Selection of the operation to execute (default is : label to color).

string
Please set a value for op.

Label to use for unknown colors.

integer

Selection of color mapping methods and their parameters.

string
Please set a value for method.

An ASCII file containing the look-up tablewith one color per line(for instance the line '1 255 0 0' means that all pixels with label 1 will be replaced by RGB color 255 0 0)Lines beginning with a # are ignored

format
href
Please set a value for method.custom.lut.

Available look-up tables.

string
Please set a value for method.continuous.lut.

Set the lower input value of the mapping range.

number
Please set a value for method.continuous.min.

Set the higher input value of the mapping range.

number
Please set a value for method.continuous.max.

Value of the background label

integer
Please set a value for method.optimal.background.

Support image filename. For each label, the LUT is calculated from the mean pixel value in the support image, over the corresponding labeled areas. First of all, the support image is normalized with extrema rejection

format
href
Please set a value for method.image.in.

NoData value for each channel of the support image, which will not be handled in the LUT estimation. If NOT checked, ALL the pixel values of the support image will be handled in the LUT estimation.

number

lower quantile for image normalization

integer

upper quantile for image normalization

integer

Available memory for processing (in MB)

integer

Outputs

Output image filename

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.ColorMapping", "title": "Maps an input label image to 8-bits RGB using look-up tables.", "description": "This application allows one to map a label image to a 8-bits RGB image (in both ways) using different methods. -The custom method allows one to use a custom look-up table. The look-up table is loaded from a text file where each line describes an entry. The typical use of this method is to colorise a classification map. -The continuous method allows mapping a range of values in a scalar input image to a colored image using continuous look-up table, in order to enhance image interpretation. Several look-up tables can been chosen with different color ranges.-The optimal method computes an optimal look-up table. When processing a segmentation label image (label to color), the color difference between adjacent segmented regions is maximized. When processing an unknown color image (color to label), all the present colors are mapped to a continuous label list. - The support image method uses a color support image to associate an average color to each region.", "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.ColorMapping/execution"}, {"rel": "alternate", "type": "text/html", "title": "Execute End Point", "href": "http://demo.mapmint.com/ogc-api/processes/OTB.ColorMapping/execution.html"}], "inputs": {"in": {"title": "Input image filename", "description": "Input image filename", "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"}, "out": {"title": "Output image filename", "description": "Output image filename", "schema": {"type": "string", "default": "uint8", "enum": ["uint8", "uint16", "int16", "int32", "int32", "float", "double"]}, "id": "out"}, "op": {"title": "Selection of the operation to execute (default is : label to color).", "description": "Selection of the operation to execute (default is : label to color).", "schema": {"type": "string", "default": "labeltocolor", "enum": ["labeltocolor", "colortolabel"]}, "id": "op"}, "op.colortolabel.notfound": {"title": "Label to use for unknown colors.", "description": "Label to use for unknown colors.", "schema": {"type": "integer", "default": 404, "nullable": true}, "id": "op.colortolabel.notfound"}, "method": {"title": "Selection of color mapping methods and their parameters.", "description": "Selection of color mapping methods and their parameters.", "schema": {"type": "string", "default": "custom", "enum": ["custom", "continuous", "optimal", "image"]}, "id": "method"}, "method.custom.lut": {"title": "An ASCII file containing the look-up tablewith one color per line(for instance the line '1 255 0 0' means that all pixels with label 1 will be replaced by RGB color 255 0 0)Lines beginning with a # are ignored", "description": "An ASCII file containing the look-up tablewith one color per line(for instance the line '1 255 0 0' means that all pixels with label 1 will be replaced by RGB color 255 0 0)Lines beginning with a # are ignored", "extended-schema": {"oneOf": [{"allOf": [{"$ref": "http://zoo-project.org/dl/link.json"}, {"type": "object", "properties": {"type": {"enum": ["text/plain"]}}}]}, {"type": "object", "required": ["value"], "properties": {"value": {"oneOf": [{"type": "string", "contentEncoding": "ascii", "contentMediaType": "text/plain"}]}}}]}, "schema": {"oneOf": [{"type": "string", "contentEncoding": "ascii", "contentMediaType": "text/plain"}]}, "id": "method.custom.lut"}, "method.continuous.lut": {"title": "Available look-up tables.", "description": "Available look-up tables.", "schema": {"type": "string", "default": "red", "enum": ["red", "green", "blue", "grey", "hot", "cool", "spring", "summer", "autumn", "winter", "copper", "jet", "hsv", "overunder", "relief"]}, "id": "method.continuous.lut"}, "method.continuous.min": {"title": "Set the lower input value of the mapping range.", "description": "Set the lower input value of the mapping range.", "schema": {"type": "number", "default": 0, "format": "double"}, "id": "method.continuous.min"}, "method.continuous.max": {"title": "Set the higher input value of the mapping range.", "description": "Set the higher input value of the mapping range.", "schema": {"type": "number", "default": 255, "format": "double"}, "id": "method.continuous.max"}, "method.optimal.background": {"title": "Value of the background label", "description": "Value of the background label", "schema": {"type": "integer", "default": 0}, "id": "method.optimal.background"}, "method.image.in": {"title": "Support image filename. For each label, the LUT is calculated from the mean pixel value in the support image, over the corresponding labeled areas. First of all, the support image is normalized with extrema rejection", "description": "Support image filename. For each label, the LUT is calculated from the mean pixel value in the support image, over the corresponding labeled areas. First of all, the support image is normalized with extrema rejection", "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": "method.image.in"}, "method.image.nodatavalue": {"title": "NoData value for each channel of the support image, which will not be handled in the LUT estimation. If NOT checked, ALL the pixel values of the support image will be handled in the LUT estimation.", "description": "NoData value for each channel of the support image, which will not be handled in the LUT estimation. If NOT checked, ALL the pixel values of the support image will be handled in the LUT estimation.", "schema": {"type": "number", "default": 0, "format": "double", "nullable": true}, "id": "method.image.nodatavalue"}, "method.image.low": {"title": "lower quantile for image normalization", "description": "lower quantile for image normalization", "schema": {"type": "integer", "default": 2, "nullable": true}, "id": "method.image.low"}, "method.image.up": {"title": "upper quantile for image normalization", "description": "upper quantile for image normalization", "schema": {"type": "integer", "default": 2, "nullable": true}, "id": "method.image.up"}, "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 filename", "description": "Output image filename", "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/localhost/ogc-api/processes/OTB.ColorMapping.html
Last modified: Sat Feb 19 15:43:34 CET 2022