@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class ImageManipConfig extends Buffer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ImageManipConfig()
Construct ImageManipConfig message
|
ImageManipConfig(long size)
Native array allocator.
|
ImageManipConfig(Pointer p)
Pointer cast constructor.
|
ImageManipConfig(RawImageManipConfig ptr) |
| Modifier and Type | Method and Description |
|---|---|
float |
getCropXMax() |
float |
getCropXMin() |
float |
getCropYMax() |
float |
getCropYMin() |
ImageManipConfig |
getPointer(long i) |
int |
getResizeHeight() |
int |
getResizeWidth() |
boolean |
isResizeThumbnail() |
ImageManipConfig |
position(long position) |
void |
setCenterCrop(float ratio) |
void |
setCenterCrop(float ratio,
float whRatio)
Specifies a centered crop.
|
void |
setCropRect(float xmin,
float ymin,
float xmax,
float ymax)
Specifies crop with rectangle with normalized values (0..1)
|
void |
setCropRotatedRect(RotatedRect rr) |
void |
setCropRotatedRect(RotatedRect rr,
boolean normalizedCoords)
Specifies crop with rotated rectangle.
|
void |
setFrameType(int name) |
void |
setFrameType(RawImgFrame.Type name)
Specify output frame type.
|
void |
setHorizontalFlip(boolean flip)
Specify horizontal flip
|
void |
setKeepAspectRatio(boolean keep)
Specifies to whether to keep aspect ratio or not
|
void |
setResize(int w,
int h)
Specifies output image size.
|
void |
setResizeThumbnail(int w,
int h) |
void |
setResizeThumbnail(int w,
int h,
int bgRed,
int bgGreen,
int bgBlue)
Specifies output image size.
|
void |
setReusePreviousImage(boolean reuse)
Instruct ImageManip to not remove current image from its queue and use the same for next message.
|
void |
setRotationDegrees(float deg)
Specifies clockwise rotation in degrees
|
void |
setRotationRadians(float rad)
Specifies clockwise rotation in radians
|
void |
setSkipCurrentImage(boolean skip)
Instructs ImageManip to skip current image and wait for next in queue.
|
void |
setWarpBorderFillColor(int red,
int green,
int blue)
Specifies fill color for border pixels.
|
void |
setWarpBorderReplicatePixels()
Specifies that warp replicates border pixels
|
void |
setWarpTransformFourPoints(Point2f pt,
boolean normalizedCoords)
Specifies warp by suppling 4 points in either absolute or normalized coordinates
|
void |
setWarpTransformMatrix3x3(float[] mat) |
void |
setWarpTransformMatrix3x3(FloatBuffer mat) |
void |
setWarpTransformMatrix3x3(FloatPointer mat)
Specifies warp with a 3x3 matrix
|
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 ImageManipConfig(Pointer p)
Pointer(Pointer).public ImageManipConfig(long size)
Pointer.position(long).public ImageManipConfig()
public ImageManipConfig(@SharedPtr RawImageManipConfig ptr)
public ImageManipConfig position(long position)
public ImageManipConfig getPointer(long i)
getPointer in class Bufferpublic void setCropRect(float xmin,
float ymin,
float xmax,
float ymax)
xmin - Top left X coordinate of rectangleymin - Top left Y coordinate of rectanglexmax - Bottom right X coordinate of rectangleymax - Bottom right Y coordinate of rectanglepublic void setCropRotatedRect(@ByVal RotatedRect rr, @Cast(value="bool") boolean normalizedCoords)
rr - Rotated rectangle which specifies cropnormalizedCoords - If true coordinates are in normalized range (0..1) otherwise absolutepublic void setCropRotatedRect(@ByVal RotatedRect rr)
public void setCenterCrop(float ratio,
float whRatio)
ratio - Ratio between input image and crop region (0..1)whRatio - Crop region aspect ratio - 1 equals to square, 1.7 equals to 16:9, ...public void setCenterCrop(float ratio)
public void setWarpTransformFourPoints(@StdVector Point2f pt, @Cast(value="bool") boolean normalizedCoords)
pt - 4 points specifying warpnormalizedCoords - If true pt is interpreted as normalized, absolute otherwisepublic void setWarpTransformMatrix3x3(@StdVector FloatPointer mat)
mat - 3x3 matrixpublic void setWarpTransformMatrix3x3(@StdVector FloatBuffer mat)
public void setWarpTransformMatrix3x3(@StdVector float[] mat)
public void setWarpBorderReplicatePixels()
public void setWarpBorderFillColor(int red,
int green,
int blue)
red - Red componentgreen - Green componentblue - Blue componentpublic void setRotationDegrees(float deg)
deg - Rotation in degreespublic void setRotationRadians(float rad)
rad - Rotation in radianspublic void setResize(int w,
int h)
w - Width in pixelsh - Height in pixelspublic void setResizeThumbnail(int w,
int h,
int bgRed,
int bgGreen,
int bgBlue)
w - Width in pixelsh - Height in pixelsbgRed - Red componentbgGreen - Green componentbgBlue - Blue componentpublic void setResizeThumbnail(int w,
int h)
public void setFrameType(RawImgFrame.Type name)
name - Frame typepublic void setHorizontalFlip(@Cast(value="bool") boolean flip)
flip - True to enable flip, false otherwisepublic void setReusePreviousImage(@Cast(value="bool") boolean reuse)
reuse - True to enable reuse, false otherwisepublic void setSkipCurrentImage(@Cast(value="bool") boolean skip)
skip - True to skip current image, false otherwisepublic void setKeepAspectRatio(@Cast(value="bool") boolean keep)
public float getCropXMin()
public float getCropYMin()
public float getCropXMax()
public float getCropYMax()
public int getResizeWidth()
public int getResizeHeight()
Copyright © 2021. All rights reserved.