Package org.bytedeco.cuda.nppig
Class NppiWarpPerspectiveBatchCXR
- java.lang.Object
-
- org.bytedeco.javacpp.Pointer
-
- org.bytedeco.cuda.nppig.NppiWarpPerspectiveBatchCXR
-
- All Implemented Interfaces:
AutoCloseable
@Properties(inherit=nppig.class) public class NppiWarpPerspectiveBatchCXR extends Pointer
\defgroup perspective_transform_batch Perspective Transform Batch Details of the warp perspective operation are described above in the WarpPerspective section. WarpPerspectiveBatch generally takes the same parameter list as WarpPerspective except that there is a list of N instances of those parameters (N > 1) and that list is passed in device memory. A convenient data structure is provided that allows for easy initialization of the parameter lists. The aTransformedCoeffs array is for internal use only and should not be directly initialized by the application. The only restriction on these functions is that there is one single source ROI rectangle and one single destination ROI rectangle which are applied respectively to each image in the batch. The primary purpose of this function is to provide improved performance for batches of smaller images as long as GPU resources are available. Therefore it is recommended that the function not be used for very large images as there may not be resources available for processing several large images simultaneously. A single set of oSrcRectROI and oDstRectROI values are applied to each source image and destination image in the batch. Source and destination image sizes may vary but oSmallestSrcSize must be set to the smallest source and image size in the batch. The parameters in the NppiWarpPerspectiveBatchCXR structure represent the corresponding per-image nppiWarpPerspective parameters for each image in the batch. The NppiWarpPerspectiveBatchCXR array must be in device memory. The nppiWarpPerspectiveBatchInit function MUST be called AFTER the application has initialized the array of NppiWarpPerspectiveBatchCXR structures and BEFORE calling any of the nppiWarpPerspectiveBatch functions to so that the aTransformedCoeffs array can be internally pre-initialized for each image in the batch. The batch size passed to nppiWarpPerspectiveBatchInit must match the batch size passed to the corresponding warp perspective batch function. WarpPerspectiveBatch supports the following interpolation modes:
\section Error Codes The warp perspective primitives return the following error codes: - ::NPP_RECTANGLE_ERROR if either destination ROI width or height is less than 1 pixel. - ::NPP_INTERPOLATION_ERROR if eInterpolation has an illegal value. - ::NPP_SIZE_ERROR if source size width or height is less than 2 pixels.NPPI_INTER_NN NPPI_INTER_LINEAR NPPI_INTER_CUBICCommon parameters for nppiWarpPerspectiveBatch functions include:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
-
Constructor Summary
Constructors Constructor Description NppiWarpPerspectiveBatchCXR()Default native constructor.NppiWarpPerspectiveBatchCXR(long size)Native array allocator.NppiWarpPerspectiveBatchCXR(Pointer p)Pointer cast constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublePointeraTransformedCoeffs()doubleaTransformedCoeffs(int i, int j)NppiWarpPerspectiveBatchCXRaTransformedCoeffs(int i, int j, double setter)NppiWarpPerspectiveBatchCXRgetPointer(long i)intnDstStep()NppiWarpPerspectiveBatchCXRnDstStep(int setter)intnSrcStep()NppiWarpPerspectiveBatchCXRnSrcStep(int setter)DoublePointerpCoeffs()NppiWarpPerspectiveBatchCXRpCoeffs(DoublePointer setter)PointerpDst()NppiWarpPerspectiveBatchCXRpDst(Pointer setter)NppiWarpPerspectiveBatchCXRposition(long position)PointerpSrc()NppiWarpPerspectiveBatchCXRpSrc(Pointer setter)-
Methods inherited from class org.bytedeco.javacpp.Pointer
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, zero
-
-
-
-
Constructor Detail
-
NppiWarpPerspectiveBatchCXR
public NppiWarpPerspectiveBatchCXR()
Default native constructor.
-
NppiWarpPerspectiveBatchCXR
public NppiWarpPerspectiveBatchCXR(long size)
Native array allocator. Access withPointer.position(long).
-
NppiWarpPerspectiveBatchCXR
public NppiWarpPerspectiveBatchCXR(Pointer p)
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Detail
-
position
public NppiWarpPerspectiveBatchCXR position(long position)
-
getPointer
public NppiWarpPerspectiveBatchCXR getPointer(long i)
- Overrides:
getPointerin classPointer
-
pSrc
public NppiWarpPerspectiveBatchCXR pSrc(Pointer setter)
-
nSrcStep
public int nSrcStep()
-
nSrcStep
public NppiWarpPerspectiveBatchCXR nSrcStep(int setter)
-
pDst
public Pointer pDst()
-
pDst
public NppiWarpPerspectiveBatchCXR pDst(Pointer setter)
-
nDstStep
public int nDstStep()
-
nDstStep
public NppiWarpPerspectiveBatchCXR nDstStep(int setter)
-
pCoeffs
@Cast("Npp64f*") public DoublePointer pCoeffs()
-
pCoeffs
public NppiWarpPerspectiveBatchCXR pCoeffs(DoublePointer setter)
-
aTransformedCoeffs
@Cast("Npp64f") public double aTransformedCoeffs(int i, int j)
-
aTransformedCoeffs
public NppiWarpPerspectiveBatchCXR aTransformedCoeffs(int i, int j, double setter)
-
aTransformedCoeffs
@MemberGetter @Cast("Npp64f(* /*[3]*/ )[3]") public DoublePointer aTransformedCoeffs()
-
-