Class BoundingBox
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.vision.customvision.training.models.BoundingBox
-
public class BoundingBox extends Object
Bounding box that defines a region of an image.
-
-
Constructor Summary
Constructors Constructor Description BoundingBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
height()
Get the height value.double
left()
Get the left value.double
top()
Get the top value.double
width()
Get the width value.BoundingBox
withHeight(double height)
Set the height value.BoundingBox
withLeft(double left)
Set the left value.BoundingBox
withTop(double top)
Set the top value.BoundingBox
withWidth(double width)
Set the width value.
-
-
-
Method Detail
-
left
public double left()
Get the left value.- Returns:
- the left value
-
withLeft
public BoundingBox withLeft(double left)
Set the left value.- Parameters:
left
- the left value to set- Returns:
- the BoundingBox object itself.
-
top
public double top()
Get the top value.- Returns:
- the top value
-
withTop
public BoundingBox withTop(double top)
Set the top value.- Parameters:
top
- the top value to set- Returns:
- the BoundingBox object itself.
-
width
public double width()
Get the width value.- Returns:
- the width value
-
withWidth
public BoundingBox withWidth(double width)
Set the width value.- Parameters:
width
- the width value to set- Returns:
- the BoundingBox object itself.
-
height
public double height()
Get the height value.- Returns:
- the height value
-
withHeight
public BoundingBox withHeight(double height)
Set the height value.- Parameters:
height
- the height value to set- Returns:
- the BoundingBox object itself.
-
-