forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkITKLevelTracing3DImageFilter.h
45 lines (36 loc) · 1.63 KB
/
vtkITKLevelTracing3DImageFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef __vtkITKLevelTracing3DImageFilter_h
#define __vtkITKLevelTracing3DImageFilter_h
#include "vtkITK.h"
#include "vtkImageAlgorithm.h"
#include "vtkObjectFactory.h"
/// \brief Wrapper class around itk::LevelTracingImageFilterImageFilter.
///
/// itk::LevelTracingImageFilter
/// LevelTracingImageFilter traces a level curve (or surface) from a
/// seed point. The pixels on this level curve "boundary" are labeled
/// as 1. Does nothing if seed is in uniform area.
///
/// This filter is specialized to volumes. If you are interested in
/// contouring other types of data, use the general vtkContourFilter. If you
/// want to contour an image (i.e., a volume slice), use vtkMarchingSquares.
class VTK_ITK_EXPORT vtkITKLevelTracing3DImageFilter : public vtkImageAlgorithm
{
public:
static vtkITKLevelTracing3DImageFilter *New();
vtkTypeRevisionMacro(vtkITKLevelTracing3DImageFilter, vtkImageAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
/// Methods to set/get seeds. Seeds are specified in IJK (not XYZ).
vtkSetVector3Macro(Seed, int);
vtkGetVector3Macro(Seed, int);
protected:
vtkITKLevelTracing3DImageFilter();
~vtkITKLevelTracing3DImageFilter();
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
virtual int FillInputPortInformation(int port, vtkInformation *info);
int Seed[3];
private:
vtkITKLevelTracing3DImageFilter(const vtkITKLevelTracing3DImageFilter&); /// Not implemented.
void operator=(const vtkITKLevelTracing3DImageFilter&); /// Not implemented.
};
#endif