@Namespace(value="dai::node") @NoOffset @Properties(inherit=depthai.class) public class Warp extends WarpPropertiesNode
Node.Connection, Node.DatatypeHierarchy, Node.Input, Node.InputMap, Node.Output, Node.OutputMapPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Warp(PipelineImpl par,
long nodeId) |
Warp(PipelineImpl par,
long nodeId,
WarpProperties props) |
Warp(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IntVector |
getHwIds()
Retrieve which hardware warp engines to use
|
WarpProperties.Interpolation |
getInterpolation()
Retrieve which interpolation method to use
|
Node.Input |
inputImage()
Input image to be modified
Default queue is blocking with size 8
|
static BytePointer |
NAME() |
Node.Output |
out()
Outputs ImgFrame message that carries warped image.
|
void |
setHwIds(IntVector ids)
Specify which hardware warp engines to use
|
void |
setInterpolation(WarpProperties.Interpolation interpolation)
Specify which interpolation method to use
|
void |
setMaxOutputFrameSize(int maxFrameSize)
Specify maximum size of output image.
|
void |
setNumFramesPool(int numFramesPool)
Specify number of frames in pool.
|
void |
setOutputSize(int width,
int height) |
void |
setOutputSize(Pointer size)
Sets output frame size in pixels
|
void |
setWarpMesh(FloatFloatPairVector meshData,
int width,
int height) |
void |
setWarpMesh(Point2fVector meshData,
int width,
int height)
Set a custom warp mesh
|
clone, getName, properties, propertiesassetManager, getAssetManager, getInputRefs, getInputs, getOutputRefs, getOutputs, getParentPipeline, getProperties, getRequiredOpenVINOVersion, id, inputMapRefs, inputRefs, outputMapRefs, outputRefs, propertiesHolder, setInputMapRefs, setInputRefs, setOutputMapRefs, setOutputRefsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic Warp(Pointer p)
Pointer(Pointer).public Warp(@SharedPtr PipelineImpl par, @Cast(value="int64_t") long nodeId)
public Warp(@SharedPtr PipelineImpl par, @Cast(value="int64_t") long nodeId, @UniquePtr WarpProperties props)
@MemberGetter @Cast(value="const char*") public static BytePointer NAME()
@MemberGetter @ByRef public Node.Input inputImage()
@MemberGetter @ByRef public Node.Output out()
public void setOutputSize(@ByVal @Cast(value="std::tuple<int,int>*") Pointer size)
size - width and height in pixelspublic void setOutputSize(int width,
int height)
public void setWarpMesh(@Const @ByRef Point2fVector meshData, int width, int height)
meshData - 2D plane of mesh points, starting from top left to bottom rightwidth - Width of meshheight - Height of meshpublic void setWarpMesh(@Const @ByRef FloatFloatPairVector meshData, int width, int height)
public void setNumFramesPool(int numFramesPool)
numFramesPool - How many frames should the pool havepublic void setMaxOutputFrameSize(int maxFrameSize)
maxFrameSize - Maximum frame size in bytespublic void setHwIds(@ByVal IntVector ids)
ids - Which warp engines to use (0, 1, 2)public void setInterpolation(@ByVal WarpProperties.Interpolation interpolation)
interpolation - type of interpolation@ByVal public WarpProperties.Interpolation getInterpolation()
Copyright © 2023. All rights reserved.