Class NPPImage_16uC3
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_16uC3 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_16uC3(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16uC3(CUdeviceptr devPtr, NppiSize size, int pitch)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
NppiSize | size | Image size |
System.Int32 | pitch | Pitch / Line step |
NPPImage_16uC3(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16uC3(CUdeviceptr devPtr, NppiSize size, int pitch, bool isOwner)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
NppiSize | size | Image size |
System.Int32 | pitch | Pitch / Line step |
System.Boolean | isOwner | If TRUE, devPtr is freed when disposing |
NPPImage_16uC3(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_16uC3(CUdeviceptr devPtr, int width, int height, int pitch)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
System.Int32 | width | Image width in pixels |
System.Int32 | height | Image height in pixels |
System.Int32 | pitch | Pitch / Line step |
NPPImage_16uC3(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16uC3(CUdeviceptr devPtr, int width, int height, int pitch, bool isOwner)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devPtr | Already allocated device ptr. |
System.Int32 | width | Image width in pixels |
System.Int32 | height | Image height in pixels |
System.Int32 | pitch | Pitch / Line step |
System.Boolean | isOwner | If TRUE, devPtr is freed when disposing |
NPPImage_16uC3(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_16uC3(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_16uC3(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_16uC3(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_16uC3(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_16uC3(int nWidthPixels, int nHeightPixels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nWidthPixels | Image width in pixels |
System.Int32 | nHeightPixels | Image height in pixels |
Methods
| Improve this Doc View SourceAdd(NPPImage_16uC3, NPPImage_16uC3, Int32)
Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_16uC3 src2, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(NPPImage_16uC3, Int32)
In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_16uC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Add(UInt16[], NPPImage_16uC3, Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(ushort[] nConstant, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Values to add |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(UInt16[], Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Add(ushort[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Values to add |
System.Int32 | nScaleFactor | scaling factor |
AlphaComp(UInt16, NPPImage_16uC3, UInt16, NPPImage_16uC3, NppiAlphaOp)
Image composition using constant alpha.
Declaration
public void AlphaComp(ushort alpha1, NPPImage_16uC3 src2, ushort alpha2, NPPImage_16uC3 dest, NppiAlphaOp nppAlphaOp)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | alpha1 | constant alpha for this image |
NPPImage_16uC3 | src2 | 2nd source image |
System.UInt16 | alpha2 | constant alpha for src2 |
NPPImage_16uC3 | dest | Destination image |
NppiAlphaOp | nppAlphaOp | alpha compositing operation |
AlphaPremul(UInt16)
In place alpha premultiplication using constant alpha.
Declaration
public void AlphaPremul(ushort alpha)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | alpha | alpha |
AlphaPremul(UInt16, NPPImage_16uC3)
Image premultiplication using constant alpha.
Declaration
public void AlphaPremul(ushort alpha, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | alpha | alpha |
NPPImage_16uC3 | dest | Destination image |
And(NPPImage_16uC3)
In place image logical and.
Declaration
public void And(NPPImage_16uC3 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
And(NPPImage_16uC3, NPPImage_16uC3)
Image logical and.
Declaration
public void And(NPPImage_16uC3 src2, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
And(UInt16[])
In place image logical and with constant.
Declaration
public void And(ushort[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value (Array length = 3) |
And(UInt16[], NPPImage_16uC3)
Image logical and with constant.
Declaration
public void And(ushort[] nConstant, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value (Array length = 3) |
NPPImage_16uC3 | dest | Destination image |
AverageError(NPPImage_16uC3, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the AverageError operation. |
AverageErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for AverageError.
Declaration
public int AverageErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
AverageRelativeError(NPPImage_16uC3, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the AverageRelativeError operation. |
AverageRelativeErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for AverageRelativeError.
Declaration
public int AverageRelativeErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
ColorToGray(NPPImage_16uC1, Single[])
Color to Gray conversion
Declaration
public void ColorToGray(NPPImage_16uC1 dest, float[] aCoeffs)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | dest | Destination image |
System.Single[] | aCoeffs | fixed size array of constant floating point conversion coefficient values, one per color channel. |
ColorTwist(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Single[,])
3 channel planar 8-bit unsigned color twist. An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public static void ColorTwist(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Single[,])
3 channel planar 8-bit unsigned inplace color twist. An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public static void ColorTwist(NPPImage_16uC1 srcDest0, NPPImage_16uC1 srcDest1, NPPImage_16uC1 srcDest2, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | srcDest0 | Source / Destination image (Channel 0) |
NPPImage_16uC1 | srcDest1 | Source / Destinationimage (Channel 1) |
NPPImage_16uC1 | srcDest2 | Source / Destinationimage (Channel 2) |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(NPPImage_16uC3, Single[,])
An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public void ColorTwist(NPPImage_16uC3 dest, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(Single[,])
in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public void ColorTwist(float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. [3,4] |
Compare(NPPImage_16uC3, NPPImage_8uC1, NppCmpOp)
Compare pSrc1's pixels with corresponding pixels in pSrc2.
Declaration
public void Compare(NPPImage_16uC3 src2, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_8uC1 | dest | Destination image |
NppCmpOp | eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
Compare(UInt16[], NPPImage_8uC1, NppCmpOp)
Compare pSrc's pixels with constant value.
Declaration
public void Compare(ushort[] nConstant, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | constant value |
NPPImage_8uC1 | dest | Destination image |
NppCmpOp | eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
Convert(NPPImage_32fC3)
16-bit unsigned to 32-bit floating point conversion.
Declaration
public void Convert(NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC3 | dst | Destination image |
Convert(NPPImage_32sC3)
16-bit unsigned to 32-bit signed conversion.
Declaration
public void Convert(NPPImage_32sC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32sC3 | dst | Destination image |
Convert(NPPImage_8uC3)
16-bit unsigned to 8-bit unsigned conversion.
Declaration
public void Convert(NPPImage_8uC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dst | Destination image |
Copy(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1)
Three-channel 8-bit unsigned packed to planar image copy.
Declaration
public void Copy(NPPImage_16uC1 dst0, NPPImage_16uC1 dst1, NPPImage_16uC1 dst2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | dst0 | Destination image channel 0 |
NPPImage_16uC1 | dst1 | Destination image channel 1 |
NPPImage_16uC1 | dst2 | Destination image channel 2 |
Copy(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC3)
Three-channel 8-bit unsigned planar to packed image copy.
Declaration
public static void Copy(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image channel 0 |
NPPImage_16uC1 | src1 | Source image channel 1 |
NPPImage_16uC1 | src2 | Source image channel 2 |
NPPImage_16uC3 | dest | Destination image |
Copy(NPPImage_16uC1, Int32)
Image copy.
Declaration
public void Copy(NPPImage_16uC1 dst, int channel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | dst | Destination image |
System.Int32 | channel | Channel number. This number is added to the dst pointer |
Copy(NPPImage_16uC3)
image copy.
Declaration
public void Copy(NPPImage_16uC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination image |
Copy(NPPImage_16uC3, NPPImage_8uC1)
Masked Operation 8-bit unsigned image copy.
Declaration
public void Copy(NPPImage_16uC3 dst, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination image |
NPPImage_8uC1 | mask | Mask image |
Copy(NPPImage_16uC3, Int32, Int32)
Image copy.
Declaration
public void Copy(NPPImage_16uC3 dst, int channelSrc, int channelDst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination image |
System.Int32 | channelSrc | Channel number. This number is added to the src pointer |
System.Int32 | channelDst | Channel number. This number is added to the dst pointer |
Copy(NPPImage_16uC3, Int32, Int32, UInt16[])
Copy image and pad borders with a constant, user-specifiable color.
Declaration
public void Copy(NPPImage_16uC3 dst, int nTopBorderHeight, int nLeftBorderWidth, ushort[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination image. The image ROI defines the destination region, i.e. the region that gets filled with data from the source image (inner part) and constant border color (outer part). |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height. |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width. |
System.UInt16[] | nValue | The pixel value to be set for border pixels. |
CopyReplicateBorder(NPPImage_16uC3, Int32, Int32)
image copy with nearest source image pixel color.
Declaration
public void CopyReplicateBorder(NPPImage_16uC3 dst, int nTopBorderHeight, int nLeftBorderWidth)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height. |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width. |
CopySubpix(NPPImage_16uC3, Single, Single)
linearly interpolated source image subpixel coordinate color copy.
Declaration
public void CopySubpix(NPPImage_16uC3 dst, float nDx, float nDy)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
System.Single | nDx | Fractional part of source image X coordinate. |
System.Single | nDy | Fractional part of source image Y coordinate. |
CopyWrapBorder(NPPImage_16uC3, Int32, Int32)
image copy with the borders wrapped by replication of source image pixel colors.
Declaration
public void CopyWrapBorder(NPPImage_16uC3 dst, int nTopBorderHeight, int nLeftBorderWidth)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height. |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width. |
CrossCorrFull_Norm(NPPImage_16uC3, NPPImage_32fC3)
image CrossCorrFull_Norm.
Declaration
public void CrossCorrFull_Norm(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
CrossCorrFull_NormLevel(NPPImage_16uC3, NPPImage_32fC3)
CrossCorrFull_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CrossCorrFull_NormLevel(NPPImage_16uC3, NPPImage_32fC3, CudaDeviceVariable<Byte>)
CrossCorrFull_NormLevel.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_16uC3 tpl, NPPImage_32fC3 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at FullNormLevelGetBufferHostSize() |
CrossCorrSame_Norm(NPPImage_16uC3, NPPImage_32fC3)
image CrossCorrSame_Norm.
Declaration
public void CrossCorrSame_Norm(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
CrossCorrSame_NormLevel(NPPImage_16uC3, NPPImage_32fC3)
CrossCorrSame_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CrossCorrSame_NormLevel(NPPImage_16uC3, NPPImage_32fC3, CudaDeviceVariable<Byte>)
CrossCorrSame_NormLevel.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_16uC3 tpl, NPPImage_32fC3 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SameNormLevelGetBufferHostSize() |
CrossCorrValid_Norm(NPPImage_16uC3, NPPImage_32fC3)
image CrossCorrValid_Norm.
Declaration
public void CrossCorrValid_Norm(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
CrossCorrValid_NormLevel(NPPImage_16uC3, NPPImage_32fC3)
CrossCorrValid_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CrossCorrValid_NormLevel(NPPImage_16uC3, NPPImage_32fC3, CudaDeviceVariable<Byte>)
CrossCorrValid_NormLevel.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_16uC3 tpl, NPPImage_32fC3 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at ValidNormLevelGetBufferHostSize() |
Dilate(NPPImage_16uC3, CudaDeviceVariable<Byte>, NppiSize, NppiPoint)
Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search.
Declaration
public void Dilate(NPPImage_16uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Byte> | Mask | Pointer to the start address of the mask array. |
NppiSize | aMaskSize | Width and Height mask array. |
NppiPoint | oAnchor | X and Y offsets of the mask origin frame of reference w.r.t the source pixel. |
Dilate3x3(NPPImage_16uC3)
3x3 dilation.
Declaration
public void Dilate3x3(NPPImage_16uC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
Dilate3x3Border(NPPImage_16uC3, NppiBorderType)
3x3 dilation with border control.
Declaration
public void Dilate3x3Border(NPPImage_16uC3 dest, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
DilateBorder(NPPImage_16uC3, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, NppiBorderType)
Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control.
Declaration
public void DilateBorder(NPPImage_16uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Byte> | Mask | Pointer to the start address of the mask array. |
NppiSize | aMaskSize | Width and Height mask array. |
NppiPoint | oAnchor | X and Y offsets of the mask origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Div(NPPImage_16uC3, NPPImage_16uC3, NppRoundMode, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16uC3 src2, NPPImage_16uC3 dest, NppRoundMode rndMode, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
NppRoundMode | rndMode | Result Rounding mode to be used |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16uC3, NPPImage_16uC3, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16uC3 src2, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16uC3, NppRoundMode, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16uC3 src2, NppRoundMode rndMode, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NppRoundMode | rndMode | Result Rounding mode to be used |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16uC3, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16uC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Div(UInt16[], NPPImage_16uC3, Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(ushort[] nConstant, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(UInt16[], Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Div(ushort[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
DotProdGetBufferHostSize()
Device scratch buffer size (in bytes) for nppiDotProd_16u64f_C3R.
Declaration
public int DotProdGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
DotProduct(NPPImage_16uC3, CudaDeviceVariable<Double>)
Three-channel 16-bit unsigned image DotProd. Buffer is internally allocated and freed.
Declaration
public void DotProduct(NPPImage_16uC3 src2, CudaDeviceVariable<double> pDp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (3 * sizeof(double)) |
DotProduct(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
Three-channel 16-bit unsigned image DotProd.
Declaration
public void DotProduct(NPPImage_16uC3 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at DotProdGetBufferHostSize() |
Erode(NPPImage_16uC3, CudaDeviceVariable<Byte>, NppiSize, NppiPoint)
Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search.
Declaration
public void Erode(NPPImage_16uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Byte> | Mask | Pointer to the start address of the mask array. |
NppiSize | aMaskSize | Width and Height mask array. |
NppiPoint | oAnchor | X and Y offsets of the mask origin frame of reference w.r.t the source pixel. |
Erode3x3(NPPImage_16uC3)
3x3 erosion.
Declaration
public void Erode3x3(NPPImage_16uC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
Erode3x3Border(NPPImage_16uC3, NppiBorderType)
3x3 erosion with border control.
Declaration
public void Erode3x3Border(NPPImage_16uC3 dest, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
ErodeBorder(NPPImage_16uC3, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, NppiBorderType)
Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control.
Declaration
public void ErodeBorder(NPPImage_16uC3 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Byte> | Mask | Pointer to the start address of the mask array. |
NppiSize | aMaskSize | Width and Height mask array. |
NppiPoint | oAnchor | X and Y offsets of the mask origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
EvenLevels(Int32, Int32, Int32)
Compute levels with even distribution.
Declaration
public int[] EvenLevels(int nLevels, int nLowerBound, int nUpperBound)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nLevels | The number of levels being computed. nLevels must be at least 2, otherwise an NPP_- HISTO_NUMBER_OF_LEVELS_ERROR error is returned. |
System.Int32 | nLowerBound | Lower boundary value of the lowest level. |
System.Int32 | nUpperBound | Upper boundary value of the greatest level. |
Returns
Type | Description |
---|---|
System.Int32[] | An array of size nLevels which receives the levels being computed. |
Exp(NPPImage_16uC3, Int32)
Exponential, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Exp(NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Exp(Int32)
Inplace exponential, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Exp(int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nScaleFactor | scaling factor |
Filter(NPPImage_16uC3, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32)
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed.
Before writing the result pixel the sum is scaled back via division by nDivisor.
Declaration
public void Filter(NPPImage_16uC3 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
NppiSize | aKernelSize | Width and Height of the rectangular kernel. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
System.Int32 | nDivisor | The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale. |
Filter(NPPImage_16uC3, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_16uC3 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Single> | pKernel | Pointer to the start address of the kernel coefficient array. Coefficients are expected to be stored in reverse order. |
NppiSize | oKernelSize | Width and Height of the rectangular kernel. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference |
FilterBilateralGaussBorder(NPPImage_16uC3, Int32, Int32, Single, Single, NppiBorderType)
Three channel 16-bit unsigned bilateral Gauss filter with border control.
Declaration
public void FilterBilateralGaussBorder(NPPImage_16uC3 dest, int nRadius, int nStepBetweenSrcPixels, float nValSquareSigma, float nPosSquareSigma, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nRadius | The radius of the round filter kernel to be used. A radius of 1 indicates a filter kernel size of 3 by 3, 2 indicates 5 by 5, etc. Radius values from 1 to 32 are supported. |
System.Int32 | nStepBetweenSrcPixels | The step size between adjacent source image pixels processed by the filter kernel, most commonly 1. |
System.Single | nValSquareSigma | The square of the sigma for the relative intensity distance between a source image pixel in the filter kernel and the source image pixel at the center of the filter kernel. |
System.Single | nPosSquareSigma | The square of the sigma for the relative geometric distance between a source image pixel in the filter kernel and the source image pixel at the center of the filter kernel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterBorder(NPPImage_16uC3, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32, NppiBorderType)
Three channel 16-bit unsigned convolution filter with border control.
General purpose 2D convolution filter with border control.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterBorder(NPPImage_16uC3 dest, CudaDeviceVariable<int> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | pKernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order |
NppiSize | nKernelSize | Width and Height of the rectangular kernel. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference relative to the source pixel. |
System.Int32 | nDivisor | The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterBorder(NPPImage_16uC3, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Three channel 16-bit unsigned convolution filter with border control.
General purpose 2D convolution filter using floating-point weights with border control.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterBorder(NPPImage_16uC3 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Single> | pKernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order |
NppiSize | nKernelSize | Width and Height of the rectangular kernel. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference relative to the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterBox(NPPImage_16uC3, NppiSize, NppiPoint)
Computes the average pixel values of the pixels under a rectangular mask.
Declaration
public void FilterBox(NPPImage_16uC3 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
FilterBoxBorder(NPPImage_16uC3, NppiSize, NppiPoint, NppiBorderType)
Computes the average pixel values of the pixels under a rectangular mask.
Declaration
public void FilterBoxBorder(NPPImage_16uC3 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterColumn(NPPImage_16uC3, CudaDeviceVariable<Int32>, Int32, Int32, Int32)
Apply convolution filter with user specified 1D column of weights. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring column pixel values in the source image defined by nKernelDim and nAnchorY, divided by nDivisor.
Declaration
public void FilterColumn(NPPImage_16uC3 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
System.Int32 | nKernelSize | Length of the linear kernel array. |
System.Int32 | nAnchor | Y offset of the kernel origin frame of reference w.r.t the source pixel. |
System.Int32 | nDivisor | The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale. |
FilterColumn(NPPImage_16uC3, CudaDeviceVariable<Single>, Int32)
1D column convolution.
Declaration
public void FilterColumn(NPPImage_16uC3 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Single> | pKernel | Pointer to the start address of the kernel coefficient array. pKernel.Sizes gives kernel size Coefficients are expected to be stored in reverse order. |
System.Int32 | nAnchor | Y offset of the kernel origin frame of reference relative to the source pixel. |
FilterColumnBorder(NPPImage_16uC3, CudaDeviceVariable<Int32>, Int32, Int32, NppiBorderType)
General purpose 1D convolution column filter with border control.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterColumnBorder(NPPImage_16uC3 dest, CudaDeviceVariable<int> Kernel, int nAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
System.Int32 | nDivisor | The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterColumnBorder(NPPImage_16uC3, CudaDeviceVariable<Single>, Int32, NppiBorderType)
General purpose 1D convolution column filter with border control.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterColumnBorder(NPPImage_16uC3 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Single> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterGauss(NPPImage_16uC3, CudaDeviceVariable<Single>)
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
Declaration
public void FilterGauss(NPPImage_16uC3 dst, CudaDeviceVariable<float> Kernel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Single> | Kernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
FilterGauss(NPPImage_16uC3, MaskSize)
Gauss filter.
Declaration
public void FilterGauss(NPPImage_16uC3 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterGaussBorder(NPPImage_16uC3, CudaDeviceVariable<Single>, NppiBorderType)
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
Declaration
public void FilterGaussBorder(NPPImage_16uC3 dst, CudaDeviceVariable<float> Kernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Single> | Kernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterGaussBorder(NPPImage_16uC3, MaskSize, NppiBorderType)
Filters the image using a Gaussian filter kernel with border control:
1/16 2/16 1/16
2/16 4/16 2/16
1/16 2/16 1/16
or
2/571 7/571 12/571 7/571 2/571
7/571 31/571 52/571 31/571 7/571
12/571 52/571 127/571 52/571 12/571
7/571 31/571 52/571 31/571 7/571
2/571 7/571 12/571 7/571 2/571
Declaration
public void FilterGaussBorder(NPPImage_16uC3 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterGaussPyramidLayerDownBorder(NPPImage_16uC3, Single, Int32, CudaDeviceVariable<Single>, NppiBorderType)
Three channel 16-bit unsigned Gauss filter with downsampling and border control.
Declaration
public void FilterGaussPyramidLayerDownBorder(NPPImage_16uC3 dest, float nRate, int nFilterTaps, CudaDeviceVariable<float> pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CudaDeviceVariable<System.Single> | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterGaussPyramidLayerUpBorder(NPPImage_16uC3, Single, Int32, CudaDeviceVariable<Single>, NppiBorderType)
Three channel 16-bit unsigned Gauss filter with downsampling and border control.
Declaration
public void FilterGaussPyramidLayerUpBorder(NPPImage_16uC3 dest, float nRate, int nFilterTaps, CudaDeviceVariable<float> pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CudaDeviceVariable<System.Single> | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterHighPass(NPPImage_16uC3, MaskSize)
High pass filter.
Declaration
public void FilterHighPass(NPPImage_16uC3 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterHighPassBorder(NPPImage_16uC3, MaskSize, NppiBorderType)
High pass filter.
Declaration
public void FilterHighPassBorder(NPPImage_16uC3 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterLowPass(NPPImage_16uC3, MaskSize)
Low pass filter.
Declaration
public void FilterLowPass(NPPImage_16uC3 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterLowPassBorder(NPPImage_16uC3, MaskSize, NppiBorderType)
Low pass filter.
Declaration
public void FilterLowPassBorder(NPPImage_16uC3 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterMax(NPPImage_16uC3, NppiSize, NppiPoint)
Result pixel value is the maximum of pixel values under the rectangular mask region.
Declaration
public void FilterMax(NPPImage_16uC3 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
FilterMaxBorder(NPPImage_16uC3, NppiSize, NppiPoint, NppiBorderType)
Result pixel value is the maximum of pixel values under the rectangular mask region.
Declaration
public void FilterMaxBorder(NPPImage_16uC3 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterMedian(NPPImage_16uC3, NppiSize, NppiPoint)
Result pixel value is the median of pixel values under the rectangular mask region.
Declaration
public void FilterMedian(NPPImage_16uC3 dst, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Median operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference relative to the source pixel. |
FilterMedian(NPPImage_16uC3, NppiSize, NppiPoint, CudaDeviceVariable<Byte>)
Result pixel value is the median of pixel values under the rectangular mask region.
Declaration
public void FilterMedian(NPPImage_16uC3 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Median operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference relative to the source pixel. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the Median operation. |
FilterMedianGetBufferHostSize(NppiSize)
Device scratch buffer size (in bytes) for FilterMedian.
Declaration
public int FilterMedianGetBufferHostSize(NppiSize oMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | oMaskSize |
Returns
Type | Description |
---|---|
System.Int32 |
FilterMin(NPPImage_16uC3, NppiSize, NppiPoint)
Result pixel value is the minimum of pixel values under the rectangular mask region.
Declaration
public void FilterMin(NPPImage_16uC3 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
FilterMinBorder(NPPImage_16uC3, NppiSize, NppiPoint, NppiBorderType)
Result pixel value is the minimum of pixel values under the rectangular mask region.
Declaration
public void FilterMinBorder(NPPImage_16uC3 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local Avg operation. |
NppiPoint | oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRow(NPPImage_16uC3, CudaDeviceVariable<Int32>, Int32, Int32, Int32)
Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.
Declaration
public void FilterRow(NPPImage_16uC3 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
System.Int32 | nKernelSize | Length of the linear kernel array. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
System.Int32 | nDivisor | The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale. |
FilterRow(NPPImage_16uC3, CudaDeviceVariable<Single>, Int32)
1D row convolution.
Declaration
public void FilterRow(NPPImage_16uC3 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Single> | pKernel | Pointer to the start address of the kernel coefficient array. pKernel.Sizes gives kernel size Coefficients are expected to be stored in reverse order. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference relative to the source pixel. |
FilterRowBorder(NPPImage_16uC3, CudaDeviceVariable<Int32>, Int32, Int32, Int32, NppiBorderType)
Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel with border control. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.
Declaration
public void FilterRowBorder(NPPImage_16uC3 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
System.Int32 | nKernelSize | Length of the linear kernel array. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
System.Int32 | nDivisor | The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRowBorder(NPPImage_16uC3, CudaDeviceVariable<Single>, Int32, NppiBorderType)
General purpose 1D convolution row filter with border control.
Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterRowBorder(NPPImage_16uC3 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Single> | Kernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterSharpen(NPPImage_16uC3)
Sharpen filter.
Declaration
public void FilterSharpen(NPPImage_16uC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
FilterSharpenBorder(NPPImage_16uC3, NppiBorderType)
Sharpen filter.
Declaration
public void FilterSharpenBorder(NPPImage_16uC3 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterUnsharpBorder(NPPImage_16uC3, Single, Single, Single, Single, NppiBorderType, CudaDeviceVariable<Byte>)
Filters the image using a unsharp-mask sharpening filter kernel with border control.
The algorithm involves the following steps:
Smooth the original image with a Gaussian filter, with the width controlled by the nRadius.
Subtract the smoothed image from the original to create a high-pass filtered image.
Apply any clipping needed on the high-pass image, as controlled by the nThreshold.
Add a certain percentage of the high-pass filtered image to the original image, with the percentage controlled by the nWeight. In pseudocode this algorithm can be written as:
HighPass = Image - Gaussian(Image)
Result = Image + nWeight * HighPass * ( |HighPass| >= nThreshold )
where nWeight is the amount, nThreshold is the threshold, and >= indicates a Boolean operation, 1 if true, or 0 otherwise.
If any portion of the mask overlaps the source image boundary, the requested border type operation is applied to all mask pixels which fall outside of the source image.
Declaration
public void FilterUnsharpBorder(NPPImage_16uC3 dst, float nRadius, float nSigma, float nWeight, float nThreshold, NppiBorderType eBorderType, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
System.Single | nRadius | The radius of the Gaussian filter, in pixles, not counting the center pixel. |
System.Single | nSigma | The standard deviation of the Gaussian filter, in pixel. |
System.Single | nWeight | The percentage of the difference between the original and the high pass image that is added back into the original. |
System.Single | nThreshold | The threshold needed to apply the difference amount. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated device scratch buffer required for the unsharp operation. |
FilterUnsharpGetBufferSize(Single, Single)
Scratch-buffer size for unsharp filter.
Declaration
public int FilterUnsharpGetBufferSize(float nRadius, float nSigma)
Parameters
Type | Name | Description |
---|---|---|
System.Single | nRadius | The radius of the Gaussian filter, in pixles, not counting the center pixel. |
System.Single | nSigma | The standard deviation of the Gaussian filter, in pixel. |
Returns
Type | Description |
---|---|
System.Int32 |
Finalize()
For dispose
Declaration
protected void Finalize()
FullNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel.
Declaration
public int FullNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
GetAffineBound(Double[,])
Calculates bounding box of the affine transform projection of the given source rectangular ROI
Declaration
public double[, ] GetAffineBound(double[, ] coeffs)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | coeffs | Affine transform coefficients [2,3] |
Returns
Type | Description |
---|---|
System.Double[,] | Destination quadrangle [2,2] |
GetAffineQuad(Double[,])
Calculates affine transform projection of given source rectangular ROI
Declaration
public double[, ] GetAffineQuad(double[, ] coeffs)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | coeffs | Affine transform coefficients [2,3] |
Returns
Type | Description |
---|---|
System.Double[,] | Destination quadrangle [4,2] |
GetAffineTransform(Double[,])
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
Declaration
public double[, ] GetAffineTransform(double[, ] quad)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | quad | Destination quadrangle [4,2] |
Returns
Type | Description |
---|---|
System.Double[,] | Affine transform coefficients [2,3] |
GetFilterGaussPyramidLayerDownBorderDstROI(Single)
Calculate destination image SizeROI width and height from source image ROI width and height and downsampling rate. It is highly recommended that this function be use to determine the destination image ROI for consistent results.
Declaration
public NppiSize GetFilterGaussPyramidLayerDownBorderDstROI(float nRate)
Parameters
Type | Name | Description |
---|---|---|
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
Returns
Type | Description |
---|---|
NppiSize | the destination image roi_specification. |
GetFilterGaussPyramidLayerUpBorderDstROI(Single, out NppiSize, out NppiSize)
Calculate destination image SizeROI width and height from source image ROI width and height and downsampling rate. It is highly recommended that this function be use to determine the destination image ROI for consistent results.
Declaration
public void GetFilterGaussPyramidLayerUpBorderDstROI(float nRate, out NppiSize pDstSizeROIMin, out NppiSize pDstSizeROIMax)
Parameters
Type | Name | Description |
---|---|---|
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
NppiSize | pDstSizeROIMin | Minimum recommended destination image roi_specification. |
NppiSize | pDstSizeROIMax | Maximum recommended destination image roi_specification. |
GetPerspectiveBound(Double[,])
Calculates bounding box of the affine transform projection of the given source rectangular ROI
Declaration
public double[, ] GetPerspectiveBound(double[, ] coeffs)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | coeffs | Perspective transform coefficients [3,3] |
Returns
Type | Description |
---|---|
System.Double[,] | Destination quadrangle [2,2] |
GetPerspectiveQuad(Double[,])
Calculates perspective transform projection of given source rectangular ROI
Declaration
public double[, ] GetPerspectiveQuad(double[, ] coeffs)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | coeffs | Perspective transform coefficients [3,3] |
Returns
Type | Description |
---|---|
System.Double[,] | Destination quadrangle [4,2] |
GetPerspectiveTransform(Double[,])
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection
Declaration
public double[, ] GetPerspectiveTransform(double[, ] quad)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | quad | Destination quadrangle [4,2] |
Returns
Type | Description |
---|---|
System.Double[,] | Perspective transform coefficients [3,3] |
GetRotateBound(Double, Double, Double)
Compute bounding-box of rotated image.
Declaration
public double[, ] GetRotateBound(double nAngle, double nShiftX, double nShiftY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | nAngle | The angle of rotation in degrees. |
System.Double | nShiftX | Shift along horizontal axis |
System.Double | nShiftY | Shift along vertical axis |
Returns
Type | Description |
---|---|
System.Double[,] |
GetRotateQuad(Double, Double, Double)
Compute shape of rotated image.
Declaration
public double[, ] GetRotateQuad(double nAngle, double nShiftX, double nShiftY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | nAngle | The angle of rotation in degrees. |
System.Double | nShiftX | Shift along horizontal axis |
System.Double | nShiftY | Shift along vertical axis |
Returns
Type | Description |
---|---|
System.Double[,] |
GradientColorToGray(NPPImage_16uC1, NppiNorm)
3 channel 16-bit unsigned packed RGB to 1 channel 16-bit unsigned packed Gray Gradient conversion.
Declaration
public void GradientColorToGray(NPPImage_16uC1 dest, NppiNorm eNorm)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | dest | Destination image |
NppiNorm | eNorm | Gradient distance method to use. |
GradientVectorPrewittBorder(NPPImage_32fC1, NPPImage_32fC1, NPPImage_32fC1, NPPImage_32fC1, MaskSize, NppiNorm, NppiBorderType)
3 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.
Declaration
public void GradientVectorPrewittBorder(NPPImage_32fC1 destX, NPPImage_32fC1 destY, NPPImage_32fC1 destMag, NPPImage_32fC1 destAngle, MaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC1 | destX | X vector destination_image_pointer |
NPPImage_32fC1 | destY | Y vector destination_image_pointer. |
NPPImage_32fC1 | destMag | magnitude destination_image_pointer. |
NPPImage_32fC1 | destAngle | angle destination_image_pointer. |
MaskSize | eMaskSize | fixed filter mask size to use. |
NppiNorm | eNorm | gradient distance method to use. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
GradientVectorScharrBorder(NPPImage_32fC1, NPPImage_32fC1, NPPImage_32fC1, NPPImage_32fC1, MaskSize, NppiNorm, NppiBorderType)
3 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.
Declaration
public void GradientVectorScharrBorder(NPPImage_32fC1 destX, NPPImage_32fC1 destY, NPPImage_32fC1 destMag, NPPImage_32fC1 destAngle, MaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC1 | destX | X vector destination_image_pointer |
NPPImage_32fC1 | destY | Y vector destination_image_pointer. |
NPPImage_32fC1 | destMag | magnitude destination_image_pointer. |
NPPImage_32fC1 | destAngle | angle destination_image_pointer. |
MaskSize | eMaskSize | fixed filter mask size to use. |
NppiNorm | eNorm | gradient distance method to use. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
GradientVectorSobelBorder(NPPImage_32fC1, NPPImage_32fC1, NPPImage_32fC1, NPPImage_32fC1, MaskSize, NppiNorm, NppiBorderType)
3 channel 16-bit unsigned packed RGB to optional 1 channel 32-bit floating point X (vertical), Y (horizontal), magnitude, and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.
Declaration
public void GradientVectorSobelBorder(NPPImage_32fC1 destX, NPPImage_32fC1 destY, NPPImage_32fC1 destMag, NPPImage_32fC1 destAngle, MaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC1 | destX | X vector destination_image_pointer |
NPPImage_32fC1 | destY | Y vector destination_image_pointer. |
NPPImage_32fC1 | destMag | magnitude destination_image_pointer. |
NPPImage_32fC1 | destAngle | angle destination_image_pointer. |
MaskSize | eMaskSize | fixed filter mask size to use. |
NppiNorm | eNorm | gradient distance method to use. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
HistogramEven(CudaDeviceVariable<Int32>[], Int32[], Int32[])
Histogram with evenly distributed bins. Buffer is internally allocated and freed.
Declaration
public void HistogramEven(CudaDeviceVariable<int>[] histogram, int[] nLowerLevel, int[] nUpperLevel)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | histogram | Allocated device memory of size nLevels (3 Variables) |
System.Int32[] | nLowerLevel | Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 3 |
System.Int32[] | nUpperLevel | Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 3 |
HistogramEven(CudaDeviceVariable<Int32>[], Int32[], Int32[], CudaDeviceVariable<Byte>)
Histogram with evenly distributed bins. No additional buffer is allocated.
Declaration
public void HistogramEven(CudaDeviceVariable<int>[] histogram, int[] nLowerLevel, int[] nUpperLevel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | histogram | Allocated device memory of size nLevels (3 Variables) |
System.Int32[] | nLowerLevel | Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 3 |
System.Int32[] | nUpperLevel | Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 3 |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at HistogramEvenGetBufferSize(Int32[]) |
HistogramEvenGetBufferSize(Int32[])
Scratch-buffer size for HistogramEven.
Declaration
public int HistogramEvenGetBufferSize(int[] nLevels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | nLevels |
Returns
Type | Description |
---|---|
System.Int32 |
HistogramOfGradientsBorder(NppiPoint[], CudaDeviceVariable<Byte>, NppiHOGConfig, CudaDeviceVariable<Byte>, NppiBorderType)
3 channel 16-bit unsigned color per source image descriptor window location with source image border control to per descriptor window destination floating point histogram of gradients. Requires first calling nppiHistogramOfGradientsBorderGetBufferSize function call to get required scratch (host) working buffer size and nppiHistogramOfGradientsBorderGetDescriptorsSize() function call to get total size for nLocations of output histogram block descriptor windows.
Declaration
public void HistogramOfGradientsBorder(NppiPoint[] hpLocations, CudaDeviceVariable<byte> pDstWindowDescriptorBuffer, NppiHOGConfig oHOGConfig, CudaDeviceVariable<byte> pScratchBuffer, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NppiPoint[] | hpLocations | Host pointer to array of NppiPoint source pixel starting locations of requested descriptor windows. Important: hpLocations is a |
CudaDeviceVariable<System.Byte> | pDstWindowDescriptorBuffer | Output device memory buffer pointer of size hpDescriptorsSize bytes to first of nLoc descriptor windows (see nppiHistogramOfGradientsBorderGetDescriptorsSize() above). |
NppiHOGConfig | oHOGConfig | Requested HOG configuration parameters structure. |
CudaDeviceVariable<System.Byte> | pScratchBuffer | Device memory buffer pointer of size hpBufferSize bytes to scratch memory buffer (see nppiHistogramOfGradientsBorderGetBufferSize() above). |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
HistogramRange(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
Histogram with bins determined by pLevels array. Buffer is internally allocated and freed.
Declaration
public void HistogramRange(CudaDeviceVariable<int>[] histogram, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | histogram | array that receives the computed histogram. The CudaDeviceVariable must be of size nLevels-1. Array size = 3 |
CudaDeviceVariable<System.Int32>[] | pLevels | Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 3 |
HistogramRange(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[], CudaDeviceVariable<Byte>)
Histogram with bins determined by pLevels array. No additional buffer is allocated.
Declaration
public void HistogramRange(CudaDeviceVariable<int>[] histogram, CudaDeviceVariable<int>[] pLevels, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | histogram | array that receives the computed histogram. The CudaDeviceVariable must be of size nLevels-1. Array size = 3 |
CudaDeviceVariable<System.Int32>[] | pLevels | Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 3 |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at HistogramRangeGetBufferSize(Int32[]) |
HistogramRangeGetBufferSize(Int32[])
Scratch-buffer size for HistogramRange.
Declaration
public int HistogramRangeGetBufferSize(int[] nLevels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | nLevels |
Returns
Type | Description |
---|---|
System.Int32 |
Ln(NPPImage_16uC3, Int32)
Natural logarithm, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Ln(NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Ln(Int32)
Natural logarithm, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Ln(int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nScaleFactor | scaling factor |
LShiftC(UInt32[])
image bit shift by constant (left), inplace.
Declaration
public void LShiftC(uint[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 3) |
LShiftC(UInt32[], NPPImage_16uC3)
image bit shift by constant (left).
Declaration
public void LShiftC(uint[] nConstant, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 3) |
NPPImage_16uC3 | dest | Destination image |
LUT(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
Inplace look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation.
Declaration
public void LUT(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
Lut(NPPImage_16uC3, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
Declaration
public void Lut(NPPImage_16uC3 dest, CudaDeviceVariable<int> values0, CudaDeviceVariable<int> levels0, CudaDeviceVariable<int> values1, CudaDeviceVariable<int> levels1, CudaDeviceVariable<int> values2, CudaDeviceVariable<int> levels2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
CudaDeviceVariable<System.Int32> | values0 | array of user defined OUTPUT values, channel 0 |
CudaDeviceVariable<System.Int32> | levels0 | array of user defined INPUT values, channel 0 |
CudaDeviceVariable<System.Int32> | values1 | array of user defined OUTPUT values, channel 1 |
CudaDeviceVariable<System.Int32> | levels1 | array of user defined INPUT values, channel 1 |
CudaDeviceVariable<System.Int32> | values2 | array of user defined OUTPUT values, channel 2 |
CudaDeviceVariable<System.Int32> | levels2 | array of user defined INPUT values, channel 2 |
LUT(NPPImage_16uC3, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation.
Declaration
public void LUT(NPPImage_16uC3 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTCubic(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
Inplace cubic interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.
Declaration
public void LUTCubic(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTCubic(NPPImage_16uC3, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
cubic interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.
Declaration
public void LUTCubic(NPPImage_16uC3 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTLinear(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
Inplace linear interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.
Declaration
public void LUTLinear(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTPalette(NPPImage_16uC3, CudaDeviceVariable<Byte>[], Int32)
range restricted palette look-up-table color conversion. The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
Declaration
public void LUTPalette(NPPImage_16uC3 dst, CudaDeviceVariable<byte>[] pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
CudaDeviceVariable<System.Byte>[] | pTable | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | nBitSize | Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion. |
LUTPaletteSwap(NPPImage_16uC4, Int32, CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>, Int32)
Three channel 8-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 8-bit unsigned destination output with alpha. The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. This function also reverses the source pixel channel order in the destination so the Alpha channel is the first channel.
Declaration
public void LUTPaletteSwap(NPPImage_16uC4 dst, int nAlphaValue, CudaDeviceVariable<byte> pTables0, CudaDeviceVariable<byte> pTables1, CudaDeviceVariable<byte> pTables2, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC4 | dst | Destination image |
System.Int32 | nAlphaValue | Signed alpha value that will be used to initialize the pixel alpha channel position in all modified destination pixels. |
CudaDeviceVariable<System.Byte> | pTables0 | Host pointer to an array of 3 device memory pointers, channel 0, pointing to user defined OUTPUT palette values. Alpha values < 0 or > 255 will cause destination pixel alpha channel values to be unmodified. |
CudaDeviceVariable<System.Byte> | pTables1 | Host pointer to an array of 3 device memory pointers, channel 1, pointing to user defined OUTPUT palette values. Alpha values < 0 or > 255 will cause destination pixel alpha channel values to be unmodified. |
CudaDeviceVariable<System.Byte> | pTables2 | Host pointer to an array of 3 device memory pointers, channel 2, pointing to user defined OUTPUT palette values. Alpha values < 0 or > 255 will cause destination pixel alpha channel values to be unmodified. |
System.Int32 | nBitSize | Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion. |
Max(CudaDeviceVariable<UInt16>)
Image pixel maximum. Buffer is internally allocated and freed.
Declaration
public void Max(CudaDeviceVariable<ushort> max)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 3 * sizeof(ushort) |
Max(CudaDeviceVariable<UInt16>, CudaDeviceVariable<Byte>)
Image pixel maximum. No additional buffer is allocated.
Declaration
public void Max(CudaDeviceVariable<ushort> max, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MaxGetBufferHostSize() |
MaxError(NPPImage_16uC3, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the MaxError operation. |
MaxErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for MaxError.
Declaration
public int MaxErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaxEvery(NPPImage_16uC3)
image MaxEvery
Declaration
public void MaxEvery(NPPImage_16uC3 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | Source-Image |
MaxGetBufferHostSize()
Scratch-buffer size for Max.
Declaration
public int MaxGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaximumRelativeError(NPPImage_16uC3, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_16uC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
CudaDeviceVariable<System.Byte> | buffer | Pointer to the user-allocated scratch buffer required for the MaximumRelativeError operation. |
MaximumRelativeErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for MaximumRelativeError.
Declaration
public int MaximumRelativeErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaxIndex(CudaDeviceVariable<UInt16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
Image pixel maximum. Buffer is internally allocated and freed.
Declaration
public void MaxIndex(CudaDeviceVariable<ushort> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 3 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 3 * sizeof(int) |
MaxIndex(CudaDeviceVariable<UInt16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated.
Declaration
public void MaxIndex(CudaDeviceVariable<ushort> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 3 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 3 * sizeof(int) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MaxIndexGetBufferHostSize() |
MaxIndexGetBufferHostSize()
Scratch-buffer size for MaxIndex.
Declaration
public int MaxIndexGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Mean(CudaDeviceVariable<Double>)
image mean with 64-bit double precision result. Buffer is internally allocated and freed.
Declaration
public void Mean(CudaDeviceVariable<double> mean)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 3 * sizeof(double) |
Mean(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image mean with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void Mean(CudaDeviceVariable<double> mean, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 3 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanGetBufferHostSize() |
Mean(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image mean with 64-bit double precision result. Buffer is internally allocated and freed.
Declaration
public void Mean(int coi, CudaDeviceVariable<double> mean, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 3 * sizeof(double) |
NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
Mean(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image mean with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void Mean(int coi, CudaDeviceVariable<double> mean, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 3 * sizeof(double) |
NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanMaskedGetBufferHostSize() |
MeanGetBufferHostSize()
Scratch-buffer size for Mean.
Declaration
public int MeanGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MeanMaskedGetBufferHostSize()
Scratch-buffer size for Mean with mask.
Declaration
public int MeanMaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MeanStdDev(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>)
image mean and standard deviation. Buffer is internally allocated and freed.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
MeanStdDev(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image sum with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanStdDevGetBufferHostSize() |
MeanStdDev(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, NPPImage_8uC1)
image mean and standard deviation. Buffer is internally allocated and freed.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
MeanStdDev(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image sum with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanStdDevMaskedGetBufferHostSize() |
MeanStdDevGetBufferHostSize()
Scratch-buffer size for MeanStdDev.
Declaration
public int MeanStdDevGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MeanStdDevMaskedGetBufferHostSize()
Scratch-buffer size for MeanStdDev (masked).
Declaration
public int MeanStdDevMaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Min(CudaDeviceVariable<UInt16>)
Image pixel minimum. Buffer is internally allocated and freed.
Declaration
public void Min(CudaDeviceVariable<ushort> min)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 3 * sizeof(ushort) |
Min(CudaDeviceVariable<UInt16>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated.
Declaration
public void Min(CudaDeviceVariable<ushort> min, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinGetBufferHostSize() |
MinEvery(NPPImage_16uC3)
image MinEvery
Declaration
public void MinEvery(NPPImage_16uC3 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | Source-Image |
MinGetBufferHostSize()
Scratch-buffer size for Min.
Declaration
public int MinGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinIndex(CudaDeviceVariable<UInt16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
Image pixel minimum. Buffer is internally allocated and freed.
Declaration
public void MinIndex(CudaDeviceVariable<ushort> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 3 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 3 * sizeof(int) |
MinIndex(CudaDeviceVariable<UInt16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated.
Declaration
public void MinIndex(CudaDeviceVariable<ushort> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 3 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 3 * sizeof(int) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinIndexGetBufferHostSize() |
MinIndexGetBufferHostSize()
Scratch-buffer size for MinIndex.
Declaration
public int MinIndexGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinMax(CudaDeviceVariable<UInt16>, CudaDeviceVariable<UInt16>)
Image pixel minimum and maximum. Buffer is internally allocated and freed.
Declaration
public void MinMax(CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 3 * sizeof(ushort) |
MinMax(CudaDeviceVariable<UInt16>, CudaDeviceVariable<UInt16>, CudaDeviceVariable<Byte>)
Image pixel minimum and maximum. No additional buffer is allocated.
Declaration
public void MinMax(CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 3 * sizeof(ushort) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxGetBufferHostSize() |
MinMaxGetBufferHostSize()
Scratch-buffer size for MinMax.
Declaration
public int MinMaxGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinMaxIndex(Int32, CudaDeviceVariable<UInt16>, CudaDeviceVariable<UInt16>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>)
Image pixel minimum and maximum values with their indices. Buffer is internally allocated and freed.
Declaration
public void MinMaxIndex(int coi, CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
MinMaxIndex(Int32, CudaDeviceVariable<UInt16>, CudaDeviceVariable<UInt16>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<Byte>)
Image pixel minimum and maximum values with their indices. No additional buffer is allocated.
Declaration
public void MinMaxIndex(int coi, CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxIndexGetBufferHostSize() |
MinMaxIndex(Int32, CudaDeviceVariable<UInt16>, CudaDeviceVariable<UInt16>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, NPPImage_8uC1)
Image pixel minimum and maximum values with their indices. Buffer is internally allocated and freed.
Declaration
public void MinMaxIndex(int coi, CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
MinMaxIndex(Int32, CudaDeviceVariable<UInt16>, CudaDeviceVariable<UInt16>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
Image pixel minimum and maximum values with their indices. No additional buffer is allocated.
Declaration
public void MinMaxIndex(int coi, CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.UInt16> | min | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<System.UInt16> | max | Allocated device memory with size of at least 1 * sizeof(ushort) |
CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxIndexMaskedGetBufferHostSize() |
MinMaxIndexGetBufferHostSize()
Scratch-buffer size for MinMaxIndex.
Declaration
public int MinMaxIndexGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinMaxIndexMaskedGetBufferHostSize()
Scratch-buffer size for MinMaxIndex with mask.
Declaration
public int MinMaxIndexMaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Mirror(NppiAxis)
Mirror image inplace.
Declaration
public void Mirror(NppiAxis flip)
Parameters
Type | Name | Description |
---|---|---|
NppiAxis | flip | Specifies the axis about which the image is to be mirrored. |
Mirror(NPPImage_16uC3, NppiAxis)
Mirror image.
Declaration
public void Mirror(NPPImage_16uC3 dest, NppiAxis flip)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
NppiAxis | flip | Specifies the axis about which the image is to be mirrored. |
Mul(NPPImage_16uC3)
In place image multiplication and scale by max bit width value
Declaration
public void Mul(NPPImage_16uC3 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
Mul(NPPImage_16uC3, NPPImage_16uC3)
Image multiplication and scale by max bit width value.
Declaration
public void Mul(NPPImage_16uC3 src2, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
Mul(NPPImage_16uC3, NPPImage_16uC3, Int32)
Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_16uC3 src2, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(NPPImage_16uC3, Int32)
In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_16uC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Mul(UInt16[])
Multiply constant to image and scale by max bit width value
Declaration
public void Mul(ushort[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value |
Mul(UInt16[], NPPImage_16uC3)
Multiply constant to image and scale by max bit width value
Declaration
public void Mul(ushort[] nConstant, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value |
NPPImage_16uC3 | dest | Destination image |
Mul(UInt16[], NPPImage_16uC3, Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(ushort[] nConstant, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(UInt16[], Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Mul(ushort[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
NormDiff_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>)
image NormDiff_Inf. Buffer is internally allocated and freed.
Declaration
public void NormDiff_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (3 * sizeof(double)) |
NormDiff_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_Inf.
Declaration
public void NormDiff_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffInfGetBufferHostSize() |
NormDiff_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormDiff_Inf. Buffer is internally allocated and freed.
Declaration
public void NormDiff_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormDiff_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_Inf.
Declaration
public void NormDiff_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffInfMaskedGetBufferHostSize() |
NormDiff_L1(NPPImage_16uC3, CudaDeviceVariable<Double>)
image NormDiff_L1. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (3 * sizeof(double)) |
NormDiff_L1(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_L1.
Declaration
public void NormDiff_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL1GetBufferHostSize() |
NormDiff_L1(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormDiff_L1. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormDiff_L1(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_L1.
Declaration
public void NormDiff_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL1MaskedGetBufferHostSize() |
NormDiff_L2(NPPImage_16uC3, CudaDeviceVariable<Double>)
image NormDiff_L2. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (3 * sizeof(double)) |
NormDiff_L2(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_L2.
Declaration
public void NormDiff_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL2GetBufferHostSize() |
NormDiff_L2(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormDiff_L2. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormDiff_L2(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_L2.
Declaration
public void NormDiff_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL2MaskedGetBufferHostSize() |
NormDiffInfGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_Inf.
Declaration
public int NormDiffInfGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffInfMaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_Inf.
Declaration
public int NormDiffInfMaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL1GetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L1.
Declaration
public int NormDiffL1GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL1MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L1.
Declaration
public int NormDiffL1MaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL2GetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L2.
Declaration
public int NormDiffL2GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL2MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L2.
Declaration
public int NormDiffL2MaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormInf(CudaDeviceVariable<Double>)
image infinity norm. Buffer is internally allocated and freed.
Declaration
public void NormInf(CudaDeviceVariable<double> norm)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
NormInf(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image infinity norm. No additional buffer is allocated.
Declaration
public void NormInf(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormInfGetBufferHostSize() |
NormInf(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image infinity norm. Buffer is internally allocated and freed.
Declaration
public void NormInf(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
NormInf(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image infinity norm. No additional buffer is allocated.
Declaration
public void NormInf(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormInfMaskedGetBufferHostSize() |
NormInfGetBufferHostSize()
Scratch-buffer size for Norm inf.
Declaration
public int NormInfGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormInfMaskedGetBufferHostSize()
Scratch-buffer size for Norm inf (masked).
Declaration
public int NormInfMaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormL1(CudaDeviceVariable<Double>)
image L1 norm. Buffer is internally allocated and freed.
Declaration
public void NormL1(CudaDeviceVariable<double> norm)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
NormL1(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image L1 norm. No additional buffer is allocated.
Declaration
public void NormL1(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL1GetBufferHostSize() |
NormL1(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image L1 norm. Buffer is internally allocated and freed.
Declaration
public void NormL1(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
NormL1(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image L1 norm. No additional buffer is allocated.
Declaration
public void NormL1(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL1MaskedGetBufferHostSize() |
NormL1GetBufferHostSize()
Scratch-buffer size for Norm L1.
Declaration
public int NormL1GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormL1MaskedGetBufferHostSize()
Scratch-buffer size for Norm L1 (masked).
Declaration
public int NormL1MaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormL2(CudaDeviceVariable<Double>)
image L2 norm. Buffer is internally allocated and freed.
Declaration
public void NormL2(CudaDeviceVariable<double> norm)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
NormL2(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image L2 norm. No additional buffer is allocated.
Declaration
public void NormL2(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL2GetBufferHostSize() |
NormL2(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image L2 norm. Buffer is internally allocated and freed.
Declaration
public void NormL2(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
NormL2(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image L2 norm. No additional buffer is allocated.
Declaration
public void NormL2(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0, 1 or 2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | mask |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL2MaskedGetBufferHostSize() |
NormL2GetBufferHostSize()
Scratch-buffer size for Norm L2.
Declaration
public int NormL2GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormL2MaskedGetBufferHostSize()
Scratch-buffer size for Norm L2 (masked).
Declaration
public int NormL2MaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRel_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>)
image NormRel_Inf. Buffer is internally allocated and freed.
Declaration
public void NormRel_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
NormRel_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_Inf.
Declaration
public void NormRel_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelInfGetBufferHostSize() |
NormRel_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormRel_Inf. Buffer is internally allocated and freed.
Declaration
public void NormRel_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormRel_Inf(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_Inf.
Declaration
public void NormRel_Inf(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelInfMaskedGetBufferHostSize() |
NormRel_L1(NPPImage_16uC3, CudaDeviceVariable<Double>)
image NormRel_L1. Buffer is internally allocated and freed.
Declaration
public void NormRel_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
NormRel_L1(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_L1.
Declaration
public void NormRel_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL1GetBufferHostSize() |
NormRel_L1(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormRel_L1. Buffer is internally allocated and freed.
Declaration
public void NormRel_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormRel_L1(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_L1.
Declaration
public void NormRel_L1(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL1MaskedGetBufferHostSize() |
NormRel_L2(NPPImage_16uC3, CudaDeviceVariable<Double>)
image NormRel_L2. Buffer is internally allocated and freed.
Declaration
public void NormRel_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
NormRel_L2(NPPImage_16uC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_L2.
Declaration
public void NormRel_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL2GetBufferHostSize() |
NormRel_L2(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormRel_L2. Buffer is internally allocated and freed.
Declaration
public void NormRel_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormRel_L2(NPPImage_16uC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_L2.
Declaration
public void NormRel_L2(NPPImage_16uC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL2MaskedGetBufferHostSize() |
NormRelInfGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_Inf.
Declaration
public int NormRelInfGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelInfMaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_Inf.
Declaration
public int NormRelInfMaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL1GetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L1.
Declaration
public int NormRelL1GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL1MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L1.
Declaration
public int NormRelL1MaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL2GetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L2.
Declaration
public int NormRelL2GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL2MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L2.
Declaration
public int NormRelL2MaskedGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Or(NPPImage_16uC3)
In place image logical Or.
Declaration
public void Or(NPPImage_16uC3 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
Or(NPPImage_16uC3, NPPImage_16uC3)
Image logical Or.
Declaration
public void Or(NPPImage_16uC3 src2, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
Or(UInt16[])
In place image logical Or with constant.
Declaration
public void Or(ushort[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value (Array length = 3) |
Or(UInt16[], NPPImage_16uC3)
Image logical Or with constant.
Declaration
public void Or(ushort[] nConstant, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value (Array length = 3) |
NPPImage_16uC3 | dest | Destination image |
QualityIndex(NPPImage_16uC3, CudaDeviceVariable<Single>)
image QualityIndex.
Declaration
public void QualityIndex(NPPImage_16uC3 src2, CudaDeviceVariable<float> dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Single> | dst | Pointer to the quality index. (3 * sizeof(float)) |
QualityIndex(NPPImage_16uC3, CudaDeviceVariable<Single>, CudaDeviceVariable<Byte>)
image QualityIndex.
Declaration
public void QualityIndex(NPPImage_16uC3 src2, CudaDeviceVariable<float> dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Single> | dst | Pointer to the quality index. (3 * sizeof(float)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at QualityIndexGetBufferHostSize() |
QualityIndexGetBufferHostSize()
Device scratch buffer size (in bytes) for QualityIndex.
Declaration
public int QualityIndexGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Remap(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)
planar image remap.
Declaration
public static void Remap(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
NPPImage_32fC1 | pXMap | Device memory pointer to 2D image array of X coordinate values to be used when sampling source image. |
NPPImage_32fC1 | pYMap | Device memory pointer to 2D image array of Y coordinate values to be used when sampling source image. |
InterpolationMode | eInterpolation | The type of eInterpolation to perform resampling. |
Remap(NPPImage_16uC3, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)
image remap.
Declaration
public void Remap(NPPImage_16uC3 dst, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
NPPImage_32fC1 | pXMap | Device memory pointer to 2D image array of X coordinate values to be used when sampling source image. |
NPPImage_32fC1 | pYMap | Device memory pointer to 2D image array of Y coordinate values to be used when sampling source image. |
InterpolationMode | eInterpolation | The type of eInterpolation to perform resampling. |
Resize(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, InterpolationMode)
resizes planar images.
Declaration
public static void Resize(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
InterpolationMode | eInterpolation | Interpolation mode |
Resize(NPPImage_16uC3, InterpolationMode)
Resizes images.
Declaration
public void Resize(NPPImage_16uC3 dest, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
InterpolationMode | eInterpolation | Interpolation mode |
ResizeSqrPixel(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double, Double, Double, Double, InterpolationMode)
planar image resize.
Declaration
public static void ResizeSqrPixel(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double | nXFactor | Factor by which x dimension is changed. |
System.Double | nYFactor | Factor by which y dimension is changed. |
System.Double | nXShift | Source pixel shift in x-direction. |
System.Double | nYShift | Source pixel shift in y-direction. |
InterpolationMode | eInterpolation | The type of eInterpolation to perform resampling. |
ResizeSqrPixel(NPPImage_16uC3, Double, Double, Double, Double, InterpolationMode)
image resize.
Declaration
public void ResizeSqrPixel(NPPImage_16uC3 dst, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dst | Destination-Image |
System.Double | nXFactor | Factor by which x dimension is changed. |
System.Double | nYFactor | Factor by which y dimension is changed. |
System.Double | nXShift | Source pixel shift in x-direction. |
System.Double | nYShift | Source pixel shift in y-direction. |
InterpolationMode | eInterpolation | The type of eInterpolation to perform resampling. |
RGBToGray(NPPImage_16uC1)
RGB to Gray conversion
Declaration
public void RGBToGray(NPPImage_16uC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | dest | Destination image |
Rotate(NPPImage_16uC3, Double, Double, Double, InterpolationMode)
Rotate images.
Declaration
public void Rotate(NPPImage_16uC3 dest, double nAngle, double nShiftX, double nShiftY, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Double | nAngle | The angle of rotation in degrees. |
System.Double | nShiftX | Shift along horizontal axis |
System.Double | nShiftY | Shift along vertical axis |
InterpolationMode | eInterpolation | Interpolation mode |
RShiftC(UInt32[])
image bit shift by constant (right), inplace.
Declaration
public void RShiftC(uint[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 3) |
RShiftC(UInt32[], NPPImage_16uC3)
image bit shift by constant (right).
Declaration
public void RShiftC(uint[] nConstant, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 3) |
NPPImage_16uC3 | dest | Destination image |
SameNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel.
Declaration
public int SameNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Scale(NPPImage_8uC3, NppHintAlgorithm)
image conversion.
Declaration
public void Scale(NPPImage_8uC3 dst, NppHintAlgorithm hint)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | dst | Destination-Image |
NppHintAlgorithm | hint | algorithm performance or accuracy selector, currently ignored |
Set(UInt16, Int32)
Set pixel values to nValue.
The 8-bit mask image affects setting of the respective pixels in the destination image.
If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding destination pixel is set to specified value.
Declaration
public void Set(ushort nValue, int channel)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | nValue | Value to be set |
System.Int32 | channel | Channel number. This number is added to the dst pointer |
Set(UInt16[])
Set pixel values to nValue.
Declaration
public void Set(ushort[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nValue | Value to be set (Array size = 3) |
Set(UInt16[], NPPImage_8uC1)
Set pixel values to nValue.
The 8-bit mask image affects setting of the respective pixels in the destination image.
If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding destination pixel is set to specified value.
Declaration
public void Set(ushort[] nValue, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nValue | Value to be set (Array size = 3) |
NPPImage_8uC1 | mask | Mask image |
Sqr(NPPImage_16uC3, Int32)
Image squared, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sqr(NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sqr(Int32)
Inplace image squared, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sqr(int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nScaleFactor | scaling factor |
SqrDistanceFull_Norm(NPPImage_16uC3, NPPImage_32fC3)
image SqrDistanceFull_Norm.
Declaration
public void SqrDistanceFull_Norm(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
SqrDistanceSame_Norm(NPPImage_16uC3, NPPImage_32fC3)
image SqrDistanceSame_Norm.
Declaration
public void SqrDistanceSame_Norm(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
SqrDistanceValid_Norm(NPPImage_16uC3, NPPImage_32fC3)
image SqrDistanceValid_Norm.
Declaration
public void SqrDistanceValid_Norm(NPPImage_16uC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
Sqrt(NPPImage_16uC3, Int32)
Image square root, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sqrt(NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sqrt(Int32)
Inplace image square root, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sqrt(int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_16uC3, NPPImage_16uC3, Int32)
Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_16uC3 src2, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_16uC3, Int32)
In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_16uC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Sub(UInt16[], NPPImage_16uC3, Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(ushort[] nConstant, NPPImage_16uC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value to subtract |
NPPImage_16uC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(UInt16[], Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Sub(ushort[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value to subtract |
System.Int32 | nScaleFactor | scaling factor |
Sum(CudaDeviceVariable<Double>)
image sum with 64-bit double precision result. Buffer is internally allocated and freed.
Declaration
public void Sum(CudaDeviceVariable<double> result)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | result | Allocated device memory with size of at least 3 * sizeof(double) |
Sum(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image sum with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void Sum(CudaDeviceVariable<double> result, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | result | Allocated device memory with size of at least 3 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SumGetBufferHostSize() |
SumGetBufferHostSize()
Scratch-buffer size for nppiSum_16u_C3R.
Declaration
public int SumGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
SumWindowColumn(NPPImage_32fC3, Int32, Int32)
16-bit unsigned 1D (column) sum to 32f. Apply Column Window Summation filter over a 1D mask region around each source pixel for 3-channel 16 bit/pixel input images with 32-bit floating point output.
Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring column pixel values in a mask region of the source image defined by nMaskSize and nAnchor.
Declaration
public void SumWindowColumn(NPPImage_32fC3 dest, int nMaskSize, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC3 | dest | Destination image |
System.Int32 | nMaskSize | Length of the linear kernel array. |
System.Int32 | nAnchor | Y offset of the kernel origin frame of reference w.r.t the source pixel. |
SumWindowColumnBorder(NPPImage_32fC3, Int32, Int32, NppiBorderType)
Apply Column Window Summation filter over a 1D mask region around each
source pixel for 3-channel 8 bit/pixel input images with 32-bit floating point
output.
Result 32-bit floating point pixel is equal to the sum of the corresponding and
neighboring column pixel values in a mask region of the source image defined by
nMaskSize and nAnchor.
Declaration
public void SumWindowColumnBorder(NPPImage_32fC3 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC3 | dest | Destination image |
System.Int32 | nMaskSize | Length of the linear kernel array. |
System.Int32 | nAnchor | Y offset of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
SumWindowRow(NPPImage_32fC3, Int32, Int32)
16-bit unsigned 1D (row) sum to 32f.
Apply Row Window Summation filter over a 1D mask region around each source
pixel for 3-channel 16-bit pixel input images with 32-bit floating point output.
Result 32-bit floating point pixel is equal to the sum of the corresponding and
neighboring row pixel values in a mask region of the source image defined
by nKernelDim and nAnchorX.
Declaration
public void SumWindowRow(NPPImage_32fC3 dest, int nMaskSize, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC3 | dest | Destination image |
System.Int32 | nMaskSize | Length of the linear kernel array. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
SumWindowRowBorder(NPPImage_32fC3, Int32, Int32, NppiBorderType)
Apply Row Window Summation filter over a 1D mask region around each source
pixel for 3-channel 8-bit pixel input images with 32-bit floating point output.
Result 32-bit floating point pixel is equal to the sum of the corresponding and
neighboring row pixel values in a mask region of the source image defined
by nKernelDim and nAnchorX.
Declaration
public void SumWindowRowBorder(NPPImage_32fC3 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC3 | dest | Destination image |
System.Int32 | nMaskSize | Length of the linear kernel array. |
System.Int32 | nAnchor | X offset of the kernel origin frame of reference w.r.t the source pixel. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
SwapChannels(NPPImage_16uC3, Int32[])
Swap color channels
Declaration
public void SwapChannels(NPPImage_16uC3 dest, int[] aDstOrder)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Int32[] | aDstOrder | Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order. |
SwapChannels(NPPImage_16uC4, Int32[], UInt16)
Swap color channels
Declaration
public void SwapChannels(NPPImage_16uC4 dest, int[] aDstOrder, ushort nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC4 | dest | Destination image |
System.Int32[] | aDstOrder | Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order. |
System.UInt16 | nValue | (V) Single channel constant value that can be replicated in one or more of the 4 destination channels. nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that particular destination channel value unmodified. |
SwapChannels(Int32[])
Swap color channels inplace
Declaration
public void SwapChannels(int[] aDstOrder)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | aDstOrder | Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGB image, aDstOrder = [2,1,0] converts this to BGR channel order. |
Threshold(NPPImage_16uC3, UInt16[], NppCmpOp)
Image threshold.
If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
Declaration
public void Threshold(NPPImage_16uC3 dest, ushort[] nThreshold, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThreshold | The threshold value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
Threshold(NPPImage_16uC3, UInt16[], UInt16[], NppCmpOp)
Image threshold.
If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nValue, otherwise it is set to sourcePixel.
Declaration
public void Threshold(NPPImage_16uC3 dest, ushort[] nThreshold, ushort[] nValue, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThreshold | The threshold value. |
System.UInt16[] | nValue | The threshold replacement value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
Threshold(UInt16[], NppCmpOp)
In place image threshold.
If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
Declaration
public void Threshold(ushort[] nThreshold, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThreshold | The threshold value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
Threshold(UInt16[], UInt16[], NppCmpOp)
In place image threshold.
If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nValue, otherwise it is set to sourcePixel.
Declaration
public void Threshold(ushort[] nThreshold, ushort[] nValue, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThreshold | The threshold value. |
System.UInt16[] | nValue | The threshold replacement value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
ThresholdGT(NPPImage_16uC3, UInt16[])
Image threshold.
If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
Declaration
public void ThresholdGT(NPPImage_16uC3 dest, ushort[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThreshold | The threshold value. |
ThresholdGT(NPPImage_16uC3, UInt16[], UInt16[])
Image threshold.
If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.
Declaration
public void ThresholdGT(NPPImage_16uC3 dest, ushort[] nThreshold, ushort[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThreshold | The threshold value. |
System.UInt16[] | nValue | The threshold replacement value. |
ThresholdGT(UInt16[])
In place image threshold.
If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
Declaration
public void ThresholdGT(ushort[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThreshold | The threshold value. |
ThresholdGT(UInt16[], UInt16[])
In place image threshold.
If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.
Declaration
public void ThresholdGT(ushort[] nThreshold, ushort[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThreshold | The threshold value. |
System.UInt16[] | nValue | The threshold replacement value. |
ThresholdLT(NPPImage_16uC3, UInt16[])
Image threshold.
If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
Declaration
public void ThresholdLT(NPPImage_16uC3 dest, ushort[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThreshold | The threshold value. |
ThresholdLT(NPPImage_16uC3, UInt16[], UInt16[])
Image threshold.
If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.
Declaration
public void ThresholdLT(NPPImage_16uC3 dest, ushort[] nThreshold, ushort[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThreshold | The threshold value. |
System.UInt16[] | nValue | The threshold replacement value. |
ThresholdLT(UInt16[])
In place image threshold.
If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.
Declaration
public void ThresholdLT(ushort[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThreshold | The threshold value. |
ThresholdLT(UInt16[], UInt16[])
In place image threshold.
If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.
Declaration
public void ThresholdLT(ushort[] nThreshold, ushort[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThreshold | The threshold value. |
System.UInt16[] | nValue | The threshold replacement value. |
ThresholdLTGT(NPPImage_16uC3, UInt16[], UInt16[], UInt16[], UInt16[])
Image threshold.
If for a comparison operations sourcePixel is less than nThresholdLT is true, the pixel is set to nValueLT, else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT, otherwise it is set to sourcePixel.
Declaration
public void ThresholdLTGT(NPPImage_16uC3 dest, ushort[] nThresholdLT, ushort[] nValueLT, ushort[] nThresholdGT, ushort[] nValueGT)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.UInt16[] | nThresholdLT | The thresholdLT value. |
System.UInt16[] | nValueLT | The thresholdLT replacement value. |
System.UInt16[] | nThresholdGT | The thresholdGT value. |
System.UInt16[] | nValueGT | The thresholdGT replacement value. |
ThresholdLTGT(UInt16[], UInt16[], UInt16[], UInt16[])
In place image threshold.
If for a comparison operations sourcePixel is less than nThresholdLT is true, the pixel is set to nValueLT, else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT, otherwise it is set to sourcePixel.
Declaration
public void ThresholdLTGT(ushort[] nThresholdLT, ushort[] nValueLT, ushort[] nThresholdGT, ushort[] nValueGT)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nThresholdLT | The thresholdLT value. |
System.UInt16[] | nValueLT | The thresholdLT replacement value. |
System.UInt16[] | nThresholdGT | The thresholdGT value. |
System.UInt16[] | nValueGT | The thresholdGT replacement value. |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<ushort3> ToCudaPitchedDeviceVariable()
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<ushort3> |
Transpose(NPPImage_16uC3)
image transpose
Declaration
public void Transpose(NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
ValidNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel.
Declaration
public int ValidNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
WarpAffine(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], InterpolationMode)
Affine transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = C_00 * x + C_01 * y + C_02
Y_new = C_10 * x + C_11 * y + C_12
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one.
In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public static void WarpAffine(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double[,] | coeffs | Affine transform coefficients [2,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpAffine(NPPImage_16uC3, Double[,], InterpolationMode)
Affine transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = C_00 * x + C_01 * y + C_02
Y_new = C_10 * x + C_11 * y + C_12
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one.
In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public void WarpAffine(NPPImage_16uC3 dest, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Double[,] | coeffs | Affine transform coefficients [2,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpAffineBack(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], InterpolationMode)
Inverse affine transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest.
The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = C_00 * x + C_01 * y + C_02
Y_new = C_10 * x + C_11 * y + C_12
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public static void WarpAffineBack(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double[,] | coeffs | Affine transform coefficients [2,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpAffineBack(NPPImage_16uC3, Double[,], InterpolationMode)
Inverse affine transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest.
The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = C_00 * x + C_01 * y + C_02
Y_new = C_10 * x + C_11 * y + C_12
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public void WarpAffineBack(NPPImage_16uC3 dest, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Double[,] | coeffs | Affine transform coefficients [2,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpAffineQuad(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], InterpolationMode)
Affine transform of an image.
This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified eInterpolation method and written to the destination ROI.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public static void WarpAffineQuad(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, double[, ] srcQuad, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double[, ] dstQuad, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
System.Double[,] | srcQuad | Source quadrangle [4,2] |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double[,] | dstQuad | Destination quadrangle [4,2] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpAffineQuad(Double[,], NPPImage_16uC3, Double[,], InterpolationMode)
Affine transform of an image.
This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified eInterpolation method and written to the destination ROI.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public void WarpAffineQuad(double[, ] srcQuad, NPPImage_16uC3 dest, double[, ] dstQuad, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | srcQuad | Source quadrangle [4,2] |
NPPImage_16uC3 | dest | Destination image |
System.Double[,] | dstQuad | Destination quadrangle [4,2] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpPerspective(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], InterpolationMode)
Perspective transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)
Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public static void WarpPerspective(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double[,] | coeffs | Perspective transform coefficients [3,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpPerspective(NPPImage_16uC3, Double[,], InterpolationMode)
Perspective transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)
Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public void WarpPerspective(NPPImage_16uC3 dest, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Double[,] | coeffs | Perspective transform coefficients [3,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpPerspectiveBack(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], InterpolationMode)
Inverse perspective transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)
Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public static void WarpPerspectiveBack(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double[,] | coeffs | Perspective transform coefficients [3,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpPerspectiveBack(NPPImage_16uC3, Double[,], InterpolationMode)
Inverse perspective transform of an image.
This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:
X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)
Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)
The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public void WarpPerspectiveBack(NPPImage_16uC3 dest, double[, ] coeffs, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | dest | Destination image |
System.Double[,] | coeffs | Perspective transform coefficients [3,3] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpPerspectiveQuad(NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], NPPImage_16uC1, NPPImage_16uC1, NPPImage_16uC1, Double[,], InterpolationMode)
Perspective transform of an image.
This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public static void WarpPerspectiveQuad(NPPImage_16uC1 src0, NPPImage_16uC1 src1, NPPImage_16uC1 src2, double[, ] srcQuad, NPPImage_16uC1 dest0, NPPImage_16uC1 dest1, NPPImage_16uC1 dest2, double[, ] destQuad, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC1 | src0 | Source image (Channel 0) |
NPPImage_16uC1 | src1 | Source image (Channel 1) |
NPPImage_16uC1 | src2 | Source image (Channel 2) |
System.Double[,] | srcQuad | Source quadrangle [4,2] |
NPPImage_16uC1 | dest0 | Destination image (Channel 0) |
NPPImage_16uC1 | dest1 | Destination image (Channel 1) |
NPPImage_16uC1 | dest2 | Destination image (Channel 2) |
System.Double[,] | destQuad | Destination quadrangle [4,2] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
WarpPerspectiveQuad(Double[,], NPPImage_16uC3, Double[,], InterpolationMode)
Perspective transform of an image.
This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.
NPPI specific recommendation:
The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values
(int)((void *)(pDst + dstRoi.x))
and
(int)((void *)(pDst + dstRoi.x + dstRoi.width))
are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.
Declaration
public void WarpPerspectiveQuad(double[, ] srcQuad, NPPImage_16uC3 dest, double[, ] destQuad, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
System.Double[,] | srcQuad | Source quadrangle [4,2] |
NPPImage_16uC3 | dest | Destination image |
System.Double[,] | destQuad | Destination quadrangle [4,2] |
InterpolationMode | eInterpolation | Interpolation mode: can be NearestNeighbor, Linear or Cubic |
Xor(NPPImage_16uC3)
In place image logical Xor.
Declaration
public void Xor(NPPImage_16uC3 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
Xor(NPPImage_16uC3, NPPImage_16uC3)
Image logical Xor.
Declaration
public void Xor(NPPImage_16uC3 src2, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | src2 | 2nd source image |
NPPImage_16uC3 | dest | Destination image |
Xor(UInt16[])
In place image logical Xor with constant.
Declaration
public void Xor(ushort[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value (Array length = 3) |
Xor(UInt16[], NPPImage_16uC3)
Image logical Xor with constant.
Declaration
public void Xor(ushort[] nConstant, NPPImage_16uC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | nConstant | Value (Array length = 3) |
NPPImage_16uC3 | dest | Destination image |
Operators
| Improve this Doc View SourceImplicit(CudaPitchedDeviceVariable<ushort3> to NPPImage_16uC3)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_16uC3(CudaPitchedDeviceVariable<ushort3> img)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<ushort3> | img | CudaPitchedDeviceVariable |
Returns
Type | Description |
---|---|
NPPImage_16uC3 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_16uC3 to CudaPitchedDeviceVariable<ushort3>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<ushort3>(NPPImage_16uC3 img)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16uC3 | img | NPPImage |
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<ushort3> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |