NormalizedQuadrilateral Class

public class NormalizedQuadrilateral
extends StructuredValue

Defines a region of an image. The region is a convex quadrilateral defined by coordinates of its top left, top right, bottom left, and bottom right points. The coordinates are fractional values of the original image's width and height in the range 0.0 through 1.0.

Constructor Summary

Constructor Description
NormalizedQuadrilateral()

Method Summary

Modifier and Type Method and Description
Point2D bottomLeft()

Get the bottomLeft value.

Point2D bottomRight()

Get the bottomRight value.

Point2D topLeft()

Get the topLeft value.

Point2D topRight()

Get the topRight value.

NormalizedQuadrilateral withBottomLeft(Point2D bottomLeft)

Set the bottomLeft value.

NormalizedQuadrilateral withBottomRight(Point2D bottomRight)

Set the bottomRight value.

NormalizedQuadrilateral withTopLeft(Point2D topLeft)

Set the topLeft value.

NormalizedQuadrilateral withTopRight(Point2D topRight)

Set the topRight value.

Methods inherited from Identifiable

id

Methods inherited from Response

Methods inherited from Thing

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

NormalizedQuadrilateral

public NormalizedQuadrilateral()

Method Details

bottomLeft

public Point2D bottomLeft()

Get the bottomLeft value.

Returns:

the bottomLeft value

bottomRight

public Point2D bottomRight()

Get the bottomRight value.

Returns:

the bottomRight value

topLeft

public Point2D topLeft()

Get the topLeft value.

Returns:

the topLeft value

topRight

public Point2D topRight()

Get the topRight value.

Returns:

the topRight value

withBottomLeft

public NormalizedQuadrilateral withBottomLeft(Point2D bottomLeft)

Set the bottomLeft value.

Parameters:

bottomLeft - the bottomLeft value to set

Returns:

the NormalizedQuadrilateral object itself.

withBottomRight

public NormalizedQuadrilateral withBottomRight(Point2D bottomRight)

Set the bottomRight value.

Parameters:

bottomRight - the bottomRight value to set

Returns:

the NormalizedQuadrilateral object itself.

withTopLeft

public NormalizedQuadrilateral withTopLeft(Point2D topLeft)

Set the topLeft value.

Parameters:

topLeft - the topLeft value to set

Returns:

the NormalizedQuadrilateral object itself.

withTopRight

public NormalizedQuadrilateral withTopRight(Point2D topRight)

Set the topRight value.

Parameters:

topRight - the topRight value to set

Returns:

the NormalizedQuadrilateral object itself.

Applies to