Magnum::DebugTools::CompareImageToFile class

Image-to-file comparator.

A combination of CompareImage and CompareImageToFile, which allows to compare an in-memory image to a image file. See their documentation for more information. Example usage:

Image2D actual = doProcessing();
CORRADE_COMPARE_WITH(actual, "expected.png",
    (DebugTools::CompareImageToFile{15.5f, 5.0f}));

Constructors, destructors, conversion operators

CompareImageToFile(Float maxThreshold, Float meanThreshold) explicit
Constructor.
CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& manager, Float maxThreshold, Float meanThreshold) explicit
Construct with an explicit plugin manager instance.
CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& manager) explicit
Construct with an explicit plugin manager instance and implicit thresholds.
CompareImageToFile() explicit
Implicit constructor.

Function documentation

Magnum::DebugTools::CompareImageToFile::CompareImageToFile(Float maxThreshold, Float meanThreshold) explicit

Constructor.

See CompareImageFile::CompareImageFile(Float, Float) for more information.

Magnum::DebugTools::CompareImageToFile::CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& manager, Float maxThreshold, Float meanThreshold) explicit

Construct with an explicit plugin manager instance.

See CompareImageFile::CompareImageFile(PluginManager::Manager<Trade::AbstractImporter>&, Float, Float) for more information.

Magnum::DebugTools::CompareImageToFile::CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& manager) explicit

Construct with an explicit plugin manager instance and implicit thresholds.

Equivalent to calling CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>&, Float, Float) with zero values.

Magnum::DebugTools::CompareImageToFile::CompareImageToFile() explicit

Implicit constructor.

Equivalent to calling CompareImageToFile(Float, Float) with zero values.