@Name(value="cv::Size_<int>")
@NoOffset
public static class opencv_core.Size
extends org.bytedeco.javacpp.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;
| Constructor and Description |
|---|
Size()
default constructor
|
Size(int _width,
int _height) |
Size(long size)
Native array allocator.
|
Size(opencv_core.Point pt) |
Size(opencv_core.Size sz) |
Size(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
area()
the area (width*height)
|
boolean |
empty()
true if empty
|
int |
height()
the height
|
opencv_core.Size |
height(int height) |
opencv_core.Size |
position(long position) |
opencv_core.Size |
put(opencv_core.Size sz) |
int |
width()
the width
|
opencv_core.Size |
width(int width) |
asBuffer, capacity, get, get, get, get, getString, getStringCodePoints, limit, put, put, put, put, putStringaddress, 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 Size(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Size(long size)
Pointer.position(long).public Size()
public Size(int _width,
int _height)
public Size(@Const @ByRef
opencv_core.Size sz)
public Size(@Const @ByRef
opencv_core.Point pt)
public opencv_core.Size position(long position)
position in class org.bytedeco.javacpp.IntPointer@ByRef @Name(value="operator =") public opencv_core.Size put(@Const @ByRef opencv_core.Size sz)
public int area()
@Cast(value="bool") public boolean empty()
public int width()
public opencv_core.Size width(int width)
public int height()
public opencv_core.Size height(int height)
Copyright © 2018. All rights reserved.