Class NPPImage_8sC4
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_8sC4 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_8sC4(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC4(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_8sC4(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC4(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_8sC4(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_8sC4(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_8sC4(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC4(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_8sC4(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_8sC4(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_8sC4(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8sC4(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_8sC4(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8sC4(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 SourceADotProdGetBufferHostSize()
Device scratch buffer size (in bytes) for nppiDotProd_8s64f_C4R. Ignoring alpha channel.
Declaration
public int ADotProdGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
ADotProduct(NPPImage_8sC4, CudaDeviceVariable<Double>)
Four-channel 8-bit signed image DotProd. Buffer is internally allocated and freed. Ignoring alpha channel.
Declaration
public void ADotProduct(NPPImage_8sC4 src2, CudaDeviceVariable<double> pDp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (3 * sizeof(double)) |
ADotProduct(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
Four-channel 8-bit signed image DotProd. Ignoring alpha channel.
Declaration
public void ADotProduct(NPPImage_8sC4 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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_8sC4, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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_8sC4, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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 |
ColorTwist(NPPImage_8sC4, Single[,])
4 channel 8-bit signed color twist, with alpha copy.
An input color twist matrix with floating-point coefficient values is applied with in ROI.
Alpha channel is the last channel and is copied unmodified from the source pixel to the destination pixel.
Declaration
public void ColorTwist(NPPImage_8sC4 dest, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | dest | Destination image |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(Single[,])
4 channel 8-bit signed in place color twist, not affecting Alpha.
An input color twist matrix with floating-point coefficient values is applied with in ROI.
Alpha channel is the last channel and is unmodified.
Declaration
public void ColorTwist(float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwistA(NPPImage_8sC4, 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_8sC4 dest, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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] |
Convert(NPPImage_32fC4)
8-bit signed to 32-bit floating point conversion.
Declaration
public void Convert(NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | dst | Destination image |
Convert(NPPImage_32sC4)
8-bit signed to 32-bit signed conversion.
Declaration
public void Convert(NPPImage_32sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32sC4 | dst | Destination image |
ConvertA(NPPImage_32fC4)
8-bit signed to 32-bit floating point conversion, not affecting Alpha.
Declaration
public void ConvertA(NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC4 | dst | Destination image |
ConvertA(NPPImage_32sC4)
8-bit signed to 32-bit signed conversion, not affecting Alpha.
Declaration
public void ConvertA(NPPImage_32sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32sC4 | dst | Destination image |
Copy(NPPImage_8sC4)
Image copy.
Declaration
public void Copy(NPPImage_8sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | dst | Destination image |
CopyA(NPPImage_8sC4)
Image copy. Not affecting Alpha channel.
Declaration
public void CopyA(NPPImage_8sC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | dst | Destination image |
CrossCorrFull_Norm(NPPImage_8sC4, NPPImage_32fC4)
image CrossCorrFull_Norm.
Declaration
public void CrossCorrFull_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
CrossCorrFull_NormA(NPPImage_8sC4, NPPImage_32fC4)
image CrossCorrFull_Norm. Not affecting Alpha.
Declaration
public void CrossCorrFull_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
CrossCorrFull_NormLevel(NPPImage_8sC4, NPPImage_32fC4)
CrossCorrFull_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CrossCorrFull_NormLevel(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)
CrossCorrFull_NormLevel.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at FullNormLevelGetBufferHostSize() |
CrossCorrFull_NormLevelA(NPPImage_8sC4, NPPImage_32fC4)
CrossCorrFull_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void CrossCorrFull_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CrossCorrFull_NormLevelA(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)
CrossCorrFull_NormLevel. Not affecting Alpha.
Declaration
public void CrossCorrFull_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at FullNormLevelAGetBufferHostSize() |
CrossCorrSame_Norm(NPPImage_8sC4, NPPImage_32fC4)
image CrossCorrSame_Norm.
Declaration
public void CrossCorrSame_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
CrossCorrSame_NormA(NPPImage_8sC4, NPPImage_32fC4)
image CrossCorrSame_Norm. Not affecting Alpha.
Declaration
public void CrossCorrSame_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
CrossCorrSame_NormLevel(NPPImage_8sC4, NPPImage_32fC4)
CrossCorrSame_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CrossCorrSame_NormLevel(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)
CrossCorrSame_NormLevel.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SameNormLevelGetBufferHostSize() |
CrossCorrSame_NormLevelA(NPPImage_8sC4, NPPImage_32fC4)
CrossCorrSame_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void CrossCorrSame_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CrossCorrSame_NormLevelA(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)
CrossCorrSame_NormLevel. Not affecting Alpha.
Declaration
public void CrossCorrSame_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SameNormLevelAGetBufferHostSize() |
CrossCorrValid_Norm(NPPImage_8sC4, NPPImage_32fC4)
image CrossCorrValid_Norm.
Declaration
public void CrossCorrValid_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
CrossCorrValid_NormA(NPPImage_8sC4, NPPImage_32fC4)
image CrossCorrValid_Norm. Not affecting Alpha.
Declaration
public void CrossCorrValid_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
CrossCorrValid_NormLevel(NPPImage_8sC4, NPPImage_32fC4)
CrossCorrValid_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CrossCorrValid_NormLevel(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)
CrossCorrValid_NormLevel.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at ValidNormLevelGetBufferHostSize() |
CrossCorrValid_NormLevelA(NPPImage_8sC4, NPPImage_32fC4)
CrossCorrValid_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.
Declaration
public void CrossCorrValid_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CrossCorrValid_NormLevelA(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)
CrossCorrValid_NormLevel. Not affecting Alpha.
Declaration
public void CrossCorrValid_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at ValidNormLevelAGetBufferHostSize() |
DotProdGetBufferHostSize()
Device scratch buffer size (in bytes) for nppiDotProd_8s64f_C4R.
Declaration
public int DotProdGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
DotProduct(NPPImage_8sC4, CudaDeviceVariable<Double>)
Four-channel 8-bit signed image DotProd. Buffer is internally allocated and freed.
Declaration
public void DotProduct(NPPImage_8sC4 src2, CudaDeviceVariable<double> pDp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (4 * sizeof(double)) |
DotProduct(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
Four-channel 8-bit signed image DotProd.
Declaration
public void DotProduct(NPPImage_8sC4 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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() |
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 |
Filter(NPPImage_8sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_8sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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<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 |
FilterA(NPPImage_8sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter. Not affecting Alpha.
Declaration
public void FilterA(NPPImage_8sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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<Single>, NppiSize, NppiPoint, NppiBorderType)
Four channel 8-bit signed to 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. |
FilterBorder(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Four channel 8-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_8uC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC4 | 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<Single>, NppiSize, NppiPoint, NppiBorderType)
Four channel 8-bit signed to 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. |
FilterBorderA(NPPImage_8sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Four channel 8-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_8sC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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. |
Finalize()
For dispose
Declaration
protected void Finalize()
FullNormLevelAGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel. Not affecting Alpha.
Declaration
public int FullNormLevelAGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
FullNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel.
Declaration
public int FullNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaxError(NPPImage_8sC4, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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 |
MaximumRelativeError(NPPImage_8sC4, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | 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 |
RShiftC(UInt32[])
image bit shift by constant (right), inplace.
Declaration
public void RShiftC(uint[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant |
RShiftC(UInt32[], NPPImage_8sC4)
image bit shift by constant (right).
Declaration
public void RShiftC(uint[] nConstant, NPPImage_8sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant |
NPPImage_8sC4 | dest | Destination image |
RShiftCA(UInt32[])
image bit shift by constant (right), inplace. Not affecting Alpha channel.
Declaration
public void RShiftCA(uint[] nConstant)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant |
RShiftCA(UInt32[], NPPImage_8sC4)
image bit shift by constant (right). Not affecting Alpha channel.
Declaration
public void RShiftCA(uint[] nConstant, NPPImage_8sC4 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant |
NPPImage_8sC4 | dest | Destination image |
SameNormLevelAGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel. Not affecting Alpha.
Declaration
public int SameNormLevelAGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
SameNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel.
Declaration
public int SameNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Set(SByte[])
Set pixel values to nValue.
Declaration
public void Set(sbyte[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.SByte[] | nValue | Value to be set |
SetA(SByte[])
Set pixel values to nValue. Not affecting Alpha channel.
Declaration
public void SetA(sbyte[] nValue)
Parameters
Type | Name | Description |
---|---|---|
System.SByte[] | nValue | Value to be set |
SqrDistanceFull_Norm(NPPImage_8sC4, NPPImage_32fC4)
image SqrDistanceFull_Norm.
Declaration
public void SqrDistanceFull_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
SqrDistanceFull_NormA(NPPImage_8sC4, NPPImage_32fC4)
image SqrDistanceFull_Norm. Not affecting Alpha.
Declaration
public void SqrDistanceFull_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
SqrDistanceSame_Norm(NPPImage_8sC4, NPPImage_32fC4)
image SqrDistanceSame_Norm.
Declaration
public void SqrDistanceSame_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
SqrDistanceSame_NormA(NPPImage_8sC4, NPPImage_32fC4)
image SqrDistanceSame_Norm. Not affecting Alpha.
Declaration
public void SqrDistanceSame_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
SqrDistanceValid_Norm(NPPImage_8sC4, NPPImage_32fC4)
image SqrDistanceValid_Norm.
Declaration
public void SqrDistanceValid_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
SqrDistanceValid_NormA(NPPImage_8sC4, NPPImage_32fC4)
image SqrDistanceValid_Norm. Not affecting Alpha.
Declaration
public void SqrDistanceValid_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | tpl | template image. |
NPPImage_32fC4 | dst | Destination-Image |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<char4> ToCudaPitchedDeviceVariable()
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<char4> |
ValidNormLevelAGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel. Not affecting Alpha.
Declaration
public int ValidNormLevelAGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
ValidNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel.
Declaration
public int ValidNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Operators
| Improve this Doc View SourceImplicit(CudaPitchedDeviceVariable<char4> to NPPImage_8sC4)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_8sC4(CudaPitchedDeviceVariable<char4> img)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<char4> | img | CudaPitchedDeviceVariable |
Returns
Type | Description |
---|---|
NPPImage_8sC4 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_8sC4 to CudaPitchedDeviceVariable<char4>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<char4>(NPPImage_8sC4 img)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC4 | img | NPPImage |
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<char4> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |