Class NPPImage_16sC4
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_16sC4 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_16sC4(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16sC4(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_16sC4(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16sC4(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_16sC4(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_16sC4(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_16sC4(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16sC4(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_16sC4(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_16sC4(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_16sC4(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_16sC4(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_16sC4(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_16sC4(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 SourceAbs()
Image absolute value. In place.
Declaration
public void Abs()
Abs(NPPImage_16sC4)
Image absolute value.
Declaration
public void Abs(NPPImage_16sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
AbsA()
Image absolute value. In place. Not affecting Alpha channel.
Declaration
public void AbsA()
AbsA(NPPImage_16sC4)
Image absolute value. Not affecting Alpha channel.
Declaration
public void AbsA(NPPImage_16sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
Add(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(NPPImage_16sC4, Int32)
In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Add(Int16[], NPPImage_16sC4, Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Values to add |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(Int16[], Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Add(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Values to add |
System.Int32 | nScaleFactor | scaling factor |
AddA(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.
Declaration
public void AddA(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
AddA(NPPImage_16sC4, Int32)
In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.
Declaration
public void AddA(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
AddA(Int16[], NPPImage_16sC4, Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.
Declaration
public void AddA(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Values to add |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
AddA(Int16[], Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unmodified Alpha.
Declaration
public void AddA(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Values to add |
System.Int32 | nScaleFactor | scaling factor |
ADotProdGetBufferHostSize()
Device scratch buffer size (in bytes) for nppiDotProd_16s64f_C4R. Ignoring alpha channel.
Declaration
public int ADotProdGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
ADotProduct(NPPImage_16sC4, CudaDeviceVariable<Double>)
Four-channel 16-bit signed image DotProd. Buffer is internally allocated and freed. Ignoring alpha channel.
Declaration
public void ADotProduct(NPPImage_16sC4 src2, CudaDeviceVariable<double> pDp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (3 * sizeof(double)) |
ADotProduct(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
Four-channel 16-bit signed image DotProd. Ignoring alpha channel.
Declaration
public void ADotProduct(NPPImage_16sC4 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 ADotProdGetBufferHostSize() |
AverageError(NPPImage_16sC4, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC1, Single[])
Color to Gray conversion.
Declaration
public void ColorToGray(NPPImage_16sC1 dest, float[] aCoeffs)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | dest | Destination image |
System.Single[] | aCoeffs | fixed size array of constant floating point conversion coefficient values, one per color channel. |
ColorToGrayA(NPPImage_16sC1, Single[])
Color to Gray conversion, not affecting Alpha.
Declaration
public void ColorToGrayA(NPPImage_16sC1 dest, float[] aCoeffs)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | dest | Destination image |
System.Single[] | aCoeffs | fixed size array of constant floating point conversion coefficient values, one per color channel. |
ColorTwist(NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, 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_16sC1 src0, NPPImage_16sC1 src1, NPPImage_16sC1 src2, NPPImage_16sC1 dest0, NPPImage_16sC1 dest1, NPPImage_16sC1 dest2, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src0 | Source image (Channel 0) |
NPPImage_16sC1 | src1 | Source image (Channel 1) |
NPPImage_16sC1 | src2 | Source image (Channel 2) |
NPPImage_16sC1 | dest0 | Destination image (Channel 0) |
NPPImage_16sC1 | dest1 | Destination image (Channel 1) |
NPPImage_16sC1 | dest2 | Destination image (Channel 2) |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, 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_16sC1 srcDest0, NPPImage_16sC1 srcDest1, NPPImage_16sC1 srcDest2, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | srcDest0 | Source / Destination image (Channel 0) |
NPPImage_16sC1 | srcDest1 | Source / Destinationimage (Channel 1) |
NPPImage_16sC1 | srcDest2 | Source / Destinationimage (Channel 2) |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwistA(NPPImage_16sC4, Single[,])
An input color twist matrix with floating-point pixel values is applied within ROI. Alpha channel is the last channel and is not processed.
Declaration
public void ColorTwistA(NPPImage_16sC4 dest, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwistA(Single[,])
in place color twist, not affecting Alpha.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public void ColorTwistA(float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. [3,4] |
Compare(NPPImage_16sC1, NPPImage_8uC1, NppCmpOp)
Compare pSrc1's pixels with corresponding pixels in pSrc2.
Declaration
public void Compare(NPPImage_16sC1 src2, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src2 | 2nd source image |
NPPImage_8uC1 | dest | Destination image |
NppCmpOp | eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
Compare(Int16[], NPPImage_8uC1, NppCmpOp)
Compare pSrc's pixels with constant value.
Declaration
public void Compare(short[] nConstant, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | constant value |
NPPImage_8uC1 | dest | Destination image |
NppCmpOp | eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
CompareA(NPPImage_16sC1, NPPImage_8uC1, NppCmpOp)
Compare pSrc1's pixels with corresponding pixels in pSrc2. Not affecting Alpha.
Declaration
public void CompareA(NPPImage_16sC1 src2, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src2 | 2nd source image |
NPPImage_8uC1 | dest | Destination image |
NppCmpOp | eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
CompareA(Int16[], NPPImage_8uC1, NppCmpOp)
Compare pSrc's pixels with constant value. Not affecting Alpha.
Declaration
public void CompareA(short[] nConstant, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | constant value |
NPPImage_8uC1 | dest | Destination image |
NppCmpOp | eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
Convert(NPPImage_32fC4)
16-bit unsigned to 32-bit float conversion.
Declaration
public void Convert(NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | dst | Destination image |
Convert(NPPImage_32sC4)
16-bit unsigned to 32-bit signed conversion.
Declaration
public void Convert(NPPImage_32sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32sC4 | dst | Destination image |
Convert(NPPImage_8uC4)
16-bit unsigned to 8-bit unsigned conversion.
Declaration
public void Convert(NPPImage_8uC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dst | Destination image |
ConvertA(NPPImage_32fC4)
16-bit unsigned to 32-bit float conversion. Not Affecting alpha channel.
Declaration
public void ConvertA(NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | dst | Destination image |
ConvertA(NPPImage_32sC4)
16-bit unsigned to 32-bit signed conversion. Not Affecting alpha channel.
Declaration
public void ConvertA(NPPImage_32sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32sC4 | dst | Destination image |
ConvertA(NPPImage_8uC4)
16-bit unsigned to 8-bit unsigned conversion. Not Affecting alpha channel
Declaration
public void ConvertA(NPPImage_8uC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dst | Destination image |
Copy(NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1)
Three-channel 8-bit unsigned packed to planar image copy.
Declaration
public void Copy(NPPImage_16sC1 dst0, NPPImage_16sC1 dst1, NPPImage_16sC1 dst2, NPPImage_16sC1 dst3)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | dst0 | Destination image channel 0 |
NPPImage_16sC1 | dst1 | Destination image channel 1 |
NPPImage_16sC1 | dst2 | Destination image channel 2 |
NPPImage_16sC1 | dst3 | Destination image channel 3 |
Copy(NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC4)
Three-channel 8-bit unsigned planar to packed image copy.
Declaration
public static void Copy(NPPImage_16sC1 src0, NPPImage_16sC1 src1, NPPImage_16sC1 src2, NPPImage_16sC1 src3, NPPImage_16sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src0 | Source image channel 0 |
NPPImage_16sC1 | src1 | Source image channel 1 |
NPPImage_16sC1 | src2 | Source image channel 2 |
NPPImage_16sC1 | src3 | Source image channel 2 |
NPPImage_16sC4 | dest | Destination image |
Copy(NPPImage_16sC1, Int32)
Image copy.
Declaration
public void Copy(NPPImage_16sC1 dst, int channel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | dst | Destination image |
System.Int32 | channel | Channel number. This number is added to the dst pointer |
Copy(NPPImage_16sC4)
Masked Operation 8-bit unsigned image copy.
Declaration
public void Copy(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination image |
Copy(NPPImage_16sC4, NPPImage_8uC1)
Masked Operation 8-bit unsigned image copy.
Declaration
public void Copy(NPPImage_16sC4 dst, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination image |
NPPImage_8uC1 | mask | Mask image |
Copy(NPPImage_16sC4, Int32, Int32)
Image copy.
Declaration
public void Copy(NPPImage_16sC4 dst, int channelSrc, int channelDst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, Int32, Int32, Int16[])
Copy image and pad borders with a constant, user-specifiable color.
Declaration
public void Copy(NPPImage_16sC4 dst, int nTopBorderHeight, int nLeftBorderWidth, short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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.Int16[] | nValue | The pixel value to be set for border pixels. |
CopyA(NPPImage_16sC4)
Masked Operation 8-bit unsigned image copy. Not affecting Alpha channel.
Declaration
public void CopyA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination image |
CopyA(NPPImage_16sC4, NPPImage_8uC1)
Masked Operation 8-bit unsigned image copy. Not affecting Alpha channel.
Declaration
public void CopyA(NPPImage_16sC4 dst, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination image |
NPPImage_8uC1 | mask | Mask image |
CopyConstBorderA(NPPImage_16sC4, Int32, Int32, Int16[])
Copy image and pad borders with a constant, user-specifiable color. Not affecting Alpha channel.
Declaration
public void CopyConstBorderA(NPPImage_16sC4 dst, int nTopBorderHeight, int nLeftBorderWidth, short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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.Int16[] | nValue | The pixel value to be set for border pixels. |
CopyReplicateBorder(NPPImage_16sC4, Int32, Int32)
image copy with nearest source image pixel color.
Declaration
public void CopyReplicateBorder(NPPImage_16sC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
CopyReplicateBorderA(NPPImage_16sC4, Int32, Int32)
image copy with nearest source image pixel color. Not affecting Alpha.
Declaration
public void CopyReplicateBorderA(NPPImage_16sC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, Single, Single)
linearly interpolated source image subpixel coordinate color copy.
Declaration
public void CopySubpix(NPPImage_16sC4 dst, float nDx, float nDy)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
System.Single | nDx | Fractional part of source image X coordinate. |
System.Single | nDy | Fractional part of source image Y coordinate. |
CopySubpixA(NPPImage_16sC4, Single, Single)
linearly interpolated source image subpixel coordinate color copy. Not affecting Alpha.
Declaration
public void CopySubpixA(NPPImage_16sC4 dst, float nDx, float nDy)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, Int32, Int32)
image copy with the borders wrapped by replication of source image pixel colors.
Declaration
public void CopyWrapBorder(NPPImage_16sC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
CopyWrapBorderA(NPPImage_16sC4, Int32, Int32)
image copy with the borders wrapped by replication of source image pixel colors. Not affecting Alpha.
Declaration
public void CopyWrapBorderA(NPPImage_16sC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
Div(NPPImage_16sC4, NPPImage_16sC4, NppRoundMode, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16sC4 src2, NPPImage_16sC4 dest, NppRoundMode rndMode, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
NppRoundMode | rndMode | Result Rounding mode to be used |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16sC4, NppRoundMode, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16sC4 src2, NppRoundMode rndMode, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NppRoundMode | rndMode | Result Rounding mode to be used |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16sC4, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Div(Int16[], NPPImage_16sC4, Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(Int16[], Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Div(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
DivA(NPPImage_16sC4, NPPImage_16sC4, NppRoundMode, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(NPPImage_16sC4 src2, NPPImage_16sC4 dest, NppRoundMode rndMode, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
NppRoundMode | rndMode | Result Rounding mode to be used |
System.Int32 | nScaleFactor | scaling factor |
DivA(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
DivA(NPPImage_16sC4, NppRoundMode, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(NPPImage_16sC4 src2, NppRoundMode rndMode, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NppRoundMode | rndMode | Result Rounding mode to be used |
System.Int32 | nScaleFactor | scaling factor |
DivA(NPPImage_16sC4, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
DivA(Int16[], NPPImage_16sC4, Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
DivA(Int16[], Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.
Declaration
public void DivA(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
DotProdGetBufferHostSize()
Device scratch buffer size (in bytes) for nppiDotProd_16s64f_C4R.
Declaration
public int DotProdGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
DotProduct(NPPImage_16sC4, CudaDeviceVariable<Double>)
Four-channel 16-bit signed image DotProd. Buffer is internally allocated and freed.
Declaration
public void DotProduct(NPPImage_16sC4 src2, CudaDeviceVariable<double> pDp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (4 * sizeof(double)) |
DotProduct(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
Four-channel 16-bit signed image DotProd.
Declaration
public void DotProduct(NPPImage_16sC4 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (4 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at DotProdGetBufferHostSize() |
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. |
Filter(NPPImage_16sC4, 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_16sC4 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
FilterA(NPPImage_16sC4, 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. Not affecting Alpha.
Declaration
public void FilterA(NPPImage_16sC4 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterA(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter. Not affecting Alpha.
Declaration
public void FilterA(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
FilterBorder(NPPImage_16sC4, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32, NppiBorderType)
Four channel 16-bit signed 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_16sC4 dest, CudaDeviceVariable<int> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Four channel 16-bit signed 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_16sC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterBorderA(NPPImage_16sC4, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32, NppiBorderType)
Four channel 16-bit signed convolution filter with border control, ignoring alpha channel.
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 FilterBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<int> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterBorderA(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Four channel 16-bit signed convolution filter with border control, ignoring alpha channel.
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 FilterBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint)
Computes the average pixel values of the pixels under a rectangular mask.
Declaration
public void FilterBox(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterBoxA(NPPImage_16sC4, NppiSize, NppiPoint)
Computes the average pixel values of the pixels under a rectangular mask. Not affecting Alpha.
Declaration
public void FilterBoxA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint, NppiBorderType)
Computes the average pixel values of the pixels under a rectangular mask.
Declaration
public void FilterBoxBorder(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterBoxBorderA(NPPImage_16sC4, NppiSize, NppiPoint, NppiBorderType)
Computes the average pixel values of the pixels under a rectangular mask.
Declaration
public void FilterBoxBorderA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, 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_16sC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Single>, Int32)
1D column convolution.
Declaration
public void FilterColumn(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterColumnA(NPPImage_16sC4, 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. Not affecting Alpha.
Declaration
public void FilterColumnA(NPPImage_16sC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterColumnA(NPPImage_16sC4, CudaDeviceVariable<Single>, Int32)
1D column convolution. Not affecting Alpha.
Declaration
public void FilterColumnA(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, 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_16sC4 dest, CudaDeviceVariable<int> Kernel, int nAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, 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_16sC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterColumnBorderA(NPPImage_16sC4, 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 FilterColumnBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<int> Kernel, int nAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterColumnBorderA(NPPImage_16sC4, 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 FilterColumnBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Single>)
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
Declaration
public void FilterGauss(NPPImage_16sC4 dst, CudaDeviceVariable<float> Kernel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, MaskSize)
Gauss filter.
Declaration
public void FilterGauss(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterGaussA(NPPImage_16sC4, CudaDeviceVariable<Single>)
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
Declaration
public void FilterGaussA(NPPImage_16sC4 dst, CudaDeviceVariable<float> Kernel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterGaussA(NPPImage_16sC4, MaskSize)
Gauss filter. Not affecting Alpha.
Declaration
public void FilterGaussA(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterGaussBorder(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiBorderType)
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
Declaration
public void FilterGaussBorder(NPPImage_16sC4 dst, CudaDeviceVariable<float> Kernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, 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_16sC4 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterGaussBorderA(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiBorderType)
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
Declaration
public void FilterGaussBorderA(NPPImage_16sC4 dst, CudaDeviceVariable<float> Kernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterGaussBorderA(NPPImage_16sC4, MaskSize, NppiBorderType)
Filters the image using a Gaussian filter kernel with border control, ignoring alpha channel:
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 FilterGaussBorderA(NPPImage_16sC4 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterHighPass(NPPImage_16sC4, MaskSize)
High pass filter.
Declaration
public void FilterHighPass(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterHighPassA(NPPImage_16sC4, MaskSize)
High pass filter. Not affecting Alpha.
Declaration
public void FilterHighPassA(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterHighPassBorder(NPPImage_16sC4, MaskSize, NppiBorderType)
High pass filter.
Declaration
public void FilterHighPassBorder(NPPImage_16sC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterHighPassBorderA(NPPImage_16sC4, MaskSize, NppiBorderType)
High pass filter.
Declaration
public void FilterHighPassBorderA(NPPImage_16sC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterLaplace(NPPImage_16sC4, MaskSize)
Laplace filter.
Declaration
public void FilterLaplace(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterLaplaceA(NPPImage_16sC4, MaskSize)
Laplace filter. Not affecting Alpha.
Declaration
public void FilterLaplaceA(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterLaplaceBorder(NPPImage_16sC4, MaskSize, NppiBorderType)
Laplace filter.
Declaration
public void FilterLaplaceBorder(NPPImage_16sC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterLaplaceBorderA(NPPImage_16sC4, MaskSize, NppiBorderType)
Laplace filter.
Declaration
public void FilterLaplaceBorderA(NPPImage_16sC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, MaskSize)
Low pass filter.
Declaration
public void FilterLowPass(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterLowPassA(NPPImage_16sC4, MaskSize)
Low pass filter. Not affecting Alpha.
Declaration
public void FilterLowPassA(NPPImage_16sC4 dst, MaskSize eMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterLowPassBorder(NPPImage_16sC4, MaskSize, NppiBorderType)
Low pass filter.
Declaration
public void FilterLowPassBorder(NPPImage_16sC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterLowPassBorderA(NPPImage_16sC4, MaskSize, NppiBorderType)
Low pass filter.
Declaration
public void FilterLowPassBorderA(NPPImage_16sC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint)
Result pixel value is the maximum of pixel values under the rectangular mask region.
Declaration
public void FilterMax(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterMaxA(NPPImage_16sC4, NppiSize, NppiPoint)
Result pixel value is the maximum of pixel values under the rectangular mask region. Not affecting Alpha.
Declaration
public void FilterMaxA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint, NppiBorderType)
Result pixel value is the maximum of pixel values under the rectangular mask region.
Declaration
public void FilterMaxBorder(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterMaxBorderA(NPPImage_16sC4, NppiSize, NppiPoint, NppiBorderType)
Result pixel value is the maximum of pixel values under the rectangular mask region.
Declaration
public void FilterMaxBorderA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint)
Result pixel value is the median of pixel values under the rectangular mask region.
Declaration
public void FilterMedian(NPPImage_16sC4 dst, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint, CudaDeviceVariable<Byte>)
Result pixel value is the median of pixel values under the rectangular mask region.
Declaration
public void FilterMedian(NPPImage_16sC4 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterMedianA(NPPImage_16sC4, NppiSize, NppiPoint)
Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.
Declaration
public void FilterMedianA(NPPImage_16sC4 dst, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterMedianA(NPPImage_16sC4, NppiSize, NppiPoint, CudaDeviceVariable<Byte>)
Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.
Declaration
public void FilterMedianA(NPPImage_16sC4 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
FilterMedianGetBufferHostSizeA(NppiSize)
Device scratch buffer size (in bytes) for FilterMedian, ignoring alpha channel.
Declaration
public int FilterMedianGetBufferHostSizeA(NppiSize oMaskSize)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | oMaskSize |
Returns
Type | Description |
---|---|
System.Int32 |
FilterMin(NPPImage_16sC4, NppiSize, NppiPoint)
Result pixel value is the minimum of pixel values under the rectangular mask region.
Declaration
public void FilterMin(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterMinA(NPPImage_16sC4, NppiSize, NppiPoint)
Result pixel value is the minimum of pixel values under the rectangular mask region. Not affecting Alpha.
Declaration
public void FilterMinA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, NppiSize, NppiPoint, NppiBorderType)
Result pixel value is the minimum of pixel values under the rectangular mask region.
Declaration
public void FilterMinBorder(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterMinBorderA(NPPImage_16sC4, NppiSize, NppiPoint, NppiBorderType)
Result pixel value is the minimum of pixel values under the rectangular mask region.
Declaration
public void FilterMinBorderA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterPrewittHoriz(NPPImage_16sC4)
horizontal Prewitt filter.
Declaration
public void FilterPrewittHoriz(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterPrewittHorizA(NPPImage_16sC4)
horizontal Prewitt filter. Not affecting Alpha.
Declaration
public void FilterPrewittHorizA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterPrewittHorizBorder(NPPImage_16sC4, NppiBorderType)
horizontal Prewitt filter.
Declaration
public void FilterPrewittHorizBorder(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterPrewittHorizBorderA(NPPImage_16sC4, NppiBorderType)
horizontal Prewitt filter.
Declaration
public void FilterPrewittHorizBorderA(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterPrewittVert(NPPImage_16sC4)
vertical Prewitt filter.
Declaration
public void FilterPrewittVert(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterPrewittVertA(NPPImage_16sC4)
vertical Prewitt filter. Not affecting Alpha.
Declaration
public void FilterPrewittVertA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterPrewittVertBorder(NPPImage_16sC4, NppiBorderType)
vertical Prewitt filter.
Declaration
public void FilterPrewittVertBorder(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterPrewittVertBorderA(NPPImage_16sC4, NppiBorderType)
vertical Prewitt filter.
Declaration
public void FilterPrewittVertBorderA(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRobertsDown(NPPImage_16sC4)
horizontal Roberts filter.
Declaration
public void FilterRobertsDown(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterRobertsDownA(NPPImage_16sC4)
horizontal Roberts filter. Not affecting Alpha.
Declaration
public void FilterRobertsDownA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterRobertsDownBorder(NPPImage_16sC4, NppiBorderType)
horizontal Roberts filter.
Declaration
public void FilterRobertsDownBorder(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRobertsDownBorderA(NPPImage_16sC4, NppiBorderType)
horizontal Roberts filter.
Declaration
public void FilterRobertsDownBorderA(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRobertsUp(NPPImage_16sC4)
vertical Roberts filter..
Declaration
public void FilterRobertsUp(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterRobertsUpA(NPPImage_16sC4)
vertical Roberts filter. Not affecting Alpha.
Declaration
public void FilterRobertsUpA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterRobertsUpBorder(NPPImage_16sC4, NppiBorderType)
vertical Roberts filter.
Declaration
public void FilterRobertsUpBorder(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRobertsUpBorderA(NPPImage_16sC4, NppiBorderType)
vertical Roberts filter.
Declaration
public void FilterRobertsUpBorderA(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterRow(NPPImage_16sC4, 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_16sC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Single>, Int32)
1D row convolution.
Declaration
public void FilterRow(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterRowA(NPPImage_16sC4, 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. Not affecting Alpha.
Declaration
public void FilterRowA(NPPImage_16sC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterRowA(NPPImage_16sC4, CudaDeviceVariable<Single>, Int32)
1D row convolution. Not affecting Alpha.
Declaration
public void FilterRowA(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, 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_16sC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, 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_16sC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterRowBorderA(NPPImage_16sC4, 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. Not affecting Alpha.
Declaration
public void FilterRowBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterRowBorderA(NPPImage_16sC4, 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 FilterRowBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4)
Sharpen filter.
Declaration
public void FilterSharpen(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterSharpenA(NPPImage_16sC4)
Sharpen filter. Not affecting Alpha.
Declaration
public void FilterSharpenA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterSharpenBorder(NPPImage_16sC4, NppiBorderType)
Sharpen filter.
Declaration
public void FilterSharpenBorder(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterSharpenBorderA(NPPImage_16sC4, NppiBorderType)
Sharpen filter.
Declaration
public void FilterSharpenBorderA(NPPImage_16sC4 dst, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterSobelHorizBorder(NPPImage_16sC4, NppiBorderType)
Filters the image using a horizontal Sobel filter kernel with border control.
Declaration
public void FilterSobelHorizBorder(NPPImage_16sC4 dest, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterSobelHorizBorderA(NPPImage_16sC4, NppiBorderType)
Filters the image using a horizontal Sobel filter kernel with border control, ignoring alpha channel.
Declaration
public void FilterSobelHorizBorderA(NPPImage_16sC4 dest, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterSobelVert(NPPImage_16sC4)
vertical Sobel filter.
Declaration
public void FilterSobelVert(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterSobelVertA(NPPImage_16sC4)
vertical Sobel filter. Not affecting Alpha.
Declaration
public void FilterSobelVertA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
FilterSobelVertBorder(NPPImage_16sC4, NppiBorderType)
Filters the image using a vertical Sobel filter kernel with border control.
Declaration
public void FilterSobelVertBorder(NPPImage_16sC4 dest, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterSobelVertBorderA(NPPImage_16sC4, NppiBorderType)
Filters the image using a vertical Sobel filter kernel with border control, ignoring alpha channel.
Declaration
public void FilterSobelVertBorderA(NPPImage_16sC4 dest, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterUnsharpBorder(NPPImage_16sC4, 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_16sC4 dst, float nRadius, float nSigma, float nWeight, float nThreshold, NppiBorderType eBorderType, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
FilterUnsharpBorderA(NPPImage_16sC4, 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 FilterUnsharpBorderA(NPPImage_16sC4 dst, float nRadius, float nSigma, float nWeight, float nThreshold, NppiBorderType eBorderType, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
FilterUnsharpGetBufferSizeA(Single, Single)
Scratch-buffer size for unsharp filter.
Declaration
public int FilterUnsharpGetBufferSizeA(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 |
FilterWienerBorder(NPPImage_16sC4, NppiSize, NppiPoint, Single[], NppiBorderType)
Wiener filter with border control.
Declaration
public void FilterWienerBorder(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, float[] aNoise, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | destination_image_pointer |
NppiSize | oMaskSize | Pixel Width and Height of the rectangular region of interest surrounding the source pixel. |
NppiPoint | oAnchor | Positive X and Y relative offsets of primary pixel in region of interest surrounding the source pixel relative to bottom right of oMaskSize. |
System.Single[] | aNoise | Fixed size array of per-channel noise variance level value in range of 0.0F to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterWienerBorderA(NPPImage_16sC4, NppiSize, NppiPoint, Single[], NppiBorderType)
Wiener filter with border control, ignoring alpha channel.
Declaration
public void FilterWienerBorderA(NPPImage_16sC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, float[] aNoise, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | destination_image_pointer |
NppiSize | oMaskSize | Pixel Width and Height of the rectangular region of interest surrounding the source pixel. |
NppiPoint | oAnchor | Positive X and Y relative offsets of primary pixel in region of interest surrounding the source pixel relative to bottom right of oMaskSize. |
System.Single[] | aNoise | Fixed size array of per-channel noise variance level value in range of 0.0F to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Finalize()
For dispose
Declaration
protected void Finalize()
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 (4 Variables) |
System.Int32[] | nLowerLevel | Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 4 |
System.Int32[] | nUpperLevel | Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 4 |
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 (4 Variables) |
System.Int32[] | nLowerLevel | Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 4 |
System.Int32[] | nUpperLevel | Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 4 |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at HistogramEvenGetBufferSize(Int32[]) |
HistogramEvenA(CudaDeviceVariable<Int32>[], Int32[], Int32[])
Histogram with evenly distributed bins. Buffer is internally allocated and freed. Alpha channel is ignored during the histograms computations.
Declaration
public void HistogramEvenA(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 |
HistogramEvenA(CudaDeviceVariable<Int32>[], Int32[], Int32[], CudaDeviceVariable<Byte>)
Histogram with evenly distributed bins. No additional buffer is allocated. Alpha channel is ignored during the histograms computations.
Declaration
public void HistogramEvenA(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 |
HistogramEvenGetBufferSizeA(Int32[])
Scratch-buffer size for HistogramEven. Not affecting Alpha channel.
Declaration
public int HistogramEvenGetBufferSizeA(int[] nLevels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | nLevels |
Returns
Type | Description |
---|---|
System.Int32 |
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 = 4 |
CudaDeviceVariable<System.Int32>[] | pLevels | Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 4 |
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 = 4 |
CudaDeviceVariable<System.Int32>[] | pLevels | Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 4 |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at HistogramRangeGetBufferSize(Int32[]) |
HistogramRangeA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
Histogram with bins determined by pLevels array. Buffer is internally allocated and freed. Alpha channel is ignored during the histograms computations.
Declaration
public void HistogramRangeA(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 |
HistogramRangeA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[], CudaDeviceVariable<Byte>)
Histogram with bins determined by pLevels array. No additional buffer is allocated. Alpha channel is ignored during the histograms computations.
Declaration
public void HistogramRangeA(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 |
HistogramRangeGetBufferSizeA(Int32[])
Scratch-buffer size for HistogramRange. Not affecting Alpha channel.
Declaration
public int HistogramRangeGetBufferSizeA(int[] nLevels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | nLevels |
Returns
Type | Description |
---|---|
System.Int32 |
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 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
Lut(NPPImage_16sC4, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, 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_16sC4 dest, CudaDeviceVariable<int> values0, CudaDeviceVariable<int> levels0, CudaDeviceVariable<int> values1, CudaDeviceVariable<int> levels1, CudaDeviceVariable<int> values2, CudaDeviceVariable<int> levels2, CudaDeviceVariable<int> values3, CudaDeviceVariable<int> levels3)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
CudaDeviceVariable<System.Int32> | values3 | array of user defined OUTPUT values, channel 3 |
CudaDeviceVariable<System.Int32> | levels3 | array of user defined INPUT values, channel 3 |
LUT(NPPImage_16sC4, 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_16sC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTA(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. Not affecting Alpha.
Declaration
public void LUTA(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. |
LutA(NPPImage_16sC4, 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. Not affecting alpha channel.
Declaration
public void LutA(NPPImage_16sC4 dest, CudaDeviceVariable<int> values0, CudaDeviceVariable<int> levels0, CudaDeviceVariable<int> values1, CudaDeviceVariable<int> levels1, CudaDeviceVariable<int> values2, CudaDeviceVariable<int> levels2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
LUTA(NPPImage_16sC4, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])
look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation. Not affecting Alpha.
Declaration
public void LUTA(NPPImage_16sC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTCubic(NPPImage_16sC4, 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_16sC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
CudaDeviceVariable<System.Int32>[] | pValues | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTCubicA(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. Not affecting Alpha.
Declaration
public void LUTCubicA(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. |
LUTCubicA(NPPImage_16sC4, 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. Not affecting Alpha.
Declaration
public void LUTCubicA(NPPImage_16sC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values. |
CudaDeviceVariable<System.Int32>[] | pLevels | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels. |
LUTLinearA(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. Not affecting Alpha.
Declaration
public void LUTLinearA(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. |
Max(CudaDeviceVariable<Int16>)
Image pixel maximum. Buffer is internally allocated and freed.
Declaration
public void Max(CudaDeviceVariable<short> max)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 4 * sizeof(short) |
Max(CudaDeviceVariable<Int16>, CudaDeviceVariable<Byte>)
Image pixel maximum. No additional buffer is allocated.
Declaration
public void Max(CudaDeviceVariable<short> max, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MaxGetBufferHostSize() |
MaxA(CudaDeviceVariable<Int16>)
Image pixel maximum. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void MaxA(CudaDeviceVariable<short> max)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 3 * sizeof(short) |
MaxA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Byte>)
Image pixel maximum. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void MaxA(CudaDeviceVariable<short> max, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 3 * sizeof(short) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MaxGetBufferHostSizeA() |
MaxError(NPPImage_16sC4, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4)
image MaxEvery
Declaration
public void MaxEvery(NPPImage_16sC4 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | Source-Image |
MaxEveryA(NPPImage_16sC4)
image MaxEvery Not affecting Alpha.
Declaration
public void MaxEveryA(NPPImage_16sC4 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | Source-Image |
MaxGetBufferHostSize()
Scratch-buffer size for Max.
Declaration
public int MaxGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaxGetBufferHostSizeA()
Scratch-buffer size for Max. Not affecting Alpha.
Declaration
public int MaxGetBufferHostSizeA()
Returns
Type | Description |
---|---|
System.Int32 |
MaximumRelativeError(NPPImage_16sC4, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_16sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
Image pixel maximum. Buffer is internally allocated and freed.
Declaration
public void MaxIndex(CudaDeviceVariable<short> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 4 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 4 * sizeof(int) |
MaxIndex(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated.
Declaration
public void MaxIndex(CudaDeviceVariable<short> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 4 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 4 * sizeof(int) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MaxIndexGetBufferHostSize() |
MaxIndexA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
Image pixel maximum. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void MaxIndexA(CudaDeviceVariable<short> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 3 * sizeof(short) |
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) |
MaxIndexA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void MaxIndexA(CudaDeviceVariable<short> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 3 * sizeof(short) |
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 MaxIndexGetBufferHostSizeA() |
MaxIndexGetBufferHostSize()
Scratch-buffer size for MaxIndex.
Declaration
public int MaxIndexGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaxIndexGetBufferHostSizeA()
Scratch-buffer size for MaxIndex. Not affecting Alpha.
Declaration
public int MaxIndexGetBufferHostSizeA()
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 4 * 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 4 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanGetBufferHostSize() |
MeanA(CudaDeviceVariable<Double>)
image mean with 64-bit double precision result. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void MeanA(CudaDeviceVariable<double> mean)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 3 * sizeof(double) |
MeanA(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image mean with 64-bit double precision result. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void MeanA(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() |
MeanGetBufferHostSize()
Scratch-buffer size for Mean.
Declaration
public int MeanGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MeanGetBufferHostSizeA()
Scratch-buffer size for Mean. Not affecting Alpha.
Declaration
public int MeanGetBufferHostSizeA()
Returns
Type | Description |
---|---|
System.Int32 |
Min(CudaDeviceVariable<Int16>)
Image pixel minimum. Buffer is internally allocated and freed.
Declaration
public void Min(CudaDeviceVariable<short> min)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 4 * sizeof(short) |
Min(CudaDeviceVariable<Int16>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated.
Declaration
public void Min(CudaDeviceVariable<short> min, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinGetBufferHostSize() |
MinA(CudaDeviceVariable<Int16>)
Image pixel minimum. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void MinA(CudaDeviceVariable<short> min)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 3 * sizeof(short) |
MinA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void MinA(CudaDeviceVariable<short> min, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 3 * sizeof(short) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinGetBufferHostSizeA() |
MinEvery(NPPImage_16sC4)
image MinEvery
Declaration
public void MinEvery(NPPImage_16sC4 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | Source-Image |
MinEveryA(NPPImage_16sC4)
image MinEvery Not affecting Alpha.
Declaration
public void MinEveryA(NPPImage_16sC4 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | Source-Image |
MinGetBufferHostSize()
Scratch-buffer size for Min.
Declaration
public int MinGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinGetBufferHostSizeA()
Scratch-buffer size for Min. Not affecting Alpha.
Declaration
public int MinGetBufferHostSizeA()
Returns
Type | Description |
---|---|
System.Int32 |
MinIndex(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
Image pixel minimum. Buffer is internally allocated and freed.
Declaration
public void MinIndex(CudaDeviceVariable<short> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 4 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 4 * sizeof(int) |
MinIndex(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated.
Declaration
public void MinIndex(CudaDeviceVariable<short> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Int32> | indexX | Allocated device memory with size of at least 4 * sizeof(int) |
CudaDeviceVariable<System.Int32> | indexY | Allocated device memory with size of at least 4 * sizeof(int) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinIndexGetBufferHostSize() |
MinIndexA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)
Image pixel minimum. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void MinIndexA(CudaDeviceVariable<short> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 3 * sizeof(short) |
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) |
MinIndexA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)
Image pixel minimum. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void MinIndexA(CudaDeviceVariable<short> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 3 * sizeof(short) |
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 MinIndexGetBufferHostSizeA() |
MinIndexGetBufferHostSize()
Scratch-buffer size for MinIndex.
Declaration
public int MinIndexGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinIndexGetBufferHostSizeA()
Scratch-buffer size for MinIndex. Not affecting Alpha.
Declaration
public int MinIndexGetBufferHostSizeA()
Returns
Type | Description |
---|---|
System.Int32 |
MinMax(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int16>)
Image pixel minimum and maximum. Buffer is internally allocated and freed.
Declaration
public void MinMax(CudaDeviceVariable<short> min, CudaDeviceVariable<short> max)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 4 * sizeof(short) |
MinMax(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int16>, CudaDeviceVariable<Byte>)
Image pixel minimum and maximum. No additional buffer is allocated.
Declaration
public void MinMax(CudaDeviceVariable<short> min, CudaDeviceVariable<short> max, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 4 * sizeof(short) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxGetBufferHostSize() |
MinMaxA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int16>)
Image pixel minimum and maximum. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void MinMaxA(CudaDeviceVariable<short> min, CudaDeviceVariable<short> max)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 3 * sizeof(short) |
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 3 * sizeof(short) |
MinMaxA(CudaDeviceVariable<Int16>, CudaDeviceVariable<Int16>, CudaDeviceVariable<Byte>)
Image pixel minimum and maximum. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void MinMaxA(CudaDeviceVariable<short> min, CudaDeviceVariable<short> max, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Int16> | min | Allocated device memory with size of at least 3 * sizeof(short) |
CudaDeviceVariable<System.Int16> | max | Allocated device memory with size of at least 3 * sizeof(short) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxGetBufferHostSizeA() |
MinMaxGetBufferHostSize()
Scratch-buffer size for MinMax.
Declaration
public int MinMaxGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MinMaxGetBufferHostSizeA()
Scratch-buffer size for MinMax. Not affecting Alpha.
Declaration
public int MinMaxGetBufferHostSizeA()
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_16sC4, NppiAxis)
Mirror image.
Declaration
public void Mirror(NPPImage_16sC4 dest, NppiAxis flip)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
NppiAxis | flip | Specifies the axis about which the image is to be mirrored. |
MirrorA(NppiAxis)
Mirror image inplace. Not affecting Alpha.
Declaration
public void MirrorA(NppiAxis flip)
Parameters
Type | Name | Description |
---|---|---|
NppiAxis | flip | Specifies the axis about which the image is to be mirrored. |
MirrorA(NPPImage_16sC4, NppiAxis)
Mirror image. Not affecting Alpha.
Declaration
public void MirrorA(NPPImage_16sC4 dest, NppiAxis flip)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
NppiAxis | flip | Specifies the axis about which the image is to be mirrored. |
Mul(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(NPPImage_16sC4, Int32)
In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Mul(Int16[], NPPImage_16sC4, Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(Int16[], Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Mul(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
MulA(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void MulA(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
MulA(NPPImage_16sC4, Int32)
In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void MulA(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
MulA(Int16[], NPPImage_16sC4, Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void MulA(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
MulA(Int16[], Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.
Declaration
public void MulA(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
NormDiff_Inf(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormDiff_Inf. Buffer is internally allocated and freed.
Declaration
public void NormDiff_Inf(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (3 * sizeof(double)) |
NormDiff_Inf(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_Inf.
Declaration
public void NormDiff_Inf(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_InfA(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormDiff_Inf. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormDiff_InfA(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (3 * sizeof(double)) |
NormDiff_InfA(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_Inf. Not affecting Alpha.
Declaration
public void NormDiff_InfA(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 NormDiffInfAGetBufferHostSize() |
NormDiff_L1(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormDiff_L1. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L1(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (3 * sizeof(double)) |
NormDiff_L1(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_L1.
Declaration
public void NormDiff_L1(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_L1A(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormDiff_L1. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormDiff_L1A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (3 * sizeof(double)) |
NormDiff_L1A(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_L1. Not affecting Alpha.
Declaration
public void NormDiff_L1A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 NormDiffL1AGetBufferHostSize() |
NormDiff_L2(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormDiff_L2. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L2(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (3 * sizeof(double)) |
NormDiff_L2(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_L2.
Declaration
public void NormDiff_L2(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_L2A(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormDiff_L2. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormDiff_L2A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (3 * sizeof(double)) |
NormDiff_L2A(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormDiff_L2. Not affecting Alpha.
Declaration
public void NormDiff_L2A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 NormDiffL2AGetBufferHostSize() |
NormDiffInfAGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_Inf. Not affecting Alpha.
Declaration
public int NormDiffInfAGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffInfGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_Inf.
Declaration
public int NormDiffInfGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL1AGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L1. Not affecting Alpha.
Declaration
public int NormDiffL1AGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL1GetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L1.
Declaration
public int NormDiffL1GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL2AGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L2. Not affecting Alpha.
Declaration
public int NormDiffL2AGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormDiffL2GetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L2.
Declaration
public int NormDiffL2GetBufferHostSize()
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 4 * 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 4 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormInfGetBufferHostSize() |
NormInfA(CudaDeviceVariable<Double>)
image infinity norm. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormInfA(CudaDeviceVariable<double> norm)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
NormInfA(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image infinity norm. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void NormInfA(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() |
NormInfGetBufferHostSize()
Scratch-buffer size for Norm inf.
Declaration
public int NormInfGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormInfGetBufferHostSizeA()
Scratch-buffer size for Norm inf. Not affecting Alpha.
Declaration
public int NormInfGetBufferHostSizeA()
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 4 * 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 4 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL1GetBufferHostSize() |
NormL1A(CudaDeviceVariable<Double>)
image L1 norm. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormL1A(CudaDeviceVariable<double> norm)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
NormL1A(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image L1 norm. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void NormL1A(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() |
NormL1GetBufferHostSize()
Scratch-buffer size for Norm L1.
Declaration
public int NormL1GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormL1GetBufferHostSizeA()
Scratch-buffer size for Norm L1. Not affecting Alpha.
Declaration
public int NormL1GetBufferHostSizeA()
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 4 * 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 4 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL2GetBufferHostSize() |
NormL2A(CudaDeviceVariable<Double>)
image L2 norm. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormL2A(CudaDeviceVariable<double> norm)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 3 * sizeof(double) |
NormL2A(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image L2 norm. No additional buffer is allocated.
Declaration
public void NormL2A(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() |
NormL2GetBufferHostSize()
Scratch-buffer size for Norm L2.
Declaration
public int NormL2GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormL2GetBufferHostSizeA()
Scratch-buffer size for Norm L2. Not affecting Alpha.
Declaration
public int NormL2GetBufferHostSizeA()
Returns
Type | Description |
---|---|
System.Int32 |
NormRel_Inf(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormRel_Inf. Buffer is internally allocated and freed.
Declaration
public void NormRel_Inf(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_Inf.
Declaration
public void NormRel_Inf(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_InfA(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormRel_Inf. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormRel_InfA(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
NormRel_InfA(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_Inf. Not affecting Alpha.
Declaration
public void NormRel_InfA(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 NormRelInfAGetBufferHostSize() |
NormRel_L1(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormRel_L1. Buffer is internally allocated and freed.
Declaration
public void NormRel_L1(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_L1.
Declaration
public void NormRel_L1(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_L1A(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormRel_L1. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormRel_L1A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
NormRel_L1A(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_L1. Not affecting Alpha.
Declaration
public void NormRel_L1A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 NormRelL1AGetBufferHostSize() |
NormRel_L2(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormRel_L2. Buffer is internally allocated and freed.
Declaration
public void NormRel_L2(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_L2.
Declaration
public void NormRel_L2(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_L2A(NPPImage_16sC4, CudaDeviceVariable<Double>)
image NormRel_L2. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void NormRel_L2A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double)) |
NormRel_L2A(NPPImage_16sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image NormRel_L2. Not affecting Alpha.
Declaration
public void NormRel_L2A(NPPImage_16sC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 NormRelL2AGetBufferHostSize() |
NormRelInfAGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_Inf. Not affecting Alpha.
Declaration
public int NormRelInfAGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelInfGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_Inf.
Declaration
public int NormRelInfGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL1AGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L1. Not affecting Alpha.
Declaration
public int NormRelL1AGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL1GetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L1.
Declaration
public int NormRelL1GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL2AGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L2. Not affecting Alpha.
Declaration
public int NormRelL2AGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
NormRelL2GetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L2.
Declaration
public int NormRelL2GetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Remap(NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)
planar image remap.
Declaration
public static void Remap(NPPImage_16sC1 src0, NPPImage_16sC1 src1, NPPImage_16sC1 src2, NPPImage_16sC1 src3, NPPImage_16sC1 dest0, NPPImage_16sC1 dest1, NPPImage_16sC1 dest2, NPPImage_16sC1 dest3, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src0 | Source image (Channel 0) |
NPPImage_16sC1 | src1 | Source image (Channel 1) |
NPPImage_16sC1 | src2 | Source image (Channel 2) |
NPPImage_16sC1 | src3 | Source image (Channel 3) |
NPPImage_16sC1 | dest0 | Destination image (Channel 0) |
NPPImage_16sC1 | dest1 | Destination image (Channel 1) |
NPPImage_16sC1 | dest2 | Destination image (Channel 2) |
NPPImage_16sC1 | dest3 | Destination image (Channel 3) |
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_16sC4, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)
image remap.
Declaration
public void Remap(NPPImage_16sC4 dst, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
RemapA(NPPImage_16sC4, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)
image remap. Not affecting Alpha.
Declaration
public void RemapA(NPPImage_16sC4 dst, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, InterpolationMode)
resizes planar images.
Declaration
public static void Resize(NPPImage_16sC1 src0, NPPImage_16sC1 src1, NPPImage_16sC1 src2, NPPImage_16sC1 src3, NPPImage_16sC1 dest0, NPPImage_16sC1 dest1, NPPImage_16sC1 dest2, NPPImage_16sC1 dest3, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src0 | Source image (Channel 0) |
NPPImage_16sC1 | src1 | Source image (Channel 1) |
NPPImage_16sC1 | src2 | Source image (Channel 2) |
NPPImage_16sC1 | src3 | Source image (Channel 3) |
NPPImage_16sC1 | dest0 | Destination image (Channel 0) |
NPPImage_16sC1 | dest1 | Destination image (Channel 1) |
NPPImage_16sC1 | dest2 | Destination image (Channel 2) |
NPPImage_16sC1 | dest3 | Destination image (Channel 3) |
InterpolationMode | eInterpolation | Interpolation mode |
Resize(NPPImage_16sC4, InterpolationMode)
Resizes images.
Declaration
public void Resize(NPPImage_16sC4 dest, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
InterpolationMode | eInterpolation | Interpolation mode |
ResizeA(NPPImage_16sC4, InterpolationMode)
Resizes images. Not affecting Alpha.
Declaration
public void ResizeA(NPPImage_16sC4 dest, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
InterpolationMode | eInterpolation | Interpolation mode |
ResizeSqrPixel(NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, NPPImage_16sC1, Double, Double, Double, Double, InterpolationMode)
planar image resize.
Declaration
public static void ResizeSqrPixel(NPPImage_16sC1 src0, NPPImage_16sC1 src1, NPPImage_16sC1 src2, NPPImage_16sC1 src3, NPPImage_16sC1 dest0, NPPImage_16sC1 dest1, NPPImage_16sC1 dest2, NPPImage_16sC1 dest3, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | src0 | Source image (Channel 0) |
NPPImage_16sC1 | src1 | Source image (Channel 1) |
NPPImage_16sC1 | src2 | Source image (Channel 2) |
NPPImage_16sC1 | src3 | Source image (Channel 3) |
NPPImage_16sC1 | dest0 | Destination image (Channel 0) |
NPPImage_16sC1 | dest1 | Destination image (Channel 1) |
NPPImage_16sC1 | dest2 | Destination image (Channel 2) |
NPPImage_16sC1 | dest3 | Destination image (Channel 3) |
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_16sC4, Double, Double, Double, Double, InterpolationMode)
image resize.
Declaration
public void ResizeSqrPixel(NPPImage_16sC4 dst, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
ResizeSqrPixelA(NPPImage_16sC4, Double, Double, Double, Double, InterpolationMode)
image resize. Not affecting Alpha.
Declaration
public void ResizeSqrPixelA(NPPImage_16sC4 dst, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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. |
RGBToGrayA(NPPImage_16sC1)
RGB to Gray conversion, not affecting Alpha.
Declaration
public void RGBToGrayA(NPPImage_16sC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC1 | dest | Destination image |
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 = 4) |
RShiftC(UInt32[], NPPImage_16sC4)
image bit shift by constant (right).
Declaration
public void RShiftC(uint[] nConstant, NPPImage_16sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 4) |
NPPImage_16sC4 | dest | Destination image |
RShiftCA(UInt32[])
image bit shift by constant (right), inplace. Unchanged Alpha.
Declaration
public void RShiftCA(uint[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 4) |
RShiftCA(UInt32[], NPPImage_16sC4)
image bit shift by constant (right). Unchanged Alpha.
Declaration
public void RShiftCA(uint[] nConstant, NPPImage_16sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant (Array length = 4) |
NPPImage_16sC4 | dest | Destination image |
Scale(NPPImage_8uC4, NppHintAlgorithm)
image conversion.
Declaration
public void Scale(NPPImage_8uC4 dst, NppHintAlgorithm hint)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dst | Destination-Image |
NppHintAlgorithm | hint | algorithm performance or accuracy selector, currently ignored |
ScaleA(NPPImage_8uC4, NppHintAlgorithm)
image conversion. Not affecting Alpha.
Declaration
public void ScaleA(NPPImage_8uC4 dst, NppHintAlgorithm hint)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | dst | Destination-Image |
NppHintAlgorithm | hint | algorithm performance or accuracy selector, currently ignored |
Set(Int16, 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(short nValue, int channel)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | nValue | Value to be set |
System.Int32 | channel | Channel number. This number is added to the dst pointer |
Set(Int16[])
Set pixel values to nValue.
Declaration
public void Set(short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nValue | Value to be set (Array size = 4) |
Set(Int16[], 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(short[] nValue, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nValue | Value to be set (Array size = 4) |
NPPImage_8uC1 | mask | Mask image |
SetA(Int16[])
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. Not affecting alpha channel.
Declaration
public void SetA(short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nValue | Value to be set (Array size = 3) |
SetA(Int16[], 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. Not affecting alpha channel.
Declaration
public void SetA(short[] nValue, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nValue | Value to be set (Array size = 3) |
NPPImage_8uC1 | mask | Mask image |
SobelHoriz(NPPImage_16sC4)
horizontal Sobel filter.
Declaration
public void SobelHoriz(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
SobelHorizA(NPPImage_16sC4)
horizontal Sobel filter. Not affecting Alpha.
Declaration
public void SobelHorizA(NPPImage_16sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dst | Destination-Image |
Sqr(NPPImage_16sC4, Int32)
Image squared, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sqr(NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
SqrA(NPPImage_16sC4, Int32)
Image squared, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SqrA(NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
SqrA(Int32)
Inplace image squared, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SqrA(int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nScaleFactor | scaling factor |
Sqrt(NPPImage_16sC4, Int32)
Image square root, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sqrt(NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 |
SqrtA(NPPImage_16sC4, Int32)
Image square root, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SqrtA(NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
SqrtA(Int32)
Inplace image square root, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SqrtA(int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_16sC4, Int32)
In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Sub(Int16[], NPPImage_16sC4, Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value to subtract |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(Int16[], Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Sub(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value to subtract |
System.Int32 | nScaleFactor | scaling factor |
SubA(NPPImage_16sC4, NPPImage_16sC4, Int32)
Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SubA(NPPImage_16sC4 src2, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
SubA(NPPImage_16sC4, Int32)
In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SubA(NPPImage_16sC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
SubA(Int16[], NPPImage_16sC4, Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SubA(short[] nConstant, NPPImage_16sC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nConstant | Value to subtract |
NPPImage_16sC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
SubA(Int16[], Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.
Declaration
public void SubA(short[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | 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 4 * 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 4 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SumGetBufferHostSize() |
SumA(CudaDeviceVariable<Double>)
image sum with 64-bit double precision result. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void SumA(CudaDeviceVariable<double> result)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<System.Double> | result | Allocated device memory with size of at least 3 * sizeof(double) |
SumA(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image sum with 64-bit double precision result. No additional buffer is allocated. Not affecting Alpha.
Declaration
public void SumA(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 SumGetBufferHostSizeA() |
SumGetBufferHostSize()
Scratch-buffer size for nppiSum_16s_C4R.
Declaration
public int SumGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
SumGetBufferHostSizeA()
Scratch-buffer size for nppiSum_16s_C4R. Not affecting Alpha.
Declaration
public int SumGetBufferHostSizeA()
Returns
Type | Description |
---|---|
System.Int32 |
SumWindowColumn(NPPImage_32fC4, Int32, Int32)
16-bit signed 1D (column) sum to 32f. Apply Column Window Summation filter over a 1D mask region around each source pixel for 4-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_32fC4 dest, int nMaskSize, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | 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_32fC4, 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_32fC4 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | 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_32fC4, Int32, Int32)
16-bit signed 1D (row) sum to 32f.
Apply Row Window Summation filter over a 1D mask region around each source
pixel for 4-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_32fC4 dest, int nMaskSize, int nAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | 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_32fC4, 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_32fC4 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | 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_16sC3, Int32[])
Swap channels.
Declaration
public void SwapChannels(NPPImage_16sC3 dest, int[] aDstOrder)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC3 | dest | Destination image |
System.Int32[] | aDstOrder | Host memory 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 RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order. |
SwapChannels(NPPImage_16sC4, Int32[])
Swap channels.
Declaration
public void SwapChannels(NPPImage_16sC4 dest, int[] aDstOrder)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order. |
SwapChannels(Int32[])
Swap channels, in-place.
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 RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order. |
SwapChannelsA(NPPImage_16sC4, Int32[])
Swap channels. Not affecting Alpha
Declaration
public void SwapChannelsA(NPPImage_16sC4 dest, int[] aDstOrder)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | 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 RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3. |
ThresholdA(NPPImage_16sC4, Int16[], NppCmpOp)
Image threshold. Not affecting Alpha.
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 ThresholdA(NPPImage_16sC4 dest, short[] nThreshold, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThreshold | The threshold value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
ThresholdA(NPPImage_16sC4, Int16[], Int16[], NppCmpOp)
Image threshold. Not affecting Alpha.
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 ThresholdA(NPPImage_16sC4 dest, short[] nThreshold, short[] nValue, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThreshold | The threshold value. |
System.Int16[] | nValue | The threshold replacement value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
ThresholdA(Int16[], NppCmpOp)
In place image threshold. Not affecting Alpha.
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 ThresholdA(short[] nThreshold, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThreshold | The threshold value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
ThresholdA(Int16[], Int16[], NppCmpOp)
In place image threshold. Not affecting Alpha.
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 ThresholdA(short[] nThreshold, short[] nValue, NppCmpOp eComparisonOperation)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThreshold | The threshold value. |
System.Int16[] | nValue | The threshold replacement value. |
NppCmpOp | eComparisonOperation | eComparisonOperation. Only allowed values are Less and Greater |
ThresholdGTA(NPPImage_16sC4, Int16[])
Image threshold. Not affecting Alpha.
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 ThresholdGTA(NPPImage_16sC4 dest, short[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThreshold | The threshold value. |
ThresholdGTA(NPPImage_16sC4, Int16[], Int16[])
Image threshold. Not affecting Alpha.
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 ThresholdGTA(NPPImage_16sC4 dest, short[] nThreshold, short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThreshold | The threshold value. |
System.Int16[] | nValue | The threshold replacement value. |
ThresholdGTA(Int16[])
In place image threshold. Not affecting Alpha.
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 ThresholdGTA(short[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThreshold | The threshold value. |
ThresholdGTA(Int16[], Int16[])
In place image threshold. Not affecting Alpha.
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 ThresholdGTA(short[] nThreshold, short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThreshold | The threshold value. |
System.Int16[] | nValue | The threshold replacement value. |
ThresholdLTA(NPPImage_16sC4, Int16[])
Image threshold. Not affecting Alpha.
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 ThresholdLTA(NPPImage_16sC4 dest, short[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThreshold | The threshold value. |
ThresholdLTA(NPPImage_16sC4, Int16[], Int16[])
Image threshold. Not affecting Alpha.
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 ThresholdLTA(NPPImage_16sC4 dest, short[] nThreshold, short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThreshold | The threshold value. |
System.Int16[] | nValue | The threshold replacement value. |
ThresholdLTA(Int16[])
In place image threshold. Not affecting Alpha.
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 ThresholdLTA(short[] nThreshold)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThreshold | The threshold value. |
ThresholdLTA(Int16[], Int16[])
In place image threshold. Not affecting Alpha.
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 ThresholdLTA(short[] nThreshold, short[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThreshold | The threshold value. |
System.Int16[] | nValue | The threshold replacement value. |
ThresholdLTGTA(NPPImage_16sC4, Int16[], Int16[], Int16[], Int16[])
Image threshold. Not affecting Alpha.
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 ThresholdLTGTA(NPPImage_16sC4 dest, short[] nThresholdLT, short[] nValueLT, short[] nThresholdGT, short[] nValueGT)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
System.Int16[] | nThresholdLT | The thresholdLT value. |
System.Int16[] | nValueLT | The thresholdLT replacement value. |
System.Int16[] | nThresholdGT | The thresholdGT value. |
System.Int16[] | nValueGT | The thresholdGT replacement value. |
ThresholdLTGTA(Int16[], Int16[], Int16[], Int16[])
In place image threshold. Not affecting Alpha.
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 ThresholdLTGTA(short[] nThresholdLT, short[] nValueLT, short[] nThresholdGT, short[] nValueGT)
Parameters
Type | Name | Description |
---|---|---|
System.Int16[] | nThresholdLT | The thresholdLT value. |
System.Int16[] | nValueLT | The thresholdLT replacement value. |
System.Int16[] | nThresholdGT | The thresholdGT value. |
System.Int16[] | nValueGT | The thresholdGT replacement value. |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<short4> ToCudaPitchedDeviceVariable()
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<short4> |
Transpose(NPPImage_16sC4)
image transpose
Declaration
public void Transpose(NPPImage_16sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | dest | Destination image |
Operators
| Improve this Doc View SourceImplicit(CudaPitchedDeviceVariable<short4> to NPPImage_16sC4)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_16sC4(CudaPitchedDeviceVariable<short4> img)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<short4> | img | CudaPitchedDeviceVariable |
Returns
Type | Description |
---|---|
NPPImage_16sC4 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_16sC4 to CudaPitchedDeviceVariable<short4>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<short4>(NPPImage_16sC4 img)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC4 | img | NPPImage |
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<short4> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |