ImageGear for .NET
FindTilt(ImGearRasterPage,Double,Double,Double) Method
See Also  Example Send Feedback
ImageGear21.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : FindTilt(ImGearRasterPage,Double,Double,Double) Method




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.

Glossary Item Box

Computes the least-squares best fit plane for an image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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

C#Copy Code
// Find the tilt of an image.
double slopeX, slopeY, piston;
ImGearRasterProcessing.FindTilt(igRasterPage, out slopeX, out slopeY, out piston);

// Add the found tilt from the image, in effect removing it.
ImGearRasterProcessing.AddTilt(igRasterPage, slopeX, slopeY);
Visual BasicCopy Code
' Find the tilt of an image.
Dim slopeX As Double, slopeY As Double, piston As Double
ImGearRasterProcessing.FindTilt(igRasterPage, slopeX, slopeY, piston)

' Add the found tilt from the image, in effect removing it.
ImGearRasterProcessing.AddTilt(igRasterPage, slopeX, slopeY)

See Also

©2013. Accusoft Corporation. All Rights Reserved.