Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkImageLabelOutline.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkImageLabelOutline.h,v $
10  Date: $Date$
11  Version: $Revision$
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkImageLabelOutline_h
16 #define __vtkImageLabelOutline_h
17 
19 
20 #include "vtkMRMLLogicExport.h"
21 
22 class vtkImageData;
23 
28 class VTK_MRML_LOGIC_EXPORT vtkImageLabelOutline : public vtkImageNeighborhoodFilter
29 {
30 public:
31  static vtkImageLabelOutline *New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
37  vtkSetMacro(Background, float);
38  vtkGetMacro(Background, float);
39 
42  void SetOutline(int outline);
43  vtkGetMacro(Outline, int);
44 
45 protected:
47  ~vtkImageLabelOutline() override;
48 
49  float Background;
50  int Outline;
51 
52  void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
53  int extent[6], int id) override;
54 
55 private:
57  void operator=(const vtkImageLabelOutline&) = delete;
58 };
59 
60 #endif
static vtkImageNeighborhoodFilter * New()
Augments vtkImageSpatialFilter with a mask to allow neighborhoods of any shape.
Display labelmap outlines.