Open CASCADE Technology 6.6.0
Data Structures
Image_BilinearPixelInterpolation.hxx File Reference
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <Image_PixelInterpolation.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Image_Image.hxx>
#include <Standard_Real.hxx>
#include <Standard_Integer.hxx>
#include <Handle_Image_DColorImage.hxx>
#include <Handle_Image_DIndexedImage.hxx>

Data Structures

class  Image_BilinearPixelInterpolation
 The class BilinearPixelInterpolation is used to compute a
SubPixel value on non integer Image coordinate
BilinearPixelInterpolation redefined a new method to compute
a SubPixel value .
The value is the bilinear interpolation of the
four nearest Image Pixel.
If V1, V2, V3, V4 is the value and (X1,Y1) , (X2,Y2),
(X3,Y3), (X4,Y4) the coordinates of the four nearest
Image Pixel then first we solve :
V1 = a*X1 + b*Y1 + c*X1*Y1 + d
V2 = a*X2 + b*Y2 + c*X2*Y2 + d
V3 = a*X3 + b*Y3 + c*X3*Y3 + d
V1 = a*X4 + b*Y4 + c*X4*Y4 + d

and V = a*FX + b*XY + c*FX*FY + d
is the Image SubPixel value on non integer
coordinate (FX,FY).
More...
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines