vtkbone
vtkboneImageConnectivityMap.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
29 #ifndef __vtkboneImageConnectivityMap_h
30 #define __vtkboneImageConnectivityMap_h
31 
33 #include "vtkboneWin32Header.h"
34 
35 // forward declarations
37 
38 
40 {
41 public:
43  vtkTypeMacro(vtkboneImageConnectivityMap,
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkGetMacro(NumberOfRegions, unsigned int);
51 
52 protected:
55 
56  virtual int RequestInformation(vtkInformation* request,
57  vtkInformationVector** inputVector,
58  vtkInformationVector* outputVector);
59 
60  virtual int RequestData(vtkInformation *,
63 
64  virtual void SimpleExecute(vtkImageData*, vtkImageData*);
65 
66  //BTX
67  template <typename TArray>
68  int GenerateConnectivityMap(vtkDataArray* in_data_arg,
69  int* dims,
70  vtkUnsignedIntArray* cmap);
71 
72  template <typename TArray>
73  int MarkComponent(TArray* in_data_arg,
74  int* dims,
75  vtkUnsignedIntArray* cmap,
76  int seed_i,
77  int seed_j,
78  int seed_k,
79  unsigned int component);
80  //ETX
81 
82  unsigned int NumberOfRegions;
83 
84 private:
85  // Prevent compiler from making default versions of these.
88 };
89 
90 #endif
component
#define VTKBONE_EXPORT
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output)=0
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
mark regions of image data based on geometric connectivity
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkAlgorithm * New()
void operator=(const vtkObjectBase &)