Go to the documentation of this file.
11 #ifndef vtk_m_filter_image_processing_ImageDifference_h
12 #define vtk_m_filter_image_processing_ImageDifference_h
21 namespace image_processing
40 this->AverageRadius = averageRadius;
46 this->PixelShiftRadius = pixelShiftRadius;
51 return this->AllowedPixelErrorRatio;
55 this->AllowedPixelErrorRatio = pixelErrorRatio;
61 this->PixelDiffThreshold = threshold;
72 const std::string& name,
75 this->SetActiveField(name, association);
81 return this->GetActiveFieldAssociation();
88 const std::string& name,
91 this->SetActiveField(1, name, association);
97 return this->GetActiveFieldAssociation(1);
107 bool ImageDiffWithinThreshold =
true;
108 std::string ThresholdFieldName =
"threshold-output";
114 #endif // vtk_m_filter_image_processing_ImageDifference_h
void SetPrimaryField(const std::string &name, vtkm::cont::Field::Association association=vtkm::cont::Field::Association::Any)
Choose the primary field to operate on.
Definition: ImageDifference.h:71
Groups connected points that have the same field value.
Definition: Atomic.h:19
void SetAllowedPixelErrorRatio(const vtkm::FloatDefault &pixelErrorRatio)
Definition: ImageDifference.h:53
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
vtkm::IdComponent GetAverageRadius() const
Definition: ImageDifference.h:37
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:38
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::cont::Field::Association GetSecondaryFieldAssociation() const
Definition: ImageDifference.h:95
vtkm::FloatDefault GetPixelDiffThreshold() const
Definition: ImageDifference.h:58
void SetPixelDiffThreshold(const vtkm::FloatDefault &threshold)
Definition: ImageDifference.h:59
void SetThresholdFieldName(const std::string &name)
Definition: ImageDifference.h:65
void SetAverageRadius(const vtkm::IdComponent &averageRadius)
Definition: ImageDifference.h:38
Construct an ImageDifference of a given DataSet.
Definition: ImageDifference.h:32
vtkm::IdComponent GetPixelShiftRadius() const
Definition: ImageDifference.h:43
bool GetImageDiffWithinThreshold() const
Definition: ImageDifference.h:64
void SetPixelShiftRadius(const vtkm::IdComponent &pixelShiftRadius)
Definition: ImageDifference.h:44
Base class for all filters.
Definition: Filter.h:163
@ Any
Any field regardless of the association.
#define VTKM_CONT
Definition: ExportMacros.h:57
#define VTKM_FILTER_IMAGE_PROCESSING_EXPORT
Definition: vtkm_filter_image_processing_export.h:44
void SetSecondaryField(const std::string &name, vtkm::cont::Field::Association association=vtkm::cont::Field::Association::Any)
Choose the secondary field to operate on.
Definition: ImageDifference.h:87
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:236
std::string GetThresholdFieldName() const
Definition: ImageDifference.h:66
vtkm::cont::Field::Association GetPrimaryFieldAssociation() const
Definition: ImageDifference.h:79
std::string GetSecondaryFieldName() const
Definition: ImageDifference.h:94
vtkm::FloatDefault GetAllowedPixelErrorRatio() const
Definition: ImageDifference.h:49
std::string GetPrimaryFieldName() const
Definition: ImageDifference.h:78