# CompareImages

## Brief Description

Estimator between 2 images.

## Tags

Statistics

## Long Description

This application computes MSE (Mean Squared Error), MAE (Mean Absolute Error) and PSNR (Peak Signal to Noise Ratio) between the channel of two images (reference and measurement). The user has to set the used channel and can specify a ROI.

## Parameters

- [param] -ref <string> . Mandatory: True. Default Value: "0"
- [param] -meas <string> . Mandatory: True. Default Value: "0"
- [param] -roi <string> . Mandatory: True. Default Value: "0"
- [param] -mse <float> Mean Squared Error value. Mandatory: True. Default Value: "0.0"
- [param] -mae <float> Mean Absolute Error value. Mandatory: True. Default Value: "0.0"
- [param] -psnr <float> Peak Signal to Noise Ratio value. Mandatory: True. Default Value: "0.0"
- [param] -inxml <string> Load otb application from xml file. Mandatory: False. Default Value: ""
- [param] -outxml <string> Save otb application to xml file. Mandatory: False. Default Value: ""

## Limitations

None

## Authors

OTB-Team

## See Also

BandMath application, ImageStatistics

## Example of use

- ref.in: GomaApres.png

- ref.channel: 1

- meas.in: GomaAvant.png

- meas.channel: 2

- roi.startx: 20

- roi.starty: 30

- roi.sizex: 150

- roi.sizey: 200