ImageJS
    Preparing search index...

    Function getPerspectiveWarp

    • Computes a perspective transformation matrix to rectify a quadrilateral region into a rectangle.

      This function takes four corner points of a quadrilateral (e.g., a document photographed at an angle) and calculates the transformation matrix needed to "unwarp" it into a rectangular image. The output dimensions can be specified or calculated automatically based on the input geometry.

      Parameters

      Returns GetPerspectiveWarpData

      • Matrix from 4 points.