CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Loading...
Searching...
No Matches
Functions
ctkWidgetsTestingUtilities Namespace Reference

This module provides functions to facilitate writing tests. More...

Functions

CTK_WIDGETS_EXPORT bool CheckImagesEqual (const QImage &current, const QImage &expected, float percentThreshold=0.f)
 

Detailed Description

This module provides functions to facilitate writing tests.

Function Documentation

◆ CheckImagesEqual()

CTK_WIDGETS_EXPORT bool ctkWidgetsTestingUtilities::CheckImagesEqual ( const QImage &  current,
const QImage &  expected,
float  percentThreshold = 0.f 
)

Check that two images are equal. Allow for the specified percentage of pixels to be different.