NormalizedRectangle Class
- java.
lang. Object - ResponseBase
- Identifiable
- Response
- Thing
- Intangible
- StructuredValue
- com.
microsoft. azure. cognitiveservices. search. imagesearch. models. NormalizedRectangle
- com.
public class NormalizedRectangle extends StructuredValue
Defines a region of an image. The region is defined by the coordinates of the top, left corner and bottom, right corner of the region. The coordinates are fractional values of the original image's width and height in the range 0.0 through 1.0.
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
bottom()
Get the bottom value. |
double |
left()
Get the left value. |
double |
right()
Get the right value. |
double |
top()
Get the top value. |
Normalized |
withBottom(double bottom)
Set the bottom value. |
Normalized |
withLeft(double left)
Set the left value. |
Normalized |
withRight(double right)
Set the right value. |
Normalized |
withTop(double top)
Set the top value. |
Inherited Members
Method Details
bottom
public double bottom()
Get the bottom value.
Returns:
left
public double left()
Get the left value.
Returns:
right
public double right()
Get the right value.
Returns:
top
public double top()
Get the top value.
Returns:
withBottom
public NormalizedRectangle withBottom(double bottom)
Set the bottom value.
Parameters:
Returns:
withLeft
public NormalizedRectangle withLeft(double left)
Set the left value.
Parameters:
Returns:
withRight
public NormalizedRectangle withRight(double right)
Set the right value.
Parameters:
Returns:
withTop
public NormalizedRectangle withTop(double top)
Set the top value.
Parameters:
Returns:
Applies to
Azure SDK for Java