ImageJS
    Preparing search index...

    Function cropRectangle

    • Crop an oriented rectangle from an image. If the rectangle's length or width are not an integers, its dimension is expanded in both directions such as the length and width are integers.

      Parameters

      • image: Image

        The input image

      • points: Point[]

        The points of the rectangle. Points must be circling around the rectangle (clockwise or anti-clockwise). The validity of the points passed is assumed and not checked.

      • Optionaloptions: CropRectangleOptions

        Crop options, see CropRectangleOptions

      Returns Image

      The cropped image. The orientation of the image is the one closest to the rectangle passed as input.