Code samples for warpPerspective (Automatically generated by the Every Method demo).
// Automated test of warpPerspective - Typical Values
// TIEVisionImage.warpPerspective - Top Inset: 20%, Bottom Inset: 0%, Border: ievBORDER_CONSTANT, Inverse: false
// Map the image corners (TL, TR, BR, BL) to a trapezoid
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 80, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 0 )); dstPoints.push_back( IEVisionPoint2f( 319, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 399 )); dstPoints.push_back( IEVisionPoint2f( 399, 399 ));
srcPoints.push_back( IEVisionPoint2f( 0, 399 )); dstPoints.push_back( IEVisionPoint2f( 0, 399 ));
hmat := IEVisionLib().createMath().findHomography( srcPoints, dstPoints, ievREGULAR );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpPerspective( hmat, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 0, 0, 0, 0 ), false ));
ImageEnView1.Update();

// Automated test of warpPerspective - Alpha Channel - Typical Values
// TIEVisionImage.warpPerspective - Top Inset: 20%, Bottom Inset: 0%, Border: ievBORDER_CONSTANT, Inverse: false
// Map the image corners (TL, TR, BR, BL) to a trapezoid
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 80, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 0 )); dstPoints.push_back( IEVisionPoint2f( 319, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 399 )); dstPoints.push_back( IEVisionPoint2f( 399, 399 ));
srcPoints.push_back( IEVisionPoint2f( 0, 399 )); dstPoints.push_back( IEVisionPoint2f( 0, 399 ));
hmat := IEVisionLib().createMath().findHomography( srcPoints, dstPoints, ievREGULAR );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpPerspective( hmat, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 0, 0, 0, 0 ), false ));
ImageEnView1.Update();

// Automated test of warpPerspective - 32-Bit RGBA - Typical Values
// TIEVisionImage.warpPerspective - Top Inset: 20%, Bottom Inset: 0%, Border: ievBORDER_CONSTANT, Inverse: false
// Map the image corners (TL, TR, BR, BL) to a trapezoid
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 80, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 0 )); dstPoints.push_back( IEVisionPoint2f( 319, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 399 )); dstPoints.push_back( IEVisionPoint2f( 399, 399 ));
srcPoints.push_back( IEVisionPoint2f( 0, 399 )); dstPoints.push_back( IEVisionPoint2f( 0, 399 ));
hmat := IEVisionLib().createMath().findHomography( srcPoints, dstPoints, ievREGULAR );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpPerspective( hmat, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 0, 0, 0, 0 ), false ));
ImageEnView1.Update();

// Automated test of warpPerspective - Random Values
// TIEVisionImage.warpPerspective - Top Inset: 42%, Bottom Inset: 22%, Border: ievBORDER_CONSTANT, Inverse: true
// Map the image corners (TL, TR, BR, BL) to a trapezoid
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 168, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 0 )); dstPoints.push_back( IEVisionPoint2f( 231, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 399 )); dstPoints.push_back( IEVisionPoint2f( 311, 399 ));
srcPoints.push_back( IEVisionPoint2f( 0, 399 )); dstPoints.push_back( IEVisionPoint2f( 88, 399 ));
hmat := IEVisionLib().createMath().findHomography( srcPoints, dstPoints, ievREGULAR );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpPerspective( hmat, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 255, 255, 255, 0 ), true ));
ImageEnView1.Update();

// Automated test of warpPerspective - Alpha Channel - Random Values
// TIEVisionImage.warpPerspective - Top Inset: 42%, Bottom Inset: 22%, Border: ievBORDER_CONSTANT, Inverse: true
// Map the image corners (TL, TR, BR, BL) to a trapezoid
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 168, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 0 )); dstPoints.push_back( IEVisionPoint2f( 231, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 399 )); dstPoints.push_back( IEVisionPoint2f( 311, 399 ));
srcPoints.push_back( IEVisionPoint2f( 0, 399 )); dstPoints.push_back( IEVisionPoint2f( 88, 399 ));
hmat := IEVisionLib().createMath().findHomography( srcPoints, dstPoints, ievREGULAR );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpPerspective( hmat, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 255, 255, 255, 0 ), true ));
ImageEnView1.Update();

// Automated test of warpPerspective - 32-Bit RGBA - Random Values
// TIEVisionImage.warpPerspective - Top Inset: 42%, Bottom Inset: 22%, Border: ievBORDER_CONSTANT, Inverse: true
// Map the image corners (TL, TR, BR, BL) to a trapezoid
srcPoints := IEVisionLib().createVectorPoint2f();
dstPoints := IEVisionLib().createVectorPoint2f();
srcPoints.push_back( IEVisionPoint2f( 0, 0 )); dstPoints.push_back( IEVisionPoint2f( 168, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 0 )); dstPoints.push_back( IEVisionPoint2f( 231, 0 ));
srcPoints.push_back( IEVisionPoint2f( 399, 399 )); dstPoints.push_back( IEVisionPoint2f( 311, 399 ));
srcPoints.push_back( IEVisionPoint2f( 0, 399 )); dstPoints.push_back( IEVisionPoint2f( 88, 399 ));
hmat := IEVisionLib().createMath().findHomography( srcPoints, dstPoints, ievREGULAR );
ImageEnView1.IEBitmap.AssignIEVisionImage( ImageEnView1.IEBitmap.GetIEVisionImage().warpPerspective( hmat, IEVisionSize( 400, 400 ), ievLINEAR, ievBORDER_CONSTANT, IEVisionScalar( 255, 255, 255, 0 ), true ));
ImageEnView1.Update();
