Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Data Structures
Image_BalancedPixelInterpolation.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_BalancedPixelInterpolation
 The class BalancedPixelInterpolation is used to compute a
SubPixel value on non integer Image coordinate
BalancedPixelInterpolation redefined a new method to compute
a SubPixel value .
The value is the proportional to the distance of the
four nearest Image Pixel.
A B
SubPixel
C D
If VA, VB, VC, VD is the value of the four nearest Image
Pixel, if ColDelta and RowDelta is the distance from non
integer coordinate (FX,FY) to the upper left nearest Image
Pixel , then :
ColDelta = FX - XA ;
RowDelta = FY - YA ;
CAB = ColDelta*( VB - VA ) + VA
CCD = ColDelta*( VD - VC ) + VD
V = RowDelta*( CCD - CAB ) + CAB
is the Image SubPixel value on non integer
coordinate (FX,FY).
More...