mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 11:29:02 +00:00
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:
parent
963c871b76
commit
9dd7b8b487
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user