Viskores
1.0
viskores
filter
image_processing
ImageMedian.h
Go to the documentation of this file.
1
//============================================================================
2
// The contents of this file are covered by the Viskores license. See
3
// LICENSE.txt for details.
4
//
5
// By contributing to this file, all contributors agree to the Developer
6
// Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7
//============================================================================
8
9
//============================================================================
10
// Copyright (c) Kitware, Inc.
11
// All rights reserved.
12
// See LICENSE.txt for details.
13
//
14
// This software is distributed WITHOUT ANY WARRANTY; without even
15
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16
// PURPOSE. See the above copyright notice for more information.
17
//============================================================================
18
19
#ifndef viskores_filter_image_processing_ImageMedian_h
20
#define viskores_filter_image_processing_ImageMedian_h
21
22
#include <
viskores/filter/Filter.h
>
23
#include <
viskores/filter/image_processing/viskores_filter_image_processing_export.h
>
24
35
namespace
viskores
36
{
37
namespace
filter
38
{
39
namespace
image_processing
40
{
41
class
VISKORES_FILTER_IMAGE_PROCESSING_EXPORT
ImageMedian
:
public
viskores::filter::Filter
42
{
43
public
:
44
VISKORES_CONT
ImageMedian
() { this->SetOutputFieldName(
"median"
); }
45
46
VISKORES_CONT
void
Perform3x3
() { this->Neighborhood = 1; };
47
VISKORES_CONT
void
Perform5x5
() { this->Neighborhood = 2; };
48
49
private
:
50
VISKORES_CONT
viskores::cont::DataSet
DoExecute(
const
viskores::cont::DataSet
& input)
override
;
51
52
int
Neighborhood = 1;
53
};
54
}
// namespace image_processing
55
}
// namespace filter
56
}
// namespace viskores
57
58
#endif //viskores_filter_image_processing_ImageMedian_h
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition:
DataSet.h:66
viskores::filter::image_processing::ImageMedian::ImageMedian
ImageMedian()
Definition:
ImageMedian.h:44
viskores::filter::Filter
Base class for all filters.
Definition:
Filter.h:171
viskores_filter_image_processing_export.h
VISKORES_CONT
#define VISKORES_CONT
Definition:
ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition:
Atomic.h:27
viskores::filter::image_processing::ImageMedian
Definition:
ImageMedian.h:41
viskores::filter::image_processing::ImageMedian::Perform3x3
void Perform3x3()
Definition:
ImageMedian.h:46
viskores::filter::image_processing::ImageMedian::Perform5x5
void Perform5x5()
Definition:
ImageMedian.h:47
Filter.h
Generated by
1.8.17