|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include "mitkITKImageImport.h"#include "mitkTestingMacros.h"#include "mitkImagePixelReadAccessor.h"#include <itkThresholdImageFilter.h>#include "mitkImageAccessByItk.h"Go to the source code of this file.
Functions | |
| template<typename TPixel , unsigned int VDimensions> | |
| static void | ItkThresholdFilter (const itk::Image< TPixel, VDimensions > *image, mitk::Image::Pointer &output, const double th[]) |
| [ItkThresholdFilter] More... | |
| template<typename TPixel > | |
| bool | Assert_ItkImportWithinAccessByItkSucceded_ReturnsTrue () |
| [ItkThresholdFilter] More... | |
| int | mitkGrabItkImageMemoryTest (int, char *[]) |
| bool Assert_ItkImportWithinAccessByItkSucceded_ReturnsTrue | ( | ) |
[ItkThresholdFilter]
Creates an mitk::Image, executes the binary threshold filter through AccessByItk and checks whether the image data was correctly imported back to an mitk::Image.
[OutOfScopeCall]
[OutOfScopeCall]
Definition at line 62 of file mitkGrabItkImageMemoryTest.cpp.
References AccessByItk_2, mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetData(), ItkThresholdFilter(), MITK_INFO, MITK_TEST_CONDITION, and mitk::Image::New().
|
static |
[ItkThresholdFilter]
An ITK-based filter for thresholding.
The filter represents the typical usage of ITK-like filters inside MITK. It is to be called for an mitk::Image by using the AccessByItk macro. The filter executes the binary threshold filter and imports the result into the output by using the ImportItkImage method.
| output | mitk::Image to hold the result of the filter |
| th[] | two double values to set the lower/upper threshold |
Definition at line 34 of file mitkGrabItkImageMemoryTest.cpp.
References mitk::GrabItkImageMemory(), and MITK_TEST_FAILED_MSG.
Referenced by Assert_ItkImportWithinAccessByItkSucceded_ReturnsTrue().
| int mitkGrabItkImageMemoryTest | ( | int | , |
| char * | [] | ||
| ) |
Definition at line 110 of file mitkGrabItkImageMemoryTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().