Filter for pixel-wise comparison of two mitk::Image objects.
More...
#include <mitkCompareImageDataFilter.h>
|
| | CompareImageDataFilter () |
| | Constructor. Sets the number of required inputs to 2. More...
|
| |
| | ~CompareImageDataFilter () override |
| | Destructor. More...
|
| |
| void | GenerateData () override |
| | Perform the pixel-wise comparison. More...
|
| |
| void | ResetCompareResultsToInitial () |
| | Reset the comparison detail struct to its initial state. More...
|
| |
| template<typename TPixel , unsigned int VImageDimension> |
| void | EstimateValueDifference (const itk::Image< TPixel, VImageDimension > *itkImage1, const mitk::Image *referenceImage) |
| | Run itk::Testing::ComparisonImageFilter on the two inputs. More...
|
| |
| | ImageToImageFilter () |
| |
| | ~ImageToImageFilter () override |
| |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
| | Print self information to the given stream. More...
|
| |
| void | GenerateInputRequestedRegion () override |
| | Determine the input requested region to produce the output requested region. More...
|
| |
| | ImageSource () |
| |
| | ~ImageSource () override |
| |
| void | GenerateData () override |
| | A version of GenerateData() specific for image processing filters. More...
|
| |
| virtual void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) |
| | If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More...
|
| |
| void | PrepareOutputs () override |
| | This method is intentionally left blank. More...
|
| |
| virtual void | AllocateOutputs () |
| | The GenerateData method normally allocates the buffers for all of the outputs of a filter. More...
|
| |
| virtual void | BeforeThreadedGenerateData () |
| | If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can provide an implementation for BeforeThreadedGenerateData(). More...
|
| |
| virtual void | AfterThreadedGenerateData () |
| | If an imaging filter needs to perform processing after all processing threads have completed, the filter can provide an implementation for AfterThreadedGenerateData(). More...
|
| |
| virtual unsigned int | SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion) |
| | Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More...
|
| |
| | BaseDataSource () |
| | Constructor. More...
|
| |
| | ~BaseDataSource () override |
| | Destructor. More...
|
| |
Filter for pixel-wise comparison of two mitk::Image objects.
Uses itk::Testing::ComparisonImageFilter internally to find per-pixel differences. Provide two images via SetInput(0, image1) and SetInput(1, image2). For multi-component images the MultiComponentImageDataComparisonFilter is used instead.
- See also
- CompareFilterResults ImageToImageFilter
Definition at line 69 of file mitkCompareImageDataFilter.h.
◆ CompareImageDataFilter()
| mitk::CompareImageDataFilter::CompareImageDataFilter |
( |
| ) |
|
|
protected |
Constructor. Sets the number of required inputs to 2.
◆ ~CompareImageDataFilter()
| mitk::CompareImageDataFilter::~CompareImageDataFilter |
( |
| ) |
|
|
inlineoverrideprotected |
◆ EstimateValueDifference()
template<typename TPixel , unsigned int VImageDimension>
| void mitk::CompareImageDataFilter::EstimateValueDifference |
( |
const itk::Image< TPixel, VImageDimension > * |
itkImage1, |
|
|
const mitk::Image * |
referenceImage |
|
) |
| |
|
protected |
Run itk::Testing::ComparisonImageFilter on the two inputs.
- Template Parameters
-
| TPixel | The pixel type of the input image. |
| VImageDimension | The dimension of the input image. |
◆ GenerateData()
| void mitk::CompareImageDataFilter::GenerateData |
( |
| ) |
|
|
overrideprotected |
Perform the pixel-wise comparison.
◆ GetCompareResults()
◆ GetResult()
| bool mitk::CompareImageDataFilter::GetResult |
( |
size_t |
threshold = 0 | ) |
|
Check whether the comparison passes a given threshold.
Returns true if the number of pixels with differences is at or below the specified threshold. Returns false if the ITK ComparisonImageFilter raised an exception during Update().
- Parameters
-
| threshold | Maximum allowed number of pixels with differences (default 0). |
- Returns
true if the comparison passes, false otherwise.
- See also
- GetCompareResults
◆ itkSimpleNewMacro()
| mitk::CompareImageDataFilter::itkSimpleNewMacro |
( |
Self |
| ) |
|
◆ mitkClassMacro()
◆ ResetCompareResultsToInitial()
| void mitk::CompareImageDataFilter::ResetCompareResultsToInitial |
( |
| ) |
|
|
protected |
Reset the comparison detail struct to its initial state.
◆ SetTolerance()
| void mitk::CompareImageDataFilter::SetTolerance |
( |
double |
eps | ) |
|
|
inline |
◆ m_CompareDetails
◆ m_CompareResult
| bool mitk::CompareImageDataFilter::m_CompareResult |
|
protected |
◆ m_Tolerance
| double mitk::CompareImageDataFilter::m_Tolerance |
|
protected |
The documentation for this class was generated from the following file: