ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / FindTilt(ImGearRasterPage,Double,Double,Double) Method
An ImageGear.Core.ImGearRasterPage class object to process.
Returns the slope in the X direction of the tilt plane.
Returns the slope in the Y direction of the tilt plane.
Returns the piston of the tilt plane.




In This Topic
    FindTilt(ImGearRasterPage,Double,Double,Double) Method
    In This Topic
    Computes the least-squares best fit plane for an image.
    Syntax
    'Declaration
     
    Public Shared Sub FindTilt( _
       ByVal page As ImGearRasterPage, _
       ByRef slopeX As Double, _
       ByRef slopeY As Double, _
       ByRef piston As Double _
    ) 
    'Usage
     
    Dim page As ImGearRasterPage
    Dim slopeX As Double
    Dim slopeY As Double
    Dim piston As Double
     
    ImGearRasterProcessing.FindTilt(page, slopeX, slopeY, piston)
    public static void FindTilt( 
       ImGearRasterPage page,
       out double slopeX,
       out double slopeY,
       out double piston
    )
    public: static void FindTilt( 
       ImGearRasterPage* page,
       [PARAMFLAG::Out] double slopeX,
       [PARAMFLAG::Out] double slopeY,
       [PARAMFLAG::Out] double piston
    ) 
    public:
    static void FindTilt( 
       ImGearRasterPage^ page,
       [Out] double slopeX,
       [Out] double slopeY,
       [Out] double piston
    ) 

    Parameters

    page
    An ImageGear.Core.ImGearRasterPage class object to process.
    slopeX
    Returns the slope in the X direction of the tilt plane.
    slopeY
    Returns the slope in the Y direction of the tilt plane.
    piston
    Returns the piston of the tilt plane.
    Remarks
    This method computes the least-squares best fit plane for an image. The plane will be given by formula:

    f(x, y) = SlopeX * x + SlopeY * y + Piston.

    Can be applied only to 8, 16 or 32bit grayscale images with one channel.

    Example
    See Also