/
vtkImageLabelOutline.h
60 lines (44 loc) · 1.62 KB
/
vtkImageLabelOutline.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkImageLabelOutline.h,v $
Date: $Date$
Version: $Revision$
=========================================================================auto=*/
#ifndef __vtkImageLabelOutline_h
#define __vtkImageLabelOutline_h
#include "vtkImageNeighborhoodFilter.h"
#include "vtkMRMLLogicExport.h"
class vtkImageData;
/// \brief Display labelmap outlines.
///
/// Used in slicer for the Label layer to outline the segmented
/// structures (instead of showing them filled-in).
class VTK_MRML_LOGIC_EXPORT vtkImageLabelOutline : public vtkImageNeighborhoodFilter
{
public:
static vtkImageLabelOutline *New();
vtkTypeMacro(vtkImageLabelOutline,vtkImageNeighborhoodFilter);
void PrintSelf(ostream& os, vtkIndent indent) override;
///
/// background pixel value in the image (usually 0)
vtkSetMacro(Background, float);
vtkGetMacro(Background, float);
///
/// Thickness of the outline, used to set the kernel size
void SetOutline(int outline);
vtkGetMacro(Outline, int);
protected:
vtkImageLabelOutline();
~vtkImageLabelOutline() override;
float Background;
int Outline;
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
int extent[6], int id) override;
private:
vtkImageLabelOutline(const vtkImageLabelOutline&) = delete;
void operator=(const vtkImageLabelOutline&) = delete;
};
#endif