@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
|
int |
getColorTemperature()
Retrieves white-balance color temperature of the light source, in kelvins
|
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.
|
Pointer |
getExposureTime()
Retrieves exposure time
|
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
|
int |
getLensPosition()
Retrieves lens position, range 0..255.
|
ImgFrame |
getPointer(long i) |
int |
getSensitivity()
Retrieves sensitivity, as an ISO value
|
long |
getSequenceNum()
Retrieves image sequence number
|
Pointer |
getTimestamp()
Retrieves image timestamp (end of exposure) related to dai::Clock::now()
|
Pointer |
getTimestamp(depthai.CameraExposureOffset offset)
Retrieves image timestamp (at the specified offset of exposure) related to dai::Clock::now()
|
Pointer |
getTimestamp(int offset) |
Pointer |
getTimestampDevice()
Retrieves image timestamp (end of exposure) directly captured from device's monotonic clock,
not synchronized to host time.
|
Pointer |
getTimestampDevice(depthai.CameraExposureOffset offset)
Retrieves image timestamp (at the specified offset of exposure) directly captured from device's monotonic clock,
not synchronized to host time.
|
Pointer |
getTimestampDevice(int offset) |
RawImgFrame.Type |
getType()
Retrieves image type
|
int |
getWidth()
Retrieves image width in pixels
|
ImgFrame |
position(long position) |
ImgFrame |
setCategory(int category) |
ImgFrame |
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
|
ImgFrame |
setHeight(int height)
Specifies frame height
|
ImgFrame |
setInstanceNum(int instance)
Instance number relates to the origin of the frame (which camera)
|
ImgFrame |
setSequenceNum(long seq)
Specifies sequence number
|
ImgFrame |
setSize(int width,
int height)
Specifies frame size
|
ImgFrame |
setSize(Pointer size)
Specifies frame size
|
ImgFrame |
setTimestamp(Pointer timestamp)
Retrieves image timestamp related to dai::Clock::now()
|
ImgFrame |
setTimestampDevice(Pointer timestamp)
Sets image timestamp related to dai::Clock::now()
|
ImgFrame |
setType(int type) |
ImgFrame |
setType(RawImgFrame.Type type)
Specifies frame type, RGB, BGR, ...
|
ImgFrame |
setWidth(int width)
Specifies frame width
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, 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()
@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") public Pointer getTimestamp(depthai.CameraExposureOffset offset)
@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") public Pointer getTimestamp(@Cast(value="dai::CameraExposureOffset") int offset)
@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") public Pointer getTimestampDevice(depthai.CameraExposureOffset offset)
@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") public Pointer getTimestampDevice(@Cast(value="dai::CameraExposureOffset") int offset)
public RawImgFrame.Type getType()
@ByVal @Cast(value="std::chrono::microseconds*") public Pointer getExposureTime()
public int getSensitivity()
public int getColorTemperature()
public int getLensPosition()
@ByRef public ImgFrame setTimestamp(@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") Pointer timestamp)
@ByRef public ImgFrame setTimestampDevice(@ByVal @Cast(value="std::chrono::time_point<std::chrono::steady_clock,std::chrono::steady_clock::duration>*") Pointer timestamp)
@ByRef public ImgFrame setInstanceNum(@Cast(value="unsigned int") int instance)
instance - Instance number@ByRef public ImgFrame setCategory(@Cast(value="unsigned int") int category)
category - Image category@ByRef public ImgFrame setSequenceNum(@Cast(value="int64_t") long seq)
seq - Sequence number@ByRef public ImgFrame setWidth(@Cast(value="unsigned int") int width)
width - frame width@ByRef public ImgFrame setHeight(@Cast(value="unsigned int") int height)
height - frame height@ByRef public ImgFrame setSize(@Cast(value="unsigned int") int width, @Cast(value="unsigned int") int height)
height - frame heightwidth - frame width@ByRef public ImgFrame setSize(@ByVal @Cast(value="std::tuple<unsigned int,unsigned int>*") Pointer size)
size - frame size@ByRef public ImgFrame setType(RawImgFrame.Type type)
type - Type of image@ByRef public ImgFrame 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 © 2023. All rights reserved.