Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ITK_TEMPLATE_EXPORT LabelStatisticsImageFilter : public ImageSink<TInputIm
itkNewMacro(Self);

/** Runtime information support. */
itkTypeMacro(LabelStatisticsImageFilter, ImageToImageFilter);
itkTypeMacro(LabelStatisticsImageFilter, ImageSink);

/** Image related type alias. */
using InputImagePointer = typename TInputImage::Pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ITK_TEMPLATE_EXPORT MinimumMaximumImageFilter : public ImageSink<TInputIma
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkTypeMacro(MinimumMaximumImageFilter, ImageToImageFilter);
itkTypeMacro(MinimumMaximumImageFilter, ImageSink);

/** Image type alias support */
using InputImageType = TInputImage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ITK_TEMPLATE_EXPORT StatisticsImageFilter : public ImageSink<TInputImage>
itkNewMacro(Self);

/** Runtime information support. */
itkTypeMacro(StatisticsImageFilter, ImageToImageFilter);
itkTypeMacro(StatisticsImageFilter, ImageSink);

/** Image related type alias. */
using InputImagePointer = typename TInputImage::Pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ LabelOverlapMeasures(int, char * argv[])

using FilterType = itk::LabelOverlapMeasuresImageFilter<ImageType>;
auto filter = FilterType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(filter, LabelOverlapMeasuresImageFilter, ImageToImageFilter);


filter->SetSourceImage(reader1->GetOutput());
filter->SetTargetImage(reader2->GetOutput());
filter->Update();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ itkLabelStatisticsImageFilterTest(int argc, char * argv[])

auto filter = FilterType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(filter, LabelStatisticsImageFilter, ImageSink);


itk::SimpleFilterWatcher filterWatch(filter);

filter->SetInput(reader1->GetOutput());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "itkSimpleFilterWatcher.h"
#include "itkMacro.h"
#include "itkMath.h"
#include "itkTestingMacros.h"

int
itkMinimumMaximumImageFilterTest(int, char *[])
Expand Down Expand Up @@ -77,7 +78,11 @@ itkMinimumMaximumImageFilterTest(int, char *[])
image->SetPixel(index, maximum);

// Create and initialize the filter
auto filter = MinMaxFilterType::New();
auto filter = MinMaxFilterType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(filter, MinimumMaximumImageFilter, ImageSink);


itk::SimpleFilterWatcher watcher(filter);

filter->SetInput(image);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ itkStatisticsImageFilterTest(int argc, char * argv[])
using FilterType = itk::StatisticsImageFilter<FloatImage>;
auto filter = FilterType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(filter, StatisticsImageFilter, ImageSink);


itk::SimpleFilterWatcher filterWatch(filter);

filter->SetInput(image);
Expand Down