dip::testing namespace

Tools for testing and debugging.

Contents

Classes

class Timer
A timer object to help time algorithm execution.

Functions

template<typename TPI, int DIGITS = 4>
void PrintPixelValues(dip::Image const& img)
Outputs pixel values of a small image to stdout.
auto CompareImages(dip::Image const& img1, dip::Image const& img2, Option::CompareImagesMode mode = Option::CompareImagesMode::EXACT, dip::dfloat epsilon = 1e-6) -> bool
Compares two images. Returns test result and prints to stdout the reason of failure if the test fails.

Operators

auto operator<<(std::ostream& os, dip::testing::Timer const& timer) -> std::ostream&
Reports elapsed time to a stream.