Realtimestagram
Functions | Variables
compare_images.sh File Reference

Function Documentation

§ check_limits()

check_limits ( metric_name  ,
  value 
)

Compares value versus threshold.

Parameters
metric_nameString used for printing result message
valueValue (can also be inf, threshold)
thresholdCompares "value > threshold" print a message of the result and returns
Return values
0value is above threshold
1value is equal to or lower then threshold

§ create_diff_image()

create_diff_image ( )

Creates an image with all differences between actual and expected.

§ create_diff_mask()

create_diff_mask ( )

Creates a difference mask between actual and expected image.

§ create_diff_statistics()

create_diff_statistics ( )

Prints complete metrics of difference between actual and expected image.

§ create_diff_statistics_per_channel()

create_diff_statistics_per_channel ( )

Prints complete metrics of difference between actual and expected image per channel.

§ create_extended_diff_statistics_per_channel()

create_extended_diff_statistics_per_channel ( )

Prints complete metrics of difference between actual and expected image per channel.

§ create_normalized_diff_image()

create_normalized_diff_image ( )

Creates a normalized image with all differences between actual and expected.

§ print_comparison_header()

print_comparison_header ( )

Prints header with name of actual and expected image.

§ print_extended_metrics()

print_extended_metrics ( )

Prints difference metrics between actual and expected image.

§ print_metrics()

print_metrics ( )

Prints difference metrics between actual and expected image.

§ psnr()

psnr ( )

Compares on PSNR based on given threshold.

§ usage()

usage ( )

Prints usage of this shell script.

Prints the usage of this shell script.

Variable Documentation

§ AE_FUZZ_DIFF

AE_FUZZ_DIFF = 0.5

The Absolute Error fuzz difference factor.