Package org.bytedeco.cuda.nppicc
Class NppiColorTwistBatchCXR
- java.lang.Object
-
- org.bytedeco.javacpp.Pointer
-
- org.bytedeco.cuda.nppicc.NppiColorTwistBatchCXR
-
- All Implemented Interfaces:
AutoCloseable
@Properties(inherit=nppicc.class) public class NppiColorTwistBatchCXR extends Pointer
\name ColorTwistBatch Perform color twist pixel batch processing. Color twist consists of applying the following formula to each image pixel using coefficients from one or more user supplied color twist device memory matrix arrays as follows where dst[x] and src[x] represent destination pixel and source pixel channel or plane x. The full sized coefficient matrix should be sent for all pixel channel sizes, the function will process the appropriate coefficients and channels for the corresponding pixel size. ColorTwistBatch generally takes the same parameter list as ColorTwist except that there is a list of N instances of those parameters (N > 1) and that list is passed in device memory; The matrix pointers referenced for each image in the batch also need to point to device memory matrix values. A convenient data structure is provided that allows for easy initialization of the parameter lists. The only restriction on these functions is that there is one single ROI which is 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.
\{dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3]
-
-
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 NppiColorTwistBatchCXR()Default native constructor.NppiColorTwistBatchCXR(long size)Native array allocator.NppiColorTwistBatchCXR(Pointer p)Pointer cast constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NppiColorTwistBatchCXRgetPointer(long i)intnDstStep()NppiColorTwistBatchCXRnDstStep(int setter)intnSrcStep()NppiColorTwistBatchCXRnSrcStep(int setter)PointerpDst()NppiColorTwistBatchCXRpDst(Pointer setter)NppiColorTwistBatchCXRposition(long position)PointerpSrc()NppiColorTwistBatchCXRpSrc(Pointer setter)FloatPointerpTwist()NppiColorTwistBatchCXRpTwist(FloatPointer 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
-
NppiColorTwistBatchCXR
public NppiColorTwistBatchCXR()
Default native constructor.
-
NppiColorTwistBatchCXR
public NppiColorTwistBatchCXR(long size)
Native array allocator. Access withPointer.position(long).
-
NppiColorTwistBatchCXR
public NppiColorTwistBatchCXR(Pointer p)
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Detail
-
position
public NppiColorTwistBatchCXR position(long position)
-
getPointer
public NppiColorTwistBatchCXR getPointer(long i)
- Overrides:
getPointerin classPointer
-
pSrc
public NppiColorTwistBatchCXR pSrc(Pointer setter)
-
nSrcStep
public int nSrcStep()
-
nSrcStep
public NppiColorTwistBatchCXR nSrcStep(int setter)
-
pDst
public Pointer pDst()
-
pDst
public NppiColorTwistBatchCXR pDst(Pointer setter)
-
nDstStep
public int nDstStep()
-
nDstStep
public NppiColorTwistBatchCXR nDstStep(int setter)
-
pTwist
@Cast("Npp32f*") public FloatPointer pTwist()
-
pTwist
public NppiColorTwistBatchCXR pTwist(FloatPointer setter)
-
-