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{
41public:
43 vtkTypeMacro(vtkboneImageConnectivityMap,
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
49 vtkGetMacro(NumberOfRegions, unsigned int);
51
52protected:
55
56 virtual int RequestInformation(vtkInformation* request,
57 vtkInformationVector** inputVector,
58 vtkInformationVector* outputVector) override;
59
62 vtkInformationVector *) override;
63
64 virtual void SimpleExecute(vtkImageData*, vtkImageData*) override;
65
66 //BTX
67 template <typename TArray>
69 int* dims,
71
72 template <typename TArray>
73 int MarkComponent(TArray* in_data_arg,
74 int* dims,
76 int seed_i,
77 int seed_j,
78 int seed_k,
79 unsigned int component);
80 //ETX
81
82 unsigned int NumberOfRegions;
83
84private:
85 // Prevent compiler from making default versions of these.
88};
89
90#endif
void operator=(const vtkObjectBase &)
mark regions of image data based on geometric connectivity
int MarkComponent(TArray *in_data_arg, int *dims, vtkUnsignedIntArray *cmap, int seed_i, int seed_j, int seed_k, unsigned int component)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
virtual void SimpleExecute(vtkImageData *, vtkImageData *) override
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkboneImageConnectivityMap * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int GenerateConnectivityMap(vtkDataArray *in_data_arg, int *dims, vtkUnsignedIntArray *cmap)