VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
vtkImageNonMaximumSuppression.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageNonMaximumSuppression.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
29
#ifndef __vtkImageNonMaximumSuppression_h
30
#define __vtkImageNonMaximumSuppression_h
31
32
#define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_MAGNITUDE_INPUT 0
33
#define VTK_IMAGE_NON_MAXIMUM_SUPPRESSION_VECTOR_INPUT 1
34
35
#include "
vtkThreadedImageAlgorithm.h
"
36
#include "
vtkImageData.h
"
// makes things a bit easier
37
38
class
VTK_IMAGING_EXPORT
vtkImageNonMaximumSuppression
:
public
vtkThreadedImageAlgorithm
39
{
40
public
:
41
static
vtkImageNonMaximumSuppression
*
New
();
42
vtkTypeMacro(
vtkImageNonMaximumSuppression
,
vtkThreadedImageAlgorithm
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
47
void
SetMagnitudeInput
(
vtkImageData
*input) {this->
SetInput
(0,input);};
48
void
SetVectorInput
(
vtkImageData
*input) {this->
SetInput
(1,input);};
50
52
54
vtkSetMacro(HandleBoundaries,
int
);
55
vtkGetMacro(HandleBoundaries,
int
);
56
vtkBooleanMacro(HandleBoundaries,
int
);
58
60
62
vtkSetClampMacro(Dimensionality,
int
,2,3);
63
vtkGetMacro(Dimensionality,
int
);
65
66
protected
:
67
vtkImageNonMaximumSuppression
();
68
~vtkImageNonMaximumSuppression
() {};
69
70
int
HandleBoundaries;
71
int
Dimensionality
;
72
73
virtual
int
RequestInformation
(
vtkInformation
*,
74
vtkInformationVector
**,
75
vtkInformationVector
*);
76
77
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
78
vtkInformationVector
**,
79
vtkInformationVector
*);
80
81
virtual
void
ThreadedRequestData
(
vtkInformation
*request,
82
vtkInformationVector
**inputVector,
83
vtkInformationVector
*outputVector,
84
vtkImageData
***inData,
85
vtkImageData
**outData,
86
int
extent
[6],
int
threadId);
87
88
private
:
89
vtkImageNonMaximumSuppression
(
const
vtkImageNonMaximumSuppression
&);
// Not implemented.
90
void
operator=(
const
vtkImageNonMaximumSuppression
&);
// Not implemented.
91
};
92
93
#endif
94
95
96
Generated on Thu Mar 13 2014 08:10:16 for VTK by
1.8.1.2