@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class ImgFrame extends Buffer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ImgFrame()
Construct ImgFrame message.
|
ImgFrame(long size)
Native array allocator.
|
ImgFrame(Pointer p)
Pointer cast constructor.
|
ImgFrame(RawImgFrame ptr) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCategory()
Retrieves image category
|
org.bytedeco.opencv.opencv_core.Mat |
getCvFrame()
\note This API only available if OpenCV support is enabled
Retrieves cv::Mat suitable for use in common opencv functions.
|
org.bytedeco.opencv.opencv_core.Mat |
getFrame() |
org.bytedeco.opencv.opencv_core.Mat |
getFrame(boolean copy)
\note This API only available if OpenCV support is enabled
Retrieves data as cv::Mat with specified width, height and type
|
int |
getHeight()
Retrieves image height in pixels
|
int |
getInstanceNum()
Retrieves instance number
|
ImgFrame |
getPointer(long i) |
int |
getSequenceNum()
Retrieves image sequence number
|
Pointer |
getTimestamp()
Retrieves image timestamp related to steady_clock / time.monotonic
|
Pointer |
getTimestampDevice()
Retrieves image timestamp directly captured from device's monotonic clock,
not synchronized to host time.
|
RawImgFrame.Type |
getType()
Retrieves image type
|
int |
getWidth()
Retrieves image width in pixels
|
ImgFrame |
position(long position) |
void |
setCategory(int category) |
void |
setFrame(org.bytedeco.opencv.opencv_core.Mat frame)
\note This API only available if OpenCV support is enabled
Copies cv::Mat data to ImgFrame buffer
|
void |
setHeight(int arg0)
Specifies frame height
|
void |
setInstanceNum(int instance)
Instance number relates to the origin of the frame (which camera)
|
void |
setSequenceNum(int seq)
Specifies sequence number
|
void |
setTimestamp(Pointer timestamp)
Specifies current timestamp, related to steady_clock / time.monotonic
|
void |
setType(int type) |
void |
setType(RawImgFrame.Type type)
Specifies frame type, RGB, BGR, ...
|
void |
setWidth(int width)
Specifies frame width
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic ImgFrame(Pointer p)
Pointer(Pointer).public ImgFrame(long size)
Pointer.position(long).public ImgFrame()
public ImgFrame(@SharedPtr RawImgFrame ptr)
public ImgFrame getPointer(long i)
getPointer in class Buffer@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") public Pointer getTimestamp()
@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") public Pointer getTimestampDevice()
@Cast(value="unsigned int") public int getSequenceNum()
public RawImgFrame.Type getType()
public void setTimestamp(@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") Pointer timestamp)
public void setInstanceNum(@Cast(value="unsigned int") int instance)
instance - Instance numberpublic void setCategory(@Cast(value="unsigned int") int category)
category - Image categorypublic void setSequenceNum(@Cast(value="unsigned int") int seq)
seq - Sequence numberpublic void setWidth(@Cast(value="unsigned int") int width)
width - frame widthpublic void setHeight(@Cast(value="unsigned int") int arg0)
width - frame heightpublic void setType(RawImgFrame.Type type)
type - Type of imagepublic void setFrame(@ByVal org.bytedeco.opencv.opencv_core.Mat frame)
frame - Input cv::Mat frame from which to copy the data@ByVal public org.bytedeco.opencv.opencv_core.Mat getFrame(@Cast(value="bool") boolean copy)
copy - If false only a reference to data is made, otherwise a copy@ByVal public org.bytedeco.opencv.opencv_core.Mat getFrame()
@ByVal public org.bytedeco.opencv.opencv_core.Mat getCvFrame()
Copyright © 2021. All rights reserved.