Class NPPImage_8sC1
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_8sC1 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_8sC1(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC1(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_8sC1(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC1(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_8sC1(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_8sC1(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_8sC1(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC1(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_8sC1(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_8sC1(NPPImageBase image)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImageBase | image | NPP image |
NPPImage_8sC1(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8sC1(NppiSize size)
Parameters
| Type | Name | Description |
|---|---|---|
| NppiSize | size | Image size |
NPPImage_8sC1(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8sC1(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 SourceAlphaComp(SByte, NPPImage_8sC1, SByte, NPPImage_8sC1, NppiAlphaOp)
Image composition using constant alpha.
Declaration
public void AlphaComp(sbyte alpha1, NPPImage_8sC1 src2, sbyte alpha2, NPPImage_8sC1 dest, NppiAlphaOp nppAlphaOp)
Parameters
| Type | Name | Description |
|---|---|---|
| System.SByte | alpha1 | constant alpha for this image |
| NPPImage_8sC1 | src2 | 2nd source image |
| System.SByte | alpha2 | constant alpha for src2 |
| NPPImage_8sC1 | dest | Destination image |
| NppiAlphaOp | nppAlphaOp | alpha compositing operation |
AverageError(NPPImage_8sC1, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | src2 | 2nd source image |
| CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_8sC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | 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_8sC1, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | src2 | 2nd source image |
| CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_8sC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | 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_8sC1, Single[,])
An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public void ColorTwist(NPPImage_8sC1 dest, float[, ] twistMatrix)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | dest | Destination image |
| System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(Single[,])
in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public void ColorTwist(float[, ] aTwist)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. [3,4] |
Convert(NPPImage_16sC1)
8-bit signed to 16-bit signed conversion.
Declaration
public void Convert(NPPImage_16sC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination image |
Convert(NPPImage_16uC1)
8-bit signed to 16-bit unsigned conversion with saturation.
Declaration
public void Convert(NPPImage_16uC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16uC1 | dst | Destination image |
Convert(NPPImage_32fC1)
8-bit signed to 32-bit floating point conversion.
Declaration
public void Convert(NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_32fC1 | dst | Destination image |
Convert(NPPImage_32sC1)
8-bit signed to 32-bit signed conversion.
Declaration
public void Convert(NPPImage_32sC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_32sC1 | dst | Destination image |
Convert(NPPImage_32uC1)
8-bit signed to 32-bit unsigned conversion with saturation.
Declaration
public void Convert(NPPImage_32uC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_32uC1 | dst | Destination image |
Convert(NPPImage_8uC1)
8-bit signed to 8-bit unsigned conversion with saturation.
Declaration
public void Convert(NPPImage_8uC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8uC1 | dst | Destination image |
Copy(NPPImage_8sC1)
Image copy.
Declaration
public void Copy(NPPImage_8sC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | dst | Destination image |
CrossCorrFull_Norm(NPPImage_8sC1, NPPImage_32fC1)
image CrossCorrFull_Norm.
Declaration
public void CrossCorrFull_Norm(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
CrossCorrFull_NormLevel(NPPImage_8sC1, NPPImage_32fC1)
CrossCorrFull_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination image |
CrossCorrFull_NormLevel(NPPImage_8sC1, NPPImage_32fC1, CudaDeviceVariable<Byte>)
CrossCorrFull_NormLevel.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_8sC1 tpl, NPPImage_32fC1 dst, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination image |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at FullNormLevelGetBufferHostSize() |
CrossCorrSame_Norm(NPPImage_8sC1, NPPImage_32fC1)
image CrossCorrSame_Norm.
Declaration
public void CrossCorrSame_Norm(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
CrossCorrSame_NormLevel(NPPImage_8sC1, NPPImage_32fC1)
CrossCorrSame_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination image |
CrossCorrSame_NormLevel(NPPImage_8sC1, NPPImage_32fC1, CudaDeviceVariable<Byte>)
CrossCorrSame_NormLevel.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_8sC1 tpl, NPPImage_32fC1 dst, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination image |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SameNormLevelGetBufferHostSize() |
CrossCorrValid(NPPImage_8sC1, NPPImage_32fC1)
image CrossCorrValid.
Declaration
public void CrossCorrValid(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
CrossCorrValid_Norm(NPPImage_8sC1, NPPImage_32fC1)
image CrossCorrValid_Norm.
Declaration
public void CrossCorrValid_Norm(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
CrossCorrValid_NormLevel(NPPImage_8sC1, NPPImage_32fC1)
CrossCorrValid_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination image |
CrossCorrValid_NormLevel(NPPImage_8sC1, NPPImage_32fC1, CudaDeviceVariable<Byte>)
CrossCorrValid_NormLevel.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_8sC1 tpl, NPPImage_32fC1 dst, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination image |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at ValidNormLevelGetBufferHostSize() |
DotProdGetBufferHostSize()
Device scratch buffer size (in bytes) for nppiDotProd_8s64f_C1R.
Declaration
public int DotProdGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
DotProduct(NPPImage_8sC1, CudaDeviceVariable<Double>)
One-channel 8-bit signed image DotProd. Buffer is internally allocated and freed.
Declaration
public void DotProduct(NPPImage_8sC1 src2, CudaDeviceVariable<double> pDp)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | src2 | 2nd source image |
| CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (1 * sizeof(double)) |
DotProduct(NPPImage_8sC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
One-channel 8-bit signed image DotProd.
Declaration
public void DotProduct(NPPImage_8sC1 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | src2 | 2nd source image |
| CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (1 * sizeof(double)) |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at DotProdGetBufferHostSize() |
Filter(NPPImage_16sC1, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_16sC1 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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_8sC1, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_8sC1 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | 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_16sC1, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
One 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_16sC1 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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_8sC1, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
One 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_8sC1 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | 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. |
FilterLaplace(NPPImage_16sC1, MaskSize)
Laplace filter.
Declaration
public void FilterLaplace(NPPImage_16sC1 dst, MaskSize eMaskSize)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
| MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterScharrHoriz(NPPImage_16sC1)
horizontal Scharr filter.
Declaration
public void FilterScharrHoriz(NPPImage_16sC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
FilterScharrHorizBorder(NPPImage_16sC1, NppiBorderType)
Filters the image using a horizontal Scharr filter kernel with border control.
Declaration
public void FilterScharrHorizBorder(NPPImage_16sC1 dest, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dest | Destination image |
| NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
FilterScharrVert(NPPImage_16sC1)
vertical Scharr filter.
Declaration
public void FilterScharrVert(NPPImage_16sC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
FilterSobelCross(NPPImage_16sC1, MaskSize)
second cross derivative Sobel filter.
Declaration
public void FilterSobelCross(NPPImage_16sC1 dst, MaskSize eMaskSize)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
| MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterSobelCrossBorder(NPPImage_16sC1, MaskSize, NppiBorderType)
Filters the image using a second cross derivative Sobel filter kernel with border control.
Declaration
public void FilterSobelCrossBorder(NPPImage_16sC1 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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. |
FilterSobelHoriz(NPPImage_16sC1, MaskSize)
horizontal Sobel filter.
Declaration
public void FilterSobelHoriz(NPPImage_16sC1 dst, MaskSize eMaskSize)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
| MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterSobelHorizBorder(NPPImage_16sC1, MaskSize, NppiBorderType)
Filters the image using a horizontal Sobel filter kernel with border control.
Declaration
public void FilterSobelHorizBorder(NPPImage_16sC1 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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. |
FilterSobelHorizSecond(NPPImage_16sC1, MaskSize)
second derivative, horizontal Sobel filter.
Declaration
public void FilterSobelHorizSecond(NPPImage_16sC1 dst, MaskSize eMaskSize)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
| MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterSobelHorizSecondBorder(NPPImage_16sC1, MaskSize, NppiBorderType)
Filters the image using a second derivative, horizontal Sobel filter kernel with border control.
Declaration
public void FilterSobelHorizSecondBorder(NPPImage_16sC1 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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. |
FilterSobelVert(NPPImage_16sC1, MaskSize)
vertical Sobel filter.
Declaration
public void FilterSobelVert(NPPImage_16sC1 dst, MaskSize eMaskSize)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
| MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterSobelVertBorder(NPPImage_16sC1, MaskSize, NppiBorderType)
Filters the image using a vertical Sobel filter kernel with border control.
Declaration
public void FilterSobelVertBorder(NPPImage_16sC1 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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. |
FilterSobelVertSecond(NPPImage_16sC1, MaskSize)
second derivative, vertical Sobel filter.
Declaration
public void FilterSobelVertSecond(NPPImage_16sC1 dst, MaskSize eMaskSize)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dst | Destination-Image |
| MaskSize | eMaskSize | Enumeration value specifying the mask size. |
FilterSobelVertSecondBorder(NPPImage_16sC1, MaskSize, NppiBorderType)
Filters the image using a second derivative, vertical Sobel filter kernel with border control.
Declaration
public void FilterSobelVertSecondBorder(NPPImage_16sC1 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | 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. |
FilterVertHorizBorder(NPPImage_16sC1, NppiBorderType)
Filters the image using a vertical Scharr filter kernel with border control.
Declaration
public void FilterVertHorizBorder(NPPImage_16sC1 dest, NppiBorderType eBorderType)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_16sC1 | dest | Destination image |
| NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Finalize()
For dispose
Declaration
protected void Finalize()
FullNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel.
Declaration
public int FullNormLevelGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
MaxError(NPPImage_8sC1, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | src2 | 2nd source image |
| CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_8sC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | 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_8sC1, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | src2 | 2nd source image |
| CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_8sC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_8sC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | 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 |
Mean(CudaDeviceVariable<Double>, NPPImage_8uC1)
image mean with 64-bit double precision result
Declaration
public void Mean(CudaDeviceVariable<double> mean, NPPImage_8uC1 mask)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
Mean(CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image mean with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void Mean(CudaDeviceVariable<double> mean, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
| 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 |
MeanStdDev(CudaDeviceVariable<Double>, CudaDeviceVariable<Double>)
image mean and standard deviation.
Declaration
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
| CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
MeanStdDev(CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image mean and standard deviation. No additional buffer is allocated.
Declaration
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
| CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanStdDevGetBufferHostSize() |
MeanStdDev(CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, NPPImage_8uC1)
image mean and standard deviation with mask
Declaration
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
| CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
MeanStdDev(CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image mean and standard deviation with mask. No additional buffer is allocated.
Declaration
public void MeanStdDev(CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
| CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanStdDevMaskedGetBufferHostSize() |
MeanStdDevGetBufferHostSize()
Scratch-buffer size for MeanStdDev.
Declaration
public int MeanStdDevGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
MeanStdDevMaskedGetBufferHostSize()
Scratch-buffer size for MeanStdDev (Masked).
Declaration
public int MeanStdDevMaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
MinMaxIndx(CudaDeviceVariable<SByte>, CudaDeviceVariable<SByte>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>)
image minimum and maximum values with their indices
Declaration
public void MinMaxIndx(CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.SByte> | min | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<System.SByte> | max | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
MinMaxIndx(CudaDeviceVariable<SByte>, CudaDeviceVariable<SByte>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<Byte>)
image minimum and maximum values with their indices. No additional buffer is allocated.
Declaration
public void MinMaxIndx(CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.SByte> | min | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<System.SByte> | max | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxIndxGetBufferHostSize() |
MinMaxIndx(CudaDeviceVariable<SByte>, CudaDeviceVariable<SByte>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, NPPImage_8uC1)
image minimum and maximum values with their indices with mask
Declaration
public void MinMaxIndx(CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.SByte> | min | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<System.SByte> | max | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
MinMaxIndx(CudaDeviceVariable<SByte>, CudaDeviceVariable<SByte>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image minimum and maximum values with their indices with mask. No additional buffer is allocated.
Declaration
public void MinMaxIndx(CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.SByte> | min | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<System.SByte> | max | Allocated device memory with size of at least 1 * sizeof(sbyte) |
| CudaDeviceVariable<NppiPoint> | minIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| CudaDeviceVariable<NppiPoint> | maxIndex | Allocated device memory with size of at least 1 * sizeof(NppiPoint) |
| NPPImage_8uC1 | mask | If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MinMaxIndxGetBufferHostSize() |
MinMaxIndxGetBufferHostSize()
Scratch-buffer size for MinMaxIndx.
Declaration
public int MinMaxIndxGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
MinMaxIndxMaskedGetBufferHostSize()
Scratch-buffer size for MinMaxIndx (Masked).
Declaration
public int MinMaxIndxMaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormDiff_Inf(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1)
image NormDiff_Inf. Buffer is internally allocated and freed.
Declaration
public void NormDiff_Inf(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormDiff, NPPImage_8uC1 pMask)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
NormDiff_Inf(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_Inf.
Declaration
public void NormDiff_Inf(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormDiff, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffInfMaskedGetBufferHostSize() |
NormDiff_L1(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1)
image NormDiff_L1. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L1(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormDiff, NPPImage_8uC1 pMask)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
NormDiff_L1(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_L1.
Declaration
public void NormDiff_L1(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormDiff, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL1MaskedGetBufferHostSize() |
NormDiff_L2(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1)
image NormDiff_L2. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L2(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormDiff, NPPImage_8uC1 pMask)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
NormDiff_L2(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_L2.
Declaration
public void NormDiff_L2(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormDiff, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL2MaskedGetBufferHostSize() |
NormDiffInfMaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_Inf.
Declaration
public int NormDiffInfMaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormDiffL1MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L1.
Declaration
public int NormDiffL1MaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormDiffL2MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormDiff_L2.
Declaration
public int NormDiffL2MaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormInf(CudaDeviceVariable<Double>, NPPImage_8uC1)
image infinity norm
Declaration
public void NormInf(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
NormInf(CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image infinity norm. No additional buffer is allocated.
Declaration
public void NormInf(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormInfBufferHostSize() |
NormInfBufferHostSize()
Scratch-buffer size for NormInf.
Declaration
public int NormInfBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormL1(CudaDeviceVariable<Double>, NPPImage_8uC1)
image L1 norm
Declaration
public void NormL1(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
NormL1(CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image L1 norm. No additional buffer is allocated.
Declaration
public void NormL1(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL1BufferHostSize() |
NormL1BufferHostSize()
Scratch-buffer size for NormL1.
Declaration
public int NormL1BufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormL2(CudaDeviceVariable<Double>, NPPImage_8uC1)
image L2 norm
Declaration
public void NormL2(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
NormL2(CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image L2 norm. No additional buffer is allocated.
Declaration
public void NormL2(CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
| NPPImage_8uC1 | mask | Image mask |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormL1BufferHostSize() |
NormL2BufferHostSize()
Scratch-buffer size for NormL2.
Declaration
public int NormL2BufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormRel_Inf(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1)
image NormRel_Inf. Buffer is internally allocated and freed.
Declaration
public void NormRel_Inf(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormRel, NPPImage_8uC1 pMask)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
NormRel_Inf(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_Inf.
Declaration
public void NormRel_Inf(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormRel, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelInfMaskedGetBufferHostSize() |
NormRel_L1(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1)
image NormRel_L1. Buffer is internally allocated and freed.
Declaration
public void NormRel_L1(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormRel, NPPImage_8uC1 pMask)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
NormRel_L1(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_L1.
Declaration
public void NormRel_L1(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormRel, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL1MaskedGetBufferHostSize() |
NormRel_L2(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1)
image NormRel_L2. Buffer is internally allocated and freed.
Declaration
public void NormRel_L2(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormRel, NPPImage_8uC1 pMask)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
NormRel_L2(NPPImage_8sC1, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_L2.
Declaration
public void NormRel_L2(NPPImage_8sC1 tpl, CudaDeviceVariable<double> pNormRel, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
| NPPImage_8uC1 | pMask | Mask image. |
| CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL2MaskedGetBufferHostSize() |
NormRelInfMaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_Inf.
Declaration
public int NormRelInfMaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormRelL1MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L1.
Declaration
public int NormRelL1MaskedGetBufferHostSize()
Returns
| Type | Description |
|---|---|
| System.Int32 |
NormRelL2MaskedGetBufferHostSize()
Device scratch buffer size (in bytes) for NormRel_L2.
Declaration
public int NormRelL2MaskedGetBufferHostSize()
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_8sC1)
image bit shift by constant (right).
Declaration
public void RShiftC(uint nConstant, NPPImage_8sC1 dest)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | nConstant | Constant |
| NPPImage_8sC1 | dest | Destination image |
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 |
SqrDistanceFull_Norm(NPPImage_8sC1, NPPImage_32fC1)
image SqrDistanceFull_Norm.
Declaration
public void SqrDistanceFull_Norm(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
SqrDistanceSame_Norm(NPPImage_8sC1, NPPImage_32fC1)
image SqrDistanceSame_Norm.
Declaration
public void SqrDistanceSame_Norm(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
SqrDistanceValid_Norm(NPPImage_8sC1, NPPImage_32fC1)
image SqrDistanceValid_Norm.
Declaration
public void SqrDistanceValid_Norm(NPPImage_8sC1 tpl, NPPImage_32fC1 dst)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | tpl | template image. |
| NPPImage_32fC1 | dst | Destination-Image |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<sbyte> ToCudaPitchedDeviceVariable()
Returns
| Type | Description |
|---|---|
| CudaPitchedDeviceVariable<System.SByte> |
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<SByte> to NPPImage_8sC1)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_8sC1(CudaPitchedDeviceVariable<sbyte> img)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaPitchedDeviceVariable<System.SByte> | img | CudaPitchedDeviceVariable |
Returns
| Type | Description |
|---|---|
| NPPImage_8sC1 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_8sC1 to CudaPitchedDeviceVariable<SByte>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<sbyte>(NPPImage_8sC1 img)
Parameters
| Type | Name | Description |
|---|---|---|
| NPPImage_8sC1 | img | NPPImage |
Returns
| Type | Description |
|---|---|
| CudaPitchedDeviceVariable<System.SByte> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |