Packages

class Box2d extends Serializable

2-D Bounding Box

Annotations
@SQLUserDefinedType() @SerialVersionUID()
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Box2d
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Box2d(xmin: Double, ymin: Double, xmax: Double, ymax: Double)

    Create a 2-D Bounding Box.

    Create a 2-D Bounding Box.

    xmin

    x-corrdinate of the top-left of the box.

    ymin

    y-corrdinate of the top-left of the box.

    xmax

    x-corrdinate of the bottom-right of the box.

    ymax

    y-corrdinate of the bottom-right of the box.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &(that: Box2d): Option[Box2d]

    Return the intersection/overlap of two bounding boxes if exist.

    Return the intersection/overlap of two bounding boxes if exist.

    val overlap = box1 & box2
    val overlap_area = overlap.map(b => b.area()).getOrElse(0);
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def area: Double

    Calculate the size of the bounding box.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(b: Any): Boolean
    Definition Classes
    Box2d → AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def intersect(that: Box2d): Option[Box2d]

    Return the intersection of two bounding boxes if exist.

    Return the intersection of two bounding boxes if exist.

    val overlap = box1 intersect box2
    val overlap_area = overlap.map(b => b.area()).getOrElse(0);
  14. def iou(that: Box2d): Double

    Calculate IOU between two Box2d bounding boxes.

    Calculate IOU between two Box2d bounding boxes.

    https://www.pyimagesearch.com/2016/11/07/intersection-over-union-iou-for-object-detection/

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def overlaps(that: Box2d): Boolean

    Return True of the two bounding box overlaps.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    Box2d → AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. val xmax: Double
  26. val xmin: Double
  27. val ymax: Double
  28. val ymin: Double

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped