Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkImageBimodalAnalysis.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: vtkImageBimodalAnalysis.h,v $
10  Date: $Date: 2006/06/14 20:44:13 $
11  Version: $Revision: 1.23 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkImageBimodalAnalysis_h
16 #define __vtkImageBimodalAnalysis_h
17 
18 // MRML includes
19 #include "vtkMRML.h"
20 
21 // VTK includes
22 #include <vtkImageAlgorithm.h>
23 
24 #define VTK_BIMODAL_MODALITY_CT 0
25 #define VTK_BIMODAL_MODALITY_MR 1
26 
34 class VTK_MRML_EXPORT vtkImageBimodalAnalysis : public vtkImageAlgorithm
35 {
36 public:
37  static vtkImageBimodalAnalysis *New();
38  vtkTypeMacro(vtkImageBimodalAnalysis,vtkImageAlgorithm);
39  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
40 
43  vtkSetMacro(Modality, int);
44  vtkGetMacro(Modality, int);
45  void SetModalityToMR() {this->SetModality(VTK_BIMODAL_MODALITY_MR);};
46  void SetModalityToCT() {this->SetModality(VTK_BIMODAL_MODALITY_CT);};
47 
50  vtkGetMacro(Threshold, int);
51  vtkGetMacro(Window, int);
52  vtkGetMacro(Level, int);
53  vtkGetMacro(Min, int);
54  vtkGetMacro(Max, int);
55  vtkGetVectorMacro(SignalRange, int, 2);
56  vtkGetVectorMacro(ClipExtent, int, 6);
57 
58  vtkGetMacro(Offset, int);
59  vtkSetMacro(Offset, int);
60 
63  vtkSetMacro(Threshold, int);
64  vtkSetMacro(Window, int);
65  vtkSetMacro(Level, int);
66  vtkSetMacro(Min, int);
67  vtkSetMacro(Max, int);
68  vtkSetVector2Macro(SignalRange, int);
69  vtkSetVectorMacro(ClipExtent, int, 6);
70 
71 protected:
74 
75  int Modality;
76 
77  int Threshold;
78  int Window;
79  int Level;
80  int Min;
81  int Max;
82  int ClipExtent[6];
83  int SignalRange[2];
84 
85  int Offset;
86 
87  virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
88  void ExecuteDataWithInformation(vtkDataObject *, vtkInformation*) VTK_OVERRIDE;
89 
90 private:
92  void operator=(const vtkImageBimodalAnalysis&);
93 };
94 
95 #endif
96 
#define VTK_BIMODAL_MODALITY_CT
Analysis bimodal histograms.
#define VTK_BIMODAL_MODALITY_MR