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

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 =========================================================================*/
00040 #ifndef __vtkWarpLens_h
00041 #define __vtkWarpLens_h
00042 
00043 #include "vtkPointSetToPointSetFilter.h"
00044 
00045 class VTK_GRAPHICS_EXPORT vtkWarpLens : public vtkPointSetToPointSetFilter
00046 {
00047 public:
00048   static vtkWarpLens *New();
00049   vtkTypeRevisionMacro(vtkWarpLens,vtkPointSetToPointSetFilter);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00055   void SetKappa(float kappa);
00056   float GetKappa();
00058 
00060 
00062   void SetCenter(float centerX, float centerY);
00063   float *GetCenter();
00065 
00067 
00068   vtkSetVector2Macro(PrincipalPoint,float);
00069   vtkGetVectorMacro(PrincipalPoint,float,2);
00071 
00073 
00074   vtkSetMacro(K1,float);
00075   vtkGetMacro(K1,float);
00076   vtkSetMacro(K2,float);
00077   vtkGetMacro(K2,float);
00079 
00081 
00082   vtkSetMacro(P1,float);
00083   vtkGetMacro(P1,float);
00084   vtkSetMacro(P2,float);
00085   vtkGetMacro(P2,float);
00087 
00089 
00090   vtkSetMacro(FormatWidth,float);
00091   vtkGetMacro(FormatWidth,float);
00092   vtkSetMacro(FormatHeight,float);
00093   vtkGetMacro(FormatHeight,float);
00095 
00097 
00098   vtkSetMacro(ImageWidth,int);
00099   vtkGetMacro(ImageWidth,int);
00100   vtkSetMacro(ImageHeight,int);
00101   vtkGetMacro(ImageHeight,int);
00103 
00104 
00105 protected:
00106   vtkWarpLens();
00107   ~vtkWarpLens() {};
00108 
00109   void Execute();
00110 
00111   float PrincipalPoint[2];      // The calibrated principal point of camera/lens in mm
00112   float K1;                     // Symmetric radial distortion parameters
00113   float K2;
00114   float P1;                     // Decentering distortion parameters
00115   float P2;
00116   float FormatWidth;            // imager format width in mm
00117   float FormatHeight;           // imager format height in mm
00118   int ImageWidth;               // image width in pixels
00119   int ImageHeight;              // image height in pixels
00120 private:
00121   vtkWarpLens(const vtkWarpLens&);  // Not implemented.
00122   void operator=(const vtkWarpLens&);  // Not implemented.
00123 };
00124 
00125 #endif