Images comparison
Brief Description
Estimator between 2 images.
Tags
Miscellaneous, Statistics, Image Manipulation
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
Reference image properties (ref):
Reference image (ref.in): Image used as reference in the comparison
Reference image channel (ref.channel): Used channel for the reference image
Measured image properties (meas):
Measured image (meas.in): Image used as measured in the comparison
Measured image channel (meas.channel): Used channel for the measured image
Region Of Interest (relative to reference image) (roi):
Start X (roi.startx): ROI start x position.
Start Y (roi.starty): ROI start y position.
Size X (roi.sizex): Size along x in pixels.
Size Y (roi.sizey): Size along y in pixels.
MSE (mse): Mean Squared Error value
MAE (mae): Mean Absolute Error value
PSNR (psnr): Peak Signal to Noise Ratio value
count (count): Nb of pixels which are different
Available RAM (Mb) (ram): Available memory for processing (in MB)
Load otb application from xml file (inxml): Load otb application from xml file
Save otb application to xml file (outxml): Save otb application to xml file
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
otbcli_CompareImages -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