@Name(value="cv::Rect_<double>")
@NoOffset
public static class opencv_core.Rect2d
extends org.bytedeco.javacpp.DoublePointer
| Constructor and Description |
|---|
Rect2d()
default constructor
|
Rect2d(double _x,
double _y,
double _width,
double _height) |
Rect2d(long size)
Native array allocator.
|
Rect2d(opencv_core.Point2d pt1,
opencv_core.Point2d pt2) |
Rect2d(opencv_core.Point2d org,
opencv_core.Size2d sz) |
Rect2d(opencv_core.Rect2d r) |
Rect2d(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
area()
area (width*height) of the rectangle
|
opencv_core.Point2d |
br()
the bottom-right corner
|
boolean |
contains(opencv_core.Point2d pt)
checks whether the rectangle contains the point
|
boolean |
empty()
true if empty
|
double |
height()
height of the rectangle
|
opencv_core.Rect2d |
height(double height) |
opencv_core.Rect2d |
position(long position) |
opencv_core.Rect2d |
put(opencv_core.Rect2d r) |
opencv_core.Size2d |
size()
size (width, height) of the rectangle
|
opencv_core.Point2d |
tl()
the top-left corner
|
double |
width()
width of the rectangle
|
opencv_core.Rect2d |
width(double width) |
double |
x()
x coordinate of the top-left corner
|
opencv_core.Rect2d |
x(double x) |
double |
y()
y coordinate of the top-left corner
|
opencv_core.Rect2d |
y(double y) |
asBuffer, capacity, get, get, get, get, limit, put, put, put, putaddress, asByteBuffer, availablePhysicalBytes, calloc, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Rect2d(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Rect2d(long size)
Pointer.position(long).public Rect2d()
public Rect2d(double _x,
double _y,
double _width,
double _height)
public Rect2d(@Const @ByRef
opencv_core.Rect2d r)
public Rect2d(@Const @ByRef
opencv_core.Point2d org,
@Const @ByRef
opencv_core.Size2d sz)
public Rect2d(@Const @ByRef
opencv_core.Point2d pt1,
@Const @ByRef
opencv_core.Point2d pt2)
public opencv_core.Rect2d position(long position)
position in class org.bytedeco.javacpp.DoublePointer@ByRef @Name(value="operator =") public opencv_core.Rect2d put(@Const @ByRef opencv_core.Rect2d r)
@ByVal public opencv_core.Point2d tl()
@ByVal public opencv_core.Point2d br()
@ByVal public opencv_core.Size2d size()
public double area()
@Cast(value="bool") public boolean empty()
@Cast(value="bool")
public boolean contains(@Const @ByRef
opencv_core.Point2d pt)
public double x()
public opencv_core.Rect2d x(double x)
public double y()
public opencv_core.Rect2d y(double y)
public double width()
public opencv_core.Rect2d width(double width)
public double height()
public opencv_core.Rect2d height(double height)
Copyright © 2018. All rights reserved.