@Name(value="cv::Size_") @NoOffset public static class opencv_core.Size extends IntPointer
The class includes two members called width and height. The structure can be converted to and from the old OpenCV structures CvSize and CvSize2D32f . The same set of arithmetic and comparison operations as for Point_ is available.
OpenCV defines the following Size_\<\> aliases:
typedef Size_<int> Size2i;
typedef Size2i Size;
typedef Size_<float> Size2f;
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_core.Size()
various constructors
|
opencv_core.Size(int _width,
int _height) |
opencv_core.Size(long size)
Native array allocator.
|
opencv_core.Size(opencv_core.Point pt) |
opencv_core.Size(opencv_core.Size sz) |
opencv_core.Size(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
area()
the area (width*height)
|
int |
height() |
opencv_core.Size |
height(int height) |
opencv_core.Size |
position(long position) |
opencv_core.Size |
put(opencv_core.Size sz) |
int |
width()
conversion of another data type.
|
opencv_core.Size |
width(int width) |
asBuffer, capacity, get, get, get, get, getString, getStringCodePoints, limit, put, put, put, put, putStringaddress, asByteBuffer, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_core.Size(Pointer p)
Pointer.Pointer(Pointer).public opencv_core.Size(long size)
Pointer.position(long).public opencv_core.Size()
public opencv_core.Size(int _width,
int _height)
public opencv_core.Size(@Const@ByRef opencv_core.Size sz)
public opencv_core.Size(@Const@ByRef opencv_core.Point pt)
public opencv_core.Size position(long position)
position in class IntPointer@ByRef @Name(value="operator =") public opencv_core.Size put(@Const@ByRef opencv_core.Size sz)
public int area()
public int width()
public opencv_core.Size width(int width)
public int height()
public opencv_core.Size height(int height)
Copyright © 2016. All rights reserved.