Magnum::DebugTools::CompareImageToFile class

Image-to-file comparator.

A combination of CompareImage and CompareImageFile, 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{1.5f, 0.01f}));

Constructors, destructors, conversion operators

CompareImageToFile(Float maxThreshold, Float meanThreshold) explicit
Constructor.
CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& importerManager, Float maxThreshold, Float meanThreshold) explicit
Construct with an explicit plugin manager instance.
CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& importerManager) explicit
Construct with an explicit plugin manager instance and implicit thresholds.
CompareImageToFile(PluginManager::Manager<Trade::AbstractImporter>& importerManager, PluginManager::Manager<Trade::AbstractImageConverter>& imageConverterManager, Float maxThreshold, Float meanThreshold) explicit
Construct with an explicit importer and converter plugin manager instance.
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>& importerManager, 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>& importerManager) 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(PluginManager::Manager<Trade::AbstractImporter>& importerManager, PluginManager::Manager<Trade::AbstractImageConverter>& imageConverterManager, Float maxThreshold, Float meanThreshold) explicit

Construct with an explicit importer and converter plugin manager instance.

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

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

Implicit constructor.

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