public static class opencv_core.Rect extends IntPointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_core.Rect()
various constructors
|
opencv_core.Rect(int size) |
opencv_core.Rect(int _x,
int _y,
int _width,
int _height) |
opencv_core.Rect(opencv_core.CvRect r) |
opencv_core.Rect(opencv_core.Point pt1,
opencv_core.Point pt2) |
opencv_core.Rect(opencv_core.Point org,
opencv_core.Size sz) |
opencv_core.Rect(opencv_core.Rect r) |
opencv_core.Rect(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
int |
area()
area (width*height) of the rectangle
|
opencv_core.CvRect |
asCvRect()
conversion to the old-style CvRect
|
opencv_core.Point |
br()
the bottom-right corner
|
boolean |
contains(opencv_core.Point pt)
checks whether the rectangle contains the point
|
int |
height() |
opencv_core.Rect |
height(int height) |
opencv_core.Rect |
position(int position) |
opencv_core.Rect |
put(opencv_core.Rect r) |
opencv_core.Size |
size()
size (width, height) of the rectangle
|
opencv_core.Point |
tl()
the top-left corner
|
int |
width() |
opencv_core.Rect |
width(int width) |
int |
x() |
opencv_core.Rect |
x(int x) |
int |
y() |
opencv_core.Rect |
y(int y) |
asBuffer, capacity, get, get, get, get, getString, getStringCodePoints, limit, put, put, put, put, putStringaddress, asByteBuffer, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic opencv_core.Rect(Pointer p)
public opencv_core.Rect(int size)
public opencv_core.Rect()
public opencv_core.Rect(int _x,
int _y,
int _width,
int _height)
public opencv_core.Rect(opencv_core.Rect r)
public opencv_core.Rect(opencv_core.CvRect r)
public opencv_core.Rect(opencv_core.Point org, opencv_core.Size sz)
public opencv_core.Rect(opencv_core.Point pt1, opencv_core.Point pt2)
public opencv_core.Rect position(int position)
position in class IntPointerpublic opencv_core.Rect put(opencv_core.Rect r)
public opencv_core.Point tl()
public opencv_core.Point br()
public opencv_core.Size size()
public int area()
public opencv_core.CvRect asCvRect()
public boolean contains(opencv_core.Point pt)
public int x()
public opencv_core.Rect x(int x)
public int y()
public opencv_core.Rect y(int y)
public int width()
public opencv_core.Rect width(int width)
public int height()
public opencv_core.Rect height(int height)
Copyright © 2014. All Rights Reserved.