NormalizedRectangle Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. ResponseBase - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. Identifiable - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. Response - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. Thing - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. Intangible - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. StructuredValue - com.
microsoft. azure. cognitiveservices. search. imagesearch. models. NormalizedRectangle
- com.
- com.
- com.
- com.
- com.
- com.
- 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.
Constructor Summary
Constructor | Description | |
---|---|---|
NormalizedRectangle() |
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. |
Methods inherited from Identifiable
Methods inherited from Response
Methods inherited from Thing
Methods inherited from java.lang.Object
Constructor Details
NormalizedRectangle
public NormalizedRectangle()
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