Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkWarpLens.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkWarpLens.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00029 #ifndef __vtkWarpLens_h 00030 #define __vtkWarpLens_h 00031 00032 #include "vtkPointSetToPointSetFilter.h" 00033 00034 class VTK_GRAPHICS_EXPORT vtkWarpLens : public vtkPointSetToPointSetFilter 00035 { 00036 public: 00037 static vtkWarpLens *New(); 00038 vtkTypeRevisionMacro(vtkWarpLens,vtkPointSetToPointSetFilter); 00039 void PrintSelf(ostream& os, vtkIndent indent); 00040 00042 00044 void SetKappa(float kappa); 00045 float GetKappa(); 00047 00049 00051 void SetCenter(float centerX, float centerY); 00052 float *GetCenter(); 00054 00056 00057 vtkSetVector2Macro(PrincipalPoint,float); 00058 vtkGetVectorMacro(PrincipalPoint,float,2); 00060 00062 00063 vtkSetMacro(K1,float); 00064 vtkGetMacro(K1,float); 00065 vtkSetMacro(K2,float); 00066 vtkGetMacro(K2,float); 00068 00070 00071 vtkSetMacro(P1,float); 00072 vtkGetMacro(P1,float); 00073 vtkSetMacro(P2,float); 00074 vtkGetMacro(P2,float); 00076 00078 00079 vtkSetMacro(FormatWidth,float); 00080 vtkGetMacro(FormatWidth,float); 00081 vtkSetMacro(FormatHeight,float); 00082 vtkGetMacro(FormatHeight,float); 00084 00086 00087 vtkSetMacro(ImageWidth,int); 00088 vtkGetMacro(ImageWidth,int); 00089 vtkSetMacro(ImageHeight,int); 00090 vtkGetMacro(ImageHeight,int); 00092 00093 00094 protected: 00095 vtkWarpLens(); 00096 ~vtkWarpLens() {}; 00097 00098 void Execute(); 00099 00100 float PrincipalPoint[2]; // The calibrated principal point of camera/lens in mm 00101 float K1; // Symmetric radial distortion parameters 00102 float K2; 00103 float P1; // Decentering distortion parameters 00104 float P2; 00105 float FormatWidth; // imager format width in mm 00106 float FormatHeight; // imager format height in mm 00107 int ImageWidth; // image width in pixels 00108 int ImageHeight; // image height in pixels 00109 private: 00110 vtkWarpLens(const vtkWarpLens&); // Not implemented. 00111 void operator=(const vtkWarpLens&); // Not implemented. 00112 }; 00113 00114 #endif