ImageGear22.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : FindTilt(ImGearRasterPage,Double,Double,Double) Method |
'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 )
f(x, y) = SlopeX * x + SlopeY * y + Piston.
Can be applied only to 8, 16 or 32bit grayscale images with one channel.
// 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);
' 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)