@Name(value="cv::Rect_<float>")
@NoOffset
public static class opencv_core.Rect2f
extends org.bytedeco.javacpp.FloatPointer
| Constructor and Description |
|---|
Rect2f()
default constructor
|
Rect2f(float _x,
float _y,
float _width,
float _height) |
Rect2f(long size)
Native array allocator.
|
Rect2f(opencv_core.Point2f pt1,
opencv_core.Point2f pt2) |
Rect2f(opencv_core.Point2f org,
opencv_core.Size2f sz) |
Rect2f(opencv_core.Rect2f r) |
Rect2f(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
area()
area (width*height) of the rectangle
|
opencv_core.Point2f |
br()
the bottom-right corner
|
boolean |
contains(opencv_core.Point2f pt)
checks whether the rectangle contains the point
|
boolean |
empty()
true if empty
|
float |
height()
height of the rectangle
|
opencv_core.Rect2f |
height(float height) |
opencv_core.Rect2f |
position(long position) |
opencv_core.Rect2f |
put(opencv_core.Rect2f r) |
opencv_core.Size2f |
size()
size (width, height) of the rectangle
|
opencv_core.Point2f |
tl()
the top-left corner
|
float |
width()
width of the rectangle
|
opencv_core.Rect2f |
width(float width) |
float |
x()
x coordinate of the top-left corner
|
opencv_core.Rect2f |
x(float x) |
float |
y()
y coordinate of the top-left corner
|
opencv_core.Rect2f |
y(float 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 Rect2f(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Rect2f(long size)
Pointer.position(long).public Rect2f()
public Rect2f(float _x,
float _y,
float _width,
float _height)
public Rect2f(@Const @ByRef
opencv_core.Rect2f r)
public Rect2f(@Const @ByRef
opencv_core.Point2f org,
@Const @ByRef
opencv_core.Size2f sz)
public Rect2f(@Const @ByRef
opencv_core.Point2f pt1,
@Const @ByRef
opencv_core.Point2f pt2)
public opencv_core.Rect2f position(long position)
position in class org.bytedeco.javacpp.FloatPointer@ByRef @Name(value="operator =") public opencv_core.Rect2f put(@Const @ByRef opencv_core.Rect2f r)
@ByVal public opencv_core.Point2f tl()
@ByVal public opencv_core.Point2f br()
@ByVal public opencv_core.Size2f size()
public float area()
@Cast(value="bool") public boolean empty()
@Cast(value="bool")
public boolean contains(@Const @ByRef
opencv_core.Point2f pt)
public float x()
public opencv_core.Rect2f x(float x)
public float y()
public opencv_core.Rect2f y(float y)
public float width()
public opencv_core.Rect2f width(float width)
public float height()
public opencv_core.Rect2f height(float height)
Copyright © 2018. All rights reserved.