@Name(value="cv::Rect_<double>") @NoOffset public static class opencv_core.Rectd extends DoublePointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Rectd()
various constructors
|
Rectd(double _x,
double _y,
double _width,
double _height) |
Rectd(long size)
Native array allocator.
|
Rectd(opencv_core.Point2d pt1,
opencv_core.Point2d pt2) |
Rectd(opencv_core.Point2d org,
opencv_core.Size2d sz) |
Rectd(opencv_core.Rectd r) |
Rectd(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
|
double |
height() |
opencv_core.Rectd |
height(double height) |
opencv_core.Rectd |
position(long position) |
opencv_core.Rectd |
put(opencv_core.Rectd r) |
opencv_core.Size2d |
size()
size (width, height) of the rectangle
|
opencv_core.Point2d |
tl()
the top-left corner
|
double |
width() |
opencv_core.Rectd |
width(double width) |
double |
x() |
opencv_core.Rectd |
x(double x) |
double |
y() |
opencv_core.Rectd |
y(double y) |
asBuffer, capacity, get, get, get, get, limit, put, put, put, putaddress, asByteBuffer, calloc, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, free, hashCode, isNull, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic Rectd(Pointer p)
Pointer.Pointer(Pointer).public Rectd(long size)
Pointer.position(long).public Rectd()
public Rectd(double _x,
double _y,
double _width,
double _height)
public Rectd(@Const @ByRef opencv_core.Rectd r)
public Rectd(@Const @ByRef opencv_core.Point2d org, @Const @ByRef opencv_core.Size2d sz)
public Rectd(@Const @ByRef opencv_core.Point2d pt1, @Const @ByRef opencv_core.Point2d pt2)
public opencv_core.Rectd position(long position)
position in class DoublePointer@ByRef @Name(value="operator =") public opencv_core.Rectd put(@Const @ByRef opencv_core.Rectd 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 contains(@Const @ByRef opencv_core.Point2d pt)
public double x()
public opencv_core.Rectd x(double x)
public double y()
public opencv_core.Rectd y(double y)
public double width()
public opencv_core.Rectd width(double width)
public double height()
public opencv_core.Rectd height(double height)
Copyright © 2017. All rights reserved.