OTB.ComputeConfusionMatrix: Computes the confusion matrix of a classification

This application computes the confusion matrix of a classification map relative to a ground truth dataset. This ground truth can be given as a raster or a vector data. Only reference and produced pixels with values different from NoData are handled in the calculation of the confusion matrix. The confusion matrix is organized the following way: rows = reference labels, columns = produced labels. In the header of the output file, the reference and produced class labels are ordered according to the rows/columns of the confusion matrix.

Inputs

The input classification image.

format
href
Please set a value for in.

Choice of the output format as a contingency table for unsupervised algorithmsor confusion matrix for supervised ones.

string
Please set a value for format.

Choice of ground truth format

string
Please set a value for ref.

Input image containing the ground truth labels

format
href
Please set a value for ref.raster.in.

Label to be treated as no data in ref raster.

integer

Input vector data of the ground truth

format
href
Please set a value for ref.vector.in.

Field name containing the label values

string
Please set a value for ref.vector.field.

Label to be treated as no data in ref vector. Please note that this value is always used in vector mode, to generate default values. Please set it to a value that does not correspond to a class label.

integer

Label to be treated as no data in input image

integer

Available memory for processing (in MB)

integer

Outputs

Filename to store the output matrix (csv format)

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.ComputeConfusionMatrix", "title": "Computes the confusion matrix of a classification", "description": "This application computes the confusion matrix of a classification map relative to a ground truth dataset. This ground truth can be given as a raster or a vector data. Only reference and produced pixels with values different from NoData are handled in the calculation of the confusion matrix. The confusion matrix is organized the following way: rows = reference labels, columns = produced labels. In the header of the output file, the reference and produced class labels are ordered according to the rows/columns of the confusion matrix.", "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://tb17.geolabs.fr:8119/ogc-api/processes/OTB.ComputeConfusionMatrix/execution"}, {"rel": "alternate", "type": "text/html", "title": "Execute End Point", "href": "http://tb17.geolabs.fr:8119/ogc-api/processes/OTB.ComputeConfusionMatrix/execution.html"}], "inputs": {"in": {"title": "The input classification image.", "description": "The input classification 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"}, "format": {"title": "Choice of the output format as a contingency table for unsupervised algorithmsor confusion matrix for supervised ones.", "description": "Choice of the output format as a contingency table for unsupervised algorithmsor confusion matrix for supervised ones.", "schema": {"type": "string", "default": "confusionmatrix", "enum": ["confusionmatrix", "contingencytable"]}, "id": "format"}, "ref": {"title": "Choice of ground truth format", "description": "Choice of ground truth format", "schema": {"type": "string", "default": "raster", "enum": ["raster", "vector"]}, "id": "ref"}, "ref.raster.in": {"title": "Input image containing the ground truth labels", "description": "Input image containing the ground truth labels", "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": "ref.raster.in"}, "ref.raster.nodata": {"title": "Label to be treated as no data in ref raster.", "description": "Label to be treated as no data in ref raster.", "schema": {"type": "integer", "default": 0, "nullable": true}, "id": "ref.raster.nodata"}, "ref.vector.in": {"title": "Input vector data of the ground truth", "description": "Input vector data of the ground truth", "extended-schema": {"oneOf": [{"allOf": [{"$ref": "http://zoo-project.org/dl/link.json"}, {"type": "object", "properties": {"type": {"enum": ["text/xml", "application/vnd.google-earth.kml+xml", "application/json", "application/zip"]}}}]}, {"type": "object", "required": ["value"], "properties": {"value": {"oneOf": [{"type": "string", "contentEncoding": "utf-8", "contentMediaType": "text/xml"}, {"type": "string", "contentEncoding": "utf-8", "contentMediaType": "application/vnd.google-earth.kml+xml"}, {"type": "object"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "application/zip"}]}}}]}, "schema": {"oneOf": [{"type": "string", "contentEncoding": "utf-8", "contentMediaType": "text/xml"}, {"type": "string", "contentEncoding": "utf-8", "contentMediaType": "application/vnd.google-earth.kml+xml"}, {"type": "object"}, {"type": "string", "contentEncoding": "base64", "contentMediaType": "application/zip"}]}, "id": "ref.vector.in"}, "ref.vector.field": {"title": "Field name containing the label values", "description": "Field name containing the label values", "maxOccurs": 1024, "schema": {"type": "string"}, "id": "ref.vector.field"}, "ref.vector.nodata": {"title": "Label to be treated as no data in ref vector. Please note that this value is always used in vector mode, to generate default values. Please set it to a value that does not correspond to a class label.", "description": "Label to be treated as no data in ref vector. Please note that this value is always used in vector mode, to generate default values. Please set it to a value that does not correspond to a class label.", "schema": {"type": "integer", "default": 0, "nullable": true}, "id": "ref.vector.nodata"}, "nodatalabel": {"title": "Label to be treated as no data in input image", "description": "Label to be treated as no data in input image", "schema": {"type": "integer", "default": 0, "nullable": true}, "id": "nodatalabel"}, "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": "Filename to store the output matrix (csv format)", "description": "Filename to store the output matrix (csv format)", "extended-schema": {"oneOf": [{"allOf": [{"$ref": "http://zoo-project.org/dl/link.json"}, {"type": "object", "properties": {"type": {"enum": ["text/csv"]}}}]}, {"type": "object", "required": ["value"], "properties": {"value": {"oneOf": [{"type": "string", "contentEncoding": "utf-8", "contentMediaType": "text/csv"}]}}}]}, "schema": {"oneOf": [{"type": "string", "contentEncoding": "utf-8", "contentMediaType": "text/csv"}]}, "id": "out"}}}

http://tb17.geolabs.fr:8119/ogc-api/processes/OTB.ComputeConfusionMatrix.html
Last modified: Sat Feb 19 15:43:34 CET 2022