filter::ImageMedian can be used in multiple compilation units

The header was previously not marked inline and therefore
you could only have a single instance of the filter compiled
in a dynamic library / executable
This commit is contained in:
Robert Maynard 2020-05-20 08:44:45 -04:00
parent 963c871b76
commit 9dd7b8b487
2 changed files with 1 additions and 6 deletions

@ -34,7 +34,7 @@ class ImageMedian : public vtkm::filter::FilterField<ImageMedian>
public:
using SupportedTypes = vtkm::TypeListScalarAll;
VTKM_CONT ImageMedian();
VTKM_CONT ImageMedian() { this->SetOutputFieldName("median"); }
VTKM_CONT void Perform3x3() { this->Neighborhood = 1; };
VTKM_CONT void Perform5x5() { this->Neighborhood = 2; };

@ -86,11 +86,6 @@ struct ImageMedian : public vtkm::worklet::WorkletPointNeighborhood
namespace filter
{
VTKM_CONT ImageMedian::ImageMedian()
{
this->SetOutputFieldName("median");
}
template <typename T, typename StorageType, typename DerivedPolicy>
inline VTKM_CONT vtkm::cont::DataSet ImageMedian::DoExecute(
const vtkm::cont::DataSet& input,