Go to the documentation of this file.
19 #ifndef viskores_filter_image_processing_ImageDifference_h
20 #define viskores_filter_image_processing_ImageDifference_h
29 namespace image_processing
48 this->AverageRadius = averageRadius;
54 this->PixelShiftRadius = pixelShiftRadius;
59 return this->AllowedPixelErrorRatio;
63 this->AllowedPixelErrorRatio = pixelErrorRatio;
68 return this->PixelDiffThreshold;
72 this->PixelDiffThreshold = threshold;
78 this->ThresholdFieldName = name;
86 const std::string& name,
89 this->SetActiveField(name, association);
95 return this->GetActiveFieldAssociation();
102 const std::string& name,
105 this->SetActiveField(1, name, association);
111 return this->GetActiveFieldAssociation(1);
122 bool ImageDiffWithinThreshold =
true;
123 std::string ThresholdFieldName =
"threshold-output";
129 #endif // viskores_filter_image_processing_ImageDifference_h
std::string GetThresholdFieldName() const
Definition: ImageDifference.h:80
std::string GetSecondaryFieldName() const
Definition: ImageDifference.h:108
Construct an ImageDifference of a given DataSet.
Definition: ImageDifference.h:40
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
void SetSecondaryField(const std::string &name, viskores::cont::Field::Association association=viskores::cont::Field::Association::Any)
Choose the secondary field to operate on.
Definition: ImageDifference.h:101
Association
Identifies what elements of a data set a field is associated with.
Definition: Field.h:46
void SetPixelShiftRadius(const viskores::IdComponent &pixelShiftRadius)
Definition: ImageDifference.h:52
@ Any
Any field regardless of the association.
std::string GetPrimaryFieldName() const
Definition: ImageDifference.h:92
Base class for all filters.
Definition: Filter.h:171
bool GetImageDiffWithinThreshold() const
Definition: ImageDifference.h:75
viskores::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:202
viskores::FloatDefault GetAllowedPixelErrorRatio() const
Definition: ImageDifference.h:57
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::IdComponent GetPixelShiftRadius() const
Definition: ImageDifference.h:51
void SetPixelDiffThreshold(const viskores::FloatDefault &threshold)
Definition: ImageDifference.h:70
viskores::IdComponent GetAverageRadius() const
Definition: ImageDifference.h:45
viskores::cont::Field::Association GetSecondaryFieldAssociation() const
Definition: ImageDifference.h:109
void SetThresholdFieldName(const std::string &name)
Definition: ImageDifference.h:76
void SetAverageRadius(const viskores::IdComponent &averageRadius)
Definition: ImageDifference.h:46
viskores::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:244
void SetAllowedPixelErrorRatio(const viskores::FloatDefault &pixelErrorRatio)
Definition: ImageDifference.h:61
viskores::FloatDefault GetPixelDiffThreshold() const
Definition: ImageDifference.h:66
viskores::cont::Field::Association GetPrimaryFieldAssociation() const
Definition: ImageDifference.h:93
void SetPrimaryField(const std::string &name, viskores::cont::Field::Association association=viskores::cont::Field::Association::Any)
Choose the primary field to operate on.
Definition: ImageDifference.h:85