Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
In this group, the API documentation of methods useful for testing is collected. The more general concepts of testing in MITK are described on the General: Tests in MITK page. More...
Macros | |
#define | MITK_TEST_OUTPUT_NO_ENDL(x) |
Output some text without generating a terminating newline. Include. More... | |
#define | MITK_TEST_OUTPUT(x) |
Output some text. More... | |
#define | MITK_TEST_BEGIN(testName) |
Do some general test preparations. Must be called first in the main test function. More... | |
#define | MITK_TEST_FAILED_MSG(MSG) |
Fail and finish test with message MSG. More... | |
#define | MITK_TEST_END() |
Must be called last in the main test function. More... | |
#define | MITK_TEST_FOR_EXCEPTION_BEGIN(EXCEPTIONCLASS) |
Begin block which should be checked for exceptions. More... | |
#define | MITK_TEST_FOR_EXCEPTION(EXCEPTIONCLASS, STATEMENT) |
Simplified version of MITK_TEST_FOR_EXCEPTION_BEGIN / END for a single statement. More... | |
#define | MITK_ASSERT_EQUAL(EXPECTED, ACTUAL, MSG) |
Testing macro to test if two objects are equal. More... | |
#define | MITK_TEST_NOT_EQUAL(OBJ1, OBJ2, MSG) |
Testing macro to test if two objects are not equal. More... | |
#define | MITK_ASSERT_NOT_EQUAL(OBJ1, OBJ2, MSG) |
Testing macro to test if two objects are not equal. More... | |
#define | MITK_TEST_SUITE_REGISTRATION(TESTSUITE_NAME) |
Registers the given test suite. More... | |
#define | MITK_TEST(TESTMETHOD) |
Adds a test to the current test suite. More... | |
#define | MITK_PARAMETERIZED_TEST(TESTMETHOD, ARGS) |
Adds a parameterized test to the current test suite. More... | |
#define | MITK_PARAMETERIZED_CMD_LINE_TEST(TESTMETHOD) |
Adds a parameterized test to the current test suite. More... | |
#define | MITK_PARAMETERIZED_TEST_1(TESTMETHOD, arg1) |
Adds a parameterized test to the current test suite. More... | |
#define | MITK_PARAMETERIZED_TEST_2(TESTMETHOD, arg1, arg2) |
Adds a parameterized test to the current test suite. More... | |
Functions | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::BaseGeometry *leftHandSide, const mitk::BaseGeometry *rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two geometries for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::BaseGeometry &leftHandSide, const mitk::BaseGeometry &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two geometries for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::BaseGeometry::TransformType *leftHandSide, const mitk::BaseGeometry::TransformType *rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two transforms (TransformType) for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::BaseGeometry::TransformType &leftHandSide, const mitk::BaseGeometry::TransformType &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two transforms (TransformType) for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::BaseGeometry::BoundingBoxType *leftHandSide, const mitk::BaseGeometry::BoundingBoxType *rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two bounding boxes (BoundingBoxType) for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::BaseGeometry::BoundingBoxType &leftHandSide, const mitk::BaseGeometry::BoundingBoxType &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two bounding boxes (BoundingBoxType) for beeing identical. More... | |
bool | mitk::Equal (ScalarType scalar1, ScalarType scalar2, ScalarType eps=mitk::eps, bool verbose=false) |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::GeometryData &leftHandSide, const mitk::GeometryData &rightHandSide, mitk::ScalarType eps, bool verbose) |
Equal Compare two GeometryData objects for equality, returns true if found equal. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::Image *leftHandSide, const mitk::Image *rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two images for beeing equal in meta- and imagedata. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::Image &leftHandSide, const mitk::Image &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two images for beeing equal in meta- and imagedata. More... | |
template<typename TCoordRep , unsigned int NPointDimension> | |
bool | mitk::Equal (const itk::Point< TCoordRep, NPointDimension > &point1, const itk::Point< TCoordRep, NPointDimension > &point2, TCoordRep eps=mitk::eps, bool verbose=false) |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::PointSet *leftHandSide, const mitk::PointSet *rightHandSide, mitk::ScalarType eps, bool verbose, bool checkGeometry=true) |
Equal A function comparing two pointsets for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::PointSet &leftHandSide, const mitk::PointSet &rightHandSide, mitk::ScalarType eps, bool verbose, bool checkGeometry=true) |
Equal A function comparing two pointsets for beeing identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::ProportionalTimeGeometry &leftHandSide, const mitk::ProportionalTimeGeometry &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two ProportionalTimeGeometries for being identical. More... | |
MITKCORE_EXPORT bool | mitk::Equal (mitk::Surface *leftHandSide, mitk::Surface *rightHandSide, mitk::ScalarType eps, bool verbose) |
Equal Compare two surfaces for equality, returns true if found equal. More... | |
MITKCORE_EXPORT bool | mitk::Equal (mitk::Surface &leftHandSide, mitk::Surface &rightHandSide, mitk::ScalarType eps, bool verbose) |
Equal Compare two surfaces for equality, returns true if found equal. More... | |
MITKCORE_EXPORT bool | mitk::Equal (vtkPolyData *leftHandSide, vtkPolyData *rightHandSide, mitk::ScalarType eps, bool verbose) |
Equal Compare two vtk PolyDatas for equality, returns true if found equal. More... | |
MITKCORE_EXPORT bool | mitk::Equal (vtkPolyData &leftHandSide, vtkPolyData &rightHandSide, mitk::ScalarType eps, bool verbose) |
Equal Compare two vtk PolyDatas for equality, returns true if found equal. More... | |
MITKCORE_EXPORT bool | mitk::Equal (const mitk::TimeGeometry &leftHandSide, const mitk::TimeGeometry &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two instances of TimeGeometry for being identical. More... | |
template<typename TCoordRep , unsigned int NPointDimension> | |
bool | mitk::Equal (const itk::Vector< TCoordRep, NPointDimension > &vector1, const itk::Vector< TCoordRep, NPointDimension > &vector2, TCoordRep eps=mitk::eps, bool verbose=false) |
bool | mitk::Equal (const mitk::VnlVector &vector1, const mitk::VnlVector &vector2, ScalarType eps=mitk::eps, bool verbose=false) |
template<typename TCoordRep , unsigned int NPointDimension> | |
bool | mitk::Equal (const vnl_vector_fixed< TCoordRep, NPointDimension > &vector1, const vnl_vector_fixed< TCoordRep, NPointDimension > &vector2, TCoordRep eps=mitk::eps, bool verbose=false) |
MITKIGTBASE_EXPORT bool | mitk::Equal (const mitk::NavigationData &leftHandSide, const mitk::NavigationData &rightHandSide, ScalarType eps=mitk::eps, bool verbose=false) |
Equal A function comparing two navigation data objects for beeing equal in meta- and imagedata. More... | |
MITKMULTILABEL_EXPORT bool | mitk::Equal (const mitk::Label &leftHandSide, const mitk::Label &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two labels for beeing equal in data. More... | |
MITKMULTILABEL_EXPORT bool | mitk::Equal (const mitk::LabelSet &leftHandSide, const mitk::LabelSet &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two label sets for beeing equal in data. More... | |
MITKMULTILABEL_EXPORT bool | mitk::Equal (const mitk::LabelSetImage &leftHandSide, const mitk::LabelSetImage &rightHandSide, ScalarType eps, bool verbose) |
Equal A function comparing two label set images for beeing equal in meta- and imagedata. More... | |
MITKOPENIGTLINK_EXPORT bool | mitk::Equal (const mitk::IGTLMessage &leftHandSide, const mitk::IGTLMessage &rightHandSide, ScalarType eps=mitk::eps, bool verbose=false) |
Equal A function comparing two OpenIGTLink message objects for being equal in meta- and imagedata. More... | |
In this group, the API documentation of methods useful for testing is collected. The more general concepts of testing in MITK are described on the General: Tests in MITK page.
#define MITK_ASSERT_EQUAL | ( | EXPECTED, | |
ACTUAL, | |||
MSG | |||
) |
Testing macro to test if two objects are equal.
This macro uses mitk::eps and the corresponding mitk::Equal methods for all comparisons and will give verbose output on the dashboard/console. Feel free to implement mitk::Equal for your own datatype or purpose.
EXPECTED | First object. |
ACTUAL | Second object. |
MSG | Message to appear with the test. |
Throws | mitkException if a nullptr pointer is given as input. |
Definition at line 211 of file mitkTestingMacros.h.
Referenced by Assert_ItkVectorImageImportAndCast_ReturnsTrue(), GetEmptyTestImageWithGeometry(), mitkSurfaceToSurfaceFilterTest(), and TestRandomPixelAccess().
#define MITK_ASSERT_NOT_EQUAL | ( | OBJ1, | |
OBJ2, | |||
MSG | |||
) |
Testing macro to test if two objects are not equal.
This macro uses mitk::eps and the corresponding mitk::Equal methods for all comparisons and will give verbose output on the dashboard/console.
OBJ1 | First object. |
OBJ2 | Second object. |
MSG | Message to appear with the test. |
Throws | mitkException if a nullptr pointer is given as input. |
Definition at line 252 of file mitkTestingMacros.h.
#define MITK_PARAMETERIZED_CMD_LINE_TEST | ( | TESTMETHOD | ) |
Adds a parameterized test to the current test suite.
Use this macro after the CPPUNIT_TEST_SUITE() macro to add test cases which need parameters from the command line.
TESTMETHOD | The name of the member function test. |
Definition at line 339 of file mitkTestingMacros.h.
#define MITK_PARAMETERIZED_TEST | ( | TESTMETHOD, | |
ARGS | |||
) |
Adds a parameterized test to the current test suite.
Use this macro after the CPPUNIT_TEST_SUITE() macro to add test cases which need custom parameters.
TESTMETHOD | The name of the member function test. |
ARGS | A std::vector<std::string> object containing test parameter. |
Definition at line 311 of file mitkTestingMacros.h.
#define MITK_PARAMETERIZED_TEST_1 | ( | TESTMETHOD, | |
arg1 | |||
) |
Adds a parameterized test to the current test suite.
Use this macro after the CPPUNIT_TEST_SUITE() macro to add test cases which need one custom parameter.
TESTMETHOD | The name of the member function test. |
arg1 | A custom string parameter being passed to the fixture. |
Definition at line 359 of file mitkTestingMacros.h.
#define MITK_PARAMETERIZED_TEST_2 | ( | TESTMETHOD, | |
arg1, | |||
arg2 | |||
) |
Adds a parameterized test to the current test suite.
Use this macro after the CPPUNIT_TEST_SUITE() macro to add test cases which need two custom parameter.
TESTMETHOD | The name of the member function test. |
arg1 | A custom string parameter being passed to the fixture. |
Definition at line 383 of file mitkTestingMacros.h.
#define MITK_TEST | ( | TESTMETHOD | ) |
Adds a test to the current test suite.
Use this macro after the CPPUNIT_TEST_SUITE() macro to add test cases. The macro internally just calls the CPPUNIT_TEST macro.
TESTMETHOD | The name of the member funtion test. |
Definition at line 295 of file mitkTestingMacros.h.
Referenced by CompareSurfacePointPositions(), createTextAnnotationWithLayouter(), FreeFunction(), GenerateGradientWithDimXImage(), GetEmptyTestImageWithGeometry(), and testDeserializeFunction().
#define MITK_TEST_BEGIN | ( | testName | ) |
Do some general test preparations. Must be called first in the main test function.
Definition at line 60 of file mitkTestingMacros.h.
#define MITK_TEST_END | ( | ) |
Must be called last in the main test function.
Definition at line 81 of file mitkTestingMacros.h.
#define MITK_TEST_FAILED_MSG | ( | MSG | ) |
Fail and finish test with message MSG.
Definition at line 71 of file mitkTestingMacros.h.
Referenced by DirectOverlayTest(), ImageVtkDataReferenceCheck(), ItkThresholdFilter(), mitkDataStorageTest(), mitkDICOMLocaleTestWithReferenceImage(), mitkImageAccessorTest(), mitkImageTest(), mitkPointSetWriterTest(), mitkSurfaceVtkWriterTest(), mitkTrackingDeviceSourceTest(), Setup(), and TestDataStorage().
#define MITK_TEST_FOR_EXCEPTION | ( | EXCEPTIONCLASS, | |
STATEMENT | |||
) |
Simplified version of MITK_TEST_FOR_EXCEPTION_BEGIN / END for a single statement.
Definition at line 192 of file mitkTestingMacros.h.
Referenced by mitkLevenbergMarquardtModelFitFunctorTest(), mitkModelFitInfoTest(), mitkModelFitStaticParameterMapTest(), mitkModelFitUIDHelperTest(), mitkMVConstrainedCostFunctionDecoratorTest(), mitkSimpleBarrierConstraintCheckerTest(), mitkSurfaceToSurfaceFilterTest(), mitkTrackingDeviceSourceTest(), and TestDataStorage().
#define MITK_TEST_FOR_EXCEPTION_BEGIN | ( | EXCEPTIONCLASS | ) |
Begin block which should be checked for exceptions.
(as of 2013_09) Use CPPUNIT_ASSERT_THROW instead.
This macro, together with MITK_TEST_FOR_EXCEPTION_END, can be used to test whether a code block throws an expected exception. The test FAILS if the exception is NOT thrown. A simple example:
MITK_TEST_FOR_EXCEPTION_BEGIN(itk::ImageFileReaderException) typedef itk::ImageFileReader< itk::Image<unsigned char,2> > ReaderType; ReaderType::Pointer reader = ReaderType::New(); reader->SetFileName("/tmp/not-existing"); reader->Update(); MITK_TEST_FOR_EXCEPTION_END(itk::ImageFileReaderException)
Definition at line 169 of file mitkTestingMacros.h.
Referenced by mitkImageAccessorTest(), TestDataStorage(), and TestRandomPixelAccess().
#define MITK_TEST_NOT_EQUAL | ( | OBJ1, | |
OBJ2, | |||
MSG | |||
) |
Testing macro to test if two objects are not equal.
This macro uses mitk::eps and the corresponding mitk::Equal methods for all comparisons and will give verbose output on the dashboard/console.
OBJ1 | First object. |
OBJ2 | Second object. |
MSG | Message to appear with the test. |
Definition at line 234 of file mitkTestingMacros.h.
#define MITK_TEST_OUTPUT | ( | x | ) |
Output some text.
Definition at line 51 of file mitkTestingMacros.h.
Referenced by CheckRWSize(), mitkAccessByItkTest(), mitkDataStorageTest(), mitkDICOMLocaleTest(), mitkDICOMLocaleTestChangeLocale(), mitkDICOMPreloadedVolumeTest(), mitkDICOMReaderConfiguratorTest(), mitkGeometry3DTest(), mitkImageAccessorTest(), mitkImageTest(), mitkLogTest(), mitkSceneIOTest(), mitkSlicedGeometry3D_ChangeImageGeometryConsideringOriginOffset_Test(), mitkSlicedGeometry3DTest(), mitkSurfaceToSurfaceFilterTest(), mitkTimeGeometryTest(), mitkViewportRenderingTest(), QmitkThreadedLogTest(), testAddPlanePosition(), TestAllProperties(), TestDataStorage(), testGeometry3D(), testGeometryAfterCasting(), testGetPlanePosition(), testIndexAndWorldConsistency(), testIndexAndWorldConsistencyForIndex(), testIndexAndWorldConsistencyForVectors(), testItkImageIsCenterBased(), testRemoveAll(), and testRemovePlanePosition().
#define MITK_TEST_OUTPUT_NO_ENDL | ( | x | ) |
Output some text without generating a terminating newline. Include.
Definition at line 44 of file mitkTestingMacros.h.
Referenced by mitkSceneIOTest().
#define MITK_TEST_SUITE_REGISTRATION | ( | TESTSUITE_NAME | ) |
Registers the given test suite.
TESTSUITE_NAME | The name of the test suite class, without "TestSuite" at the end. |
Definition at line 267 of file mitkTestingMacros.h.
bool mitk::Equal | ( | const mitk::GeometryData & | leftHandSide, |
const mitk::GeometryData & | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose | ||
) |
Equal Compare two GeometryData objects for equality, returns true if found equal.
rightHandSide | GeometryData to compare. |
leftHandSide | GeometryData to compare. |
eps | Epsilon to use for floating point comparison. Most of the time mitk::eps will be sufficient. |
verbose | Flag indicating if the method should give a detailed console output. |
Definition at line 58 of file mitkGeometryData.cpp.
References mitk::TimeGeometry::CountTimeSteps(), mitk::Equal(), mitk::BaseData::GetGeometry(), mitk::BaseData::GetTimeGeometry(), and MITK_INFO.
|
inline |
scalar1 | Scalar value to compare. |
scalar2 | Scalar value to compare. |
eps | Tolerance for floating point comparison. |
verbose | Flag indicating detailed console output. |
Definition at line 74 of file mitkEqual.h.
References mitk::ConditionalOutputOfDifference(), mitk::DifferenceBiggerOrEqualEps(), mitk::eps, and verbose().
bool mitk::Equal | ( | mitk::Surface * | leftHandSide, |
mitk::Surface * | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose | ||
) |
Equal Compare two surfaces for equality, returns true if found equal.
rightHandSide | Surface to compare. |
leftHandSide | Surface to compare. |
eps | Epsilon to use for floating point comparison. Most of the time mitk::eps will be sufficient. |
verbose | Flag indicating if the method should give a detailed console output. |
Definition at line 468 of file mitkSurface.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | mitk::Surface & | leftHandSide, |
mitk::Surface & | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose | ||
) |
Equal Compare two surfaces for equality, returns true if found equal.
rightHandSide | Surface to compare. |
leftHandSide | Surface to compare. |
eps | Epsilon to use for floating point comparison. Most of the time mitk::eps will be sufficient. |
verbose | Flag indicating if the method should give a detailed console output. |
Definition at line 479 of file mitkSurface.cpp.
References mitk::eps, mitk::Equal(), mitk::Surface::GetSizeOfPolyDataSeries(), mitk::Surface::GetVtkPolyData(), MITK_INFO, and verbose().
bool mitk::Equal | ( | const mitk::Label & | leftHandSide, |
const mitk::Label & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two labels for beeing equal in data.
Following aspects are tested for equality:
rightHandSide | An image to be compared |
leftHandSide | An image to be compared |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 260 of file mitkLabel.cpp.
References mitk::PropertyList::GetMap(), and MITK_INFO.
|
inline |
point1 | Point to compare. |
point2 | Point to compare. |
eps | Tolerance for floating point comparison. |
verbose | Flag indicating detailed console output. |
Definition at line 112 of file mitkPoint.h.
References mitk::ConditionalOutputOfDifference(), mitk::DifferenceBiggerOrEqualEps(), mitk::eps, and verbose().
bool mitk::Equal | ( | vtkPolyData * | leftHandSide, |
vtkPolyData * | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose | ||
) |
Equal Compare two vtk PolyDatas for equality, returns true if found equal.
rightHandSide | Surface to compare. |
leftHandSide | Surface to compare. |
eps | Epsilon to use for floating point comparison. Most of the time mitk::eps will be sufficient. |
verbose | Flag indicating if the method should give a detailed console output. |
This will only check if the number of cells, vertices, polygons, stripes and lines is the same and whether all the two poly datas have the same number of points with the same coordinates. It is not checked whether all points are correctly connected.
Definition at line 368 of file mitkSurface.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | vtkPolyData & | leftHandSide, |
vtkPolyData & | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose | ||
) |
Equal Compare two vtk PolyDatas for equality, returns true if found equal.
rightHandSide | Surface to compare. |
leftHandSide | Surface to compare. |
eps | Epsilon to use for floating point comparison. Most of the time mitk::eps will be sufficient. |
verbose | Flag indicating if the method should give a detailed console output. |
This will only check if the number of cells, vertices, polygons, stripes and lines is the same and whether all the two poly datas have the same number of points with the same coordinates. It is not checked whether all points are correctly connected.
Definition at line 379 of file mitkSurface.cpp.
References mitk::eps, mitk::Equal(), MITK_INFO, and verbose().
|
inline |
vector1 | Vector to compare. |
vector2 | Vector to compare. |
eps | Tolerance for floating point comparison. |
verbose | Flag indicating detailed console output. |
Definition at line 148 of file mitkVector.h.
References mitk::ConditionalOutputOfDifference(), mitk::DifferenceBiggerOrEqualEps(), mitk::eps, and verbose().
|
inline |
vector1 | Vector to compare. |
vector2 | Vector to compare. |
eps | Tolerance for floating point comparison. |
verbose | Flag indicating detailed console output. |
Definition at line 178 of file mitkVector.h.
References mitk::ConditionalOutputOfDifference(), mitk::DifferenceBiggerOrEqualEps(), mitk::eps, and verbose().
bool mitk::Equal | ( | const mitk::IGTLMessage & | leftHandSide, |
const mitk::IGTLMessage & | rightHandSide, | ||
ScalarType | eps = mitk::eps , |
||
bool | verbose = false |
||
) |
Equal A function comparing two OpenIGTLink message objects for being equal in meta- and imagedata.
Following aspects are tested for equality:
rightHandSide | An IGTLMessage to be compared |
leftHandSide | An IGTLMessage to be compared |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 135 of file mitkIGTLMessage.cpp.
References mitk::IGTLMessage::GetIGTTimeStamp(), mitk::IGTLMessage::GetName(), and MITK_INFO.
|
inline |
vector1 | Vector to compare. |
vector2 | Vector to compare. |
eps | Tolerance for floating point comparison. |
verbose | Flag indicating detailed console output. |
Definition at line 209 of file mitkVector.h.
References mitk::ConditionalOutputOfDifference(), mitk::DifferenceBiggerOrEqualEps(), mitk::eps, and verbose().
bool mitk::Equal | ( | const mitk::LabelSet & | leftHandSide, |
const mitk::LabelSet & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two label sets for beeing equal in data.
Following aspects are tested for equality:
rightHandSide | An image to be compared |
leftHandSide | An image to be compared |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 292 of file mitkLabelSet.cpp.
References mitk::eps, mitk::Equal(), mitk::LabelSet::GetActiveLabel(), mitk::LabelSet::GetLayer(), mitk::LabelSet::GetNumberOfLabels(), mitk::LabelSet::IteratorConstBegin(), mitk::LabelSet::IteratorConstEnd(), MITK_INFO, and verbose().
bool mitk::Equal | ( | const mitk::ProportionalTimeGeometry & | leftHandSide, |
const mitk::ProportionalTimeGeometry & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two ProportionalTimeGeometries for being identical.
The function compares two instances of ProportionalTimeGeometries in all their aspects.
The parameter eps is a tolerance value for all methods which are internally used for comparison. If you want to use different tolerance values for different parts of the geometry, feel free to use the other comparison methods and write your own implementation of Equal.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolerance for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 277 of file mitkProportionalTimeGeometry.cpp.
References mitk::Equal().
bool mitk::Equal | ( | const mitk::NavigationData & | leftHandSide, |
const mitk::NavigationData & | rightHandSide, | ||
ScalarType | eps = mitk::eps , |
||
bool | verbose = false |
||
) |
Equal A function comparing two navigation data objects for beeing equal in meta- and imagedata.
Following aspects are tested for equality:
rightHandSide | An NavigationData to be compared |
leftHandSide | An NavigationData to be compared |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 319 of file mitkNavigationData.cpp.
References mitk::eps, mitk::Equal(), mitk::NavigationData::GetCovErrorMatrix(), mitk::NavigationData::GetIGTTimeStamp(), mitk::NavigationData::GetName(), mitk::NavigationData::GetOrientation(), mitk::NavigationData::GetPosition(), and MITK_INFO.
bool mitk::Equal | ( | const mitk::TimeGeometry & | leftHandSide, |
const mitk::TimeGeometry & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two instances of TimeGeometry for being identical.
The function compares two instances of TimeGeometries in all their aspects.
The parameter eps is a tolerance value for all methods which are internally used for comparison. If you want to use different tolerance values for different parts of the geometry, feel free to use the other comparison methods and write your own implementation of Equal.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolerance for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 192 of file mitkTimeGeometry.cpp.
References mitk::TimeGeometry::CountTimeSteps(), mitk::eps, mitk::Equal(), mitk::TimeGeometry::GetBoundingBoxInWorld(), mitk::TimeGeometry::GetBoundsInWorld(), mitk::TimeGeometry::GetGeometryForTimeStep(), mitk::TimeGeometry::GetMaximumTimePoint(), mitk::TimeGeometry::GetMinimumTimePoint(), MITK_INFO, mitk::TimeGeometry::TimeStepToTimePoint(), and verbose().
bool mitk::Equal | ( | const mitk::PointSet * | leftHandSide, |
const mitk::PointSet * | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose, | ||
bool | checkGeometry = true |
||
) |
Equal A function comparing two pointsets for beeing identical.
The function compares the Geometry, the size and all points element-wise. The parameter eps is a tolarence value for all methods which are internally used for comparion.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
checkGeometry | if comparing point sets loaded from a file, the geometries might be different and must not be compared. In all other cases, you should compare the geometries. |
Definition at line 882 of file mitkPointSet.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | const mitk::LabelSetImage & | leftHandSide, |
const mitk::LabelSetImage & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two label set images for beeing equal in meta- and imagedata.
Following aspects are tested for equality:
rightHandSide | An image to be compared |
leftHandSide | An image to be compared |
eps | Tolerance for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 910 of file mitkLabelSetImage.cpp.
References mitk::eps, mitk::Equal(), mitk::LabelSetImage::GetActiveLayer(), mitk::Image::GetDimension(), mitk::LabelSetImage::GetLabelSet(), mitk::LabelSetImage::GetLayerImage(), mitk::LabelSetImage::GetNumberOfLayers(), mitk::LabelSetImage::GetTotalNumberOfLabels(), MITK_INFO, and verbose().
bool mitk::Equal | ( | const mitk::PointSet & | leftHandSide, |
const mitk::PointSet & | rightHandSide, | ||
mitk::ScalarType | eps, | ||
bool | verbose, | ||
bool | checkGeometry = true |
||
) |
Equal A function comparing two pointsets for beeing identical.
The function compares the Geometry, the size and all points element-wise. The parameter eps is a tolarence value for all methods which are internally used for comparion.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
checkGeometry | if comparing point sets loaded from a file, the geometries might be different and must not be compared. In all other cases, you should compare the geometries. |
Definition at line 897 of file mitkPointSet.cpp.
References mitk::PointSet::Begin(), mitk::PointSet::End(), mitk::eps, mitk::Equal(), mitk::BaseData::GetGeometry(), mitk::PointSet::GetSize(), MITK_INFO, and verbose().
bool mitk::Equal | ( | const mitk::BaseGeometry * | leftHandSide, |
const mitk::BaseGeometry * | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two geometries for beeing identical.
The function compares the spacing, origin, axisvectors, extents, the matrix of the IndexToWorldTransform (elementwise), the bounding (elementwise) and the ImageGeometry flag.
The parameter eps is a tolarence value for all methods which are internally used for comparion. If you want to use different tolarance values for different parts of the geometry, feel free to use the other comparison methods and write your own implementation of Equal.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 863 of file mitkBaseGeometry.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | const mitk::BaseGeometry & | leftHandSide, |
const mitk::BaseGeometry & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two geometries for beeing identical.
The function compares the spacing, origin, axisvectors, extents, the matrix of the IndexToWorldTransform (elementwise), the bounding (elementwise) and the ImageGeometry flag.
The parameter eps is a tolarence value for all methods which are internally used for comparion. If you want to use different tolarance values for different parts of the geometry, feel free to use the other comparison methods and write your own implementation of Equal.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 877 of file mitkBaseGeometry.cpp.
References mitk::eps, mitk::Equal(), mitk::BaseGeometry::GetAxisVector(), mitk::BaseGeometry::GetBoundingBox(), mitk::BaseGeometry::GetExtent(), mitk::BaseGeometry::GetFrameOfReferenceID(), mitk::BaseGeometry::GetImageGeometry(), mitk::BaseGeometry::GetIndexToWorldTransform(), mitk::BaseGeometry::GetOrigin(), mitk::BaseGeometry::GetSpacing(), MITK_INFO, and verbose().
bool mitk::Equal | ( | const mitk::BaseGeometry::TransformType * | leftHandSide, |
const mitk::BaseGeometry::TransformType * | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two transforms (TransformType) for beeing identical.
The function compares the IndexToWorldTransform (elementwise).
The parameter eps is a tolarence value for all methods which are internally used for comparion.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 972 of file mitkBaseGeometry.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | const mitk::BaseGeometry::TransformType & | leftHandSide, |
const mitk::BaseGeometry::TransformType & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two transforms (TransformType) for beeing identical.
The function compares the IndexToWorldTransform (elementwise).
The parameter eps is a tolarence value for all methods which are internally used for comparion.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 986 of file mitkBaseGeometry.cpp.
References mitk::eps, mitk::MatrixEqualElementWise(), and MITK_INFO.
bool mitk::Equal | ( | const mitk::BaseGeometry::BoundingBoxType * | leftHandSide, |
const mitk::BaseGeometry::BoundingBoxType * | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two bounding boxes (BoundingBoxType) for beeing identical.
The function compares the bounds (elementwise).
The parameter eps is a tolarence value for all methods which are internally used for comparion.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 821 of file mitkBaseGeometry.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | const mitk::BaseGeometry::BoundingBoxType & | leftHandSide, |
const mitk::BaseGeometry::BoundingBoxType & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two bounding boxes (BoundingBoxType) for beeing identical.
The function compares the bounds (elementwise).
The parameter eps is a tolarence value for all methods which are internally used for comparion.
rightHandSide | Compare this against leftHandSide. |
leftHandSide | Compare this against rightHandSide. |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 836 of file mitkBaseGeometry.cpp.
References mitk::eps, mitk::Equal(), and MITK_INFO.
bool mitk::Equal | ( | const mitk::Image * | leftHandSide, |
const mitk::Image * | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two images for beeing equal in meta- and imagedata.
Following aspects are tested for equality:
rightHandSide | An image to be compared |
leftHandSide | An image to be compared |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 1457 of file mitkImage.cpp.
References mitk::Equal(), and MITK_ERROR.
bool mitk::Equal | ( | const mitk::Image & | leftHandSide, |
const mitk::Image & | rightHandSide, | ||
ScalarType | eps, | ||
bool | verbose | ||
) |
Equal A function comparing two images for beeing equal in meta- and imagedata.
Following aspects are tested for equality:
rightHandSide | An image to be compared |
leftHandSide | An image to be compared |
eps | Tolarence for comparison. You can use mitk::eps in most cases. |
verbose | Flag indicating if the user wants detailed console output or not. |
Definition at line 1468 of file mitkImage.cpp.
References mitk::eps, mitk::Equal(), mitk::Image::GetDimension(), mitk::BaseData::GetGeometry(), mitk::Image::GetPixelType(), mitk::PixelType::GetTypeAsString(), min(), MITK_INFO, mitk::ImageToImageFilter::New(), and verbose().