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. The ground truth can be provided as either 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 nodata in the reference raster.

integer

Input vector data of the ground truth

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

Label to be treated as nodata in the reference 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 nodata in the 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. The ground truth can be provided as either 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": "execute", "type": "application/json", "title": "Execute End Point", "href": "http://tb17.geolabs.fr:8090/ogc-api/processes/OTB.ComputeConfusionMatrix/execution"}, {"rel": "alternate", "type": "text/html", "title": "Execute End Point", "href": "http://tb17.geolabs.fr:8090/ogc-api/processes/OTB.ComputeConfusionMatrix/execution.html"}], "inputs": {"in": {"title": "The input classification image.", "description": "The input classification image.", "maxOccurs": 1, "extentded-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.", "maxOccurs": 1, "schema": {"type": "string", "default": "confusionmatrix", "enum": ["confusionmatrix", "contingencytable"]}, "id": "format"}, "ref": {"title": "Choice of ground truth format", "description": "Choice of ground truth format", "maxOccurs": 1, "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", "maxOccurs": 1, "extentded-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 nodata in the reference raster.", "description": "Label to be treated as nodata in the reference raster.", "maxOccurs": 1, "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", "maxOccurs": 1, "extentded-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.nodata": {"title": "Label to be treated as nodata in the reference 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 nodata in the reference 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.", "maxOccurs": 1, "schema": {"type": "integer", "default": 0, "nullable": true}, "id": "ref.vector.nodata"}, "nodatalabel": {"title": "Label to be treated as nodata in the input image", "description": "Label to be treated as nodata in the input image", "maxOccurs": 1, "schema": {"type": "integer", "default": 0, "nullable": true}, "id": "nodatalabel"}, "ram": {"title": "Available memory for processing (in MB).", "description": "Available memory for processing (in MB).", "maxOccurs": 1, "schema": {"type": "integer", "default": 256, "nullable": true}, "id": "ram"}}, "outputs": {"out": {"title": "Filename to store the output matrix (csv format)", "description": "Filename to store the output matrix (csv format)", "extentded-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:8090/ogc-api/processes/OTB.ComputeConfusionMatrix.html
Last modified: Wed Jun 9 17:39:32 CEST 2021