VTK
vtkWarpLens.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWarpLens.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef __vtkWarpLens_h
26 #define __vtkWarpLens_h
27 
28 #include "vtkPointSetAlgorithm.h"
29 
31 {
32 public:
33  static vtkWarpLens *New();
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
40  void SetKappa(double kappa);
41  double GetKappa();
43 
45 
47  void SetCenter(double centerX, double centerY);
48  double *GetCenter();
50 
52 
53  vtkSetVector2Macro(PrincipalPoint,double);
54  vtkGetVectorMacro(PrincipalPoint,double,2);
56 
58 
59  vtkSetMacro(K1,double);
60  vtkGetMacro(K1,double);
61  vtkSetMacro(K2,double);
62  vtkGetMacro(K2,double);
64 
66 
67  vtkSetMacro(P1,double);
68  vtkGetMacro(P1,double);
69  vtkSetMacro(P2,double);
70  vtkGetMacro(P2,double);
72 
74 
75  vtkSetMacro(FormatWidth,double);
76  vtkGetMacro(FormatWidth,double);
77  vtkSetMacro(FormatHeight,double);
78  vtkGetMacro(FormatHeight,double);
80 
82 
83  vtkSetMacro(ImageWidth,int);
84  vtkGetMacro(ImageWidth,int);
85  vtkSetMacro(ImageHeight,int);
86  vtkGetMacro(ImageHeight,int);
88 
89 protected:
90  vtkWarpLens();
92 
94 
95  double PrincipalPoint[2]; // The calibrated principal point of camera/lens in mm
96  double K1; // Symmetric radial distortion parameters
97  double K2;
98  double P1; // Decentering distortion parameters
99  double P2;
100  double FormatWidth; // imager format width in mm
101  double FormatHeight; // imager format height in mm
102  int ImageWidth; // image width in pixels
103  int ImageHeight; // image height in pixels
104 private:
105  vtkWarpLens(const vtkWarpLens&); // Not implemented.
106  void operator=(const vtkWarpLens&); // Not implemented.
107 };
108 
109 #endif