class
#include <Magnum/DebugTools/CompareImage.h>
CompareImageToFile Image-to-file comparator for Corrade::
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(PluginManager::
Manager<Trade:: AbstractImporter>& importerManager, PluginManager:: Manager<Trade:: AbstractImageConverter>& imageConverterManager) explicit new in Git master - Construct with an explicit importer and converter plugin manager instance and implicit thresholds.
- CompareImageToFile() explicit
- Implicit constructor.
Function documentation
Magnum:: DebugTools:: CompareImageToFile:: CompareImageToFile(Float maxThreshold,
Float meanThreshold) explicit
Constructor.
See CompareImageFile::
Magnum:: DebugTools:: CompareImageToFile:: CompareImageToFile(PluginManager:: Manager<Trade:: AbstractImporter>& importerManager,
Float maxThreshold,
Float meanThreshold) explicit
Construct with an explicit plugin manager instance.
See CompareImageFile::
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::
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::
Magnum:: DebugTools:: CompareImageToFile:: CompareImageToFile(PluginManager:: Manager<Trade:: AbstractImporter>& importerManager,
PluginManager:: Manager<Trade:: AbstractImageConverter>& imageConverterManager) explicit new in Git master
Construct with an explicit importer and converter plugin manager instance and implicit thresholds.
Equivalent to calling CompareImageToFile(PluginManager::
Magnum:: DebugTools:: CompareImageToFile:: CompareImageToFile() explicit
Implicit constructor.
Equivalent to calling CompareImageToFile(Float, Float) with zero values.