Class NPPImage_8sC3
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_8sC3 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_8sC3(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC3(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_8sC3(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC3(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_8sC3(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_8sC3(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_8sC3(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_8sC3(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_8sC3(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_8sC3(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_8sC3(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8sC3(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_8sC3(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_8sC3(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 SourceAverageError(NPPImage_8sC3, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_8sC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | 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_8sC3, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_8sC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | 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, NPPImage_8sC1, NPPImage_8sC1, NPPImage_8sC1, NPPImage_8sC1, NPPImage_8sC1, Single[,])
3 channel planar 8-bit signed color twist. An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public static void ColorTwist(NPPImage_8sC1 src0, NPPImage_8sC1 src1, NPPImage_8sC1 src2, NPPImage_8sC1 dest0, NPPImage_8sC1 dest1, NPPImage_8sC1 dest2, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC1 | src0 | Source image (Channel 0) |
NPPImage_8sC1 | src1 | Source image (Channel 1) |
NPPImage_8sC1 | src2 | Source image (Channel 2) |
NPPImage_8sC1 | dest0 | Destination image (Channel 0) |
NPPImage_8sC1 | dest1 | Destination image (Channel 1) |
NPPImage_8sC1 | dest2 | Destination image (Channel 2) |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(NPPImage_8sC1, NPPImage_8sC1, NPPImage_8sC1, Single[,])
3 channel planar 8-bit signed inplace color twist. An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public static void ColorTwist(NPPImage_8sC1 srcDest0, NPPImage_8sC1 srcDest1, NPPImage_8sC1 srcDest2, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC1 | srcDest0 | Source / Destination image (Channel 0) |
NPPImage_8sC1 | srcDest1 | Source / Destinationimage (Channel 1) |
NPPImage_8sC1 | srcDest2 | Source / Destinationimage (Channel 2) |
System.Single[,] | twistMatrix | The color twist matrix with floating-point pixel values [3,4]. |
ColorTwist(NPPImage_8sC3, Single[,])
An input color twist matrix with floating-point pixel values is applied within ROI.
Declaration
public void ColorTwist(NPPImage_8sC3 dest, float[, ] twistMatrix)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | 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_32fC3)
8-bit signed to 32-bit floating point conversion.
Declaration
public void Convert(NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC3 | dst | Destination image |
Convert(NPPImage_32sC3)
8-bit signed to 32-bit signed conversion.
Declaration
public void Convert(NPPImage_32sC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32sC3 | dst | Destination image |
Copy(NPPImage_8sC3)
Image copy.
Declaration
public void Copy(NPPImage_8sC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | dst | Destination image |
CrossCorrFull_Norm(NPPImage_8sC3, NPPImage_32fC3)
image CrossCorrFull_Norm.
Declaration
public void CrossCorrFull_Norm(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
CrossCorrFull_NormLevel(NPPImage_8sC3, NPPImage_32fC3)
CrossCorrFull_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CrossCorrFull_NormLevel(NPPImage_8sC3, NPPImage_32fC3, CudaDeviceVariable<Byte>)
CrossCorrFull_NormLevel.
Declaration
public void CrossCorrFull_NormLevel(NPPImage_8sC3 tpl, NPPImage_32fC3 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at FullNormLevelGetBufferHostSize() |
CrossCorrSame_Norm(NPPImage_8sC3, NPPImage_32fC3)
image CrossCorrSame_Norm.
Declaration
public void CrossCorrSame_Norm(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
CrossCorrSame_NormLevel(NPPImage_8sC3, NPPImage_32fC3)
CrossCorrSame_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CrossCorrSame_NormLevel(NPPImage_8sC3, NPPImage_32fC3, CudaDeviceVariable<Byte>)
CrossCorrSame_NormLevel.
Declaration
public void CrossCorrSame_NormLevel(NPPImage_8sC3 tpl, NPPImage_32fC3 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at SameNormLevelGetBufferHostSize() |
CrossCorrValid_Norm(NPPImage_8sC3, NPPImage_32fC3)
image CrossCorrValid_Norm.
Declaration
public void CrossCorrValid_Norm(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
CrossCorrValid_NormLevel(NPPImage_8sC3, NPPImage_32fC3)
CrossCorrValid_NormLevel. Buffer is internally allocated and freed.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination image |
CrossCorrValid_NormLevel(NPPImage_8sC3, NPPImage_32fC3, CudaDeviceVariable<Byte>)
CrossCorrValid_NormLevel.
Declaration
public void CrossCorrValid_NormLevel(NPPImage_8sC3 tpl, NPPImage_32fC3 dst, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | 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_C3R.
Declaration
public int DotProdGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
DotProduct(NPPImage_8sC3, CudaDeviceVariable<Double>)
Three-channel 8-bit signed image DotProd. Buffer is internally allocated and freed.
Declaration
public void DotProduct(NPPImage_8sC3 src2, CudaDeviceVariable<double> pDp)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (3 * sizeof(double)) |
DotProduct(NPPImage_8sC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
Three-channel 8-bit signed image DotProd.
Declaration
public void DotProduct(NPPImage_8sC3 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pDp | Pointer to the computed dot product of the two images. (3 * sizeof(double)) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at DotProdGetBufferHostSize() |
Filter(NPPImage_16sC3, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_16sC3 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC3 | 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_8sC3, CudaDeviceVariable<Single>, NppiSize, NppiPoint)
convolution filter.
Declaration
public void Filter(NPPImage_8sC3 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | 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_16sC3, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Three 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_16sC3 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16sC3 | 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_8uC3, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)
Three 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_8uC3 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8uC3 | 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()
FullNormLevelGetBufferHostSize()
Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel.
Declaration
public int FullNormLevelGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaxError(NPPImage_8sC3, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_8sC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | 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_8sC3, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_8sC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_8sC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | 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(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image mean with 64-bit double precision result
Declaration
public void Mean(int coi, CudaDeviceVariable<double> mean, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | Image mask |
Mean(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image mean with 64-bit double precision result. No additional buffer is allocated.
Declaration
public void Mean(int coi, CudaDeviceVariable<double> mean, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>)
image mean and standard deviation.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
MeanStdDev(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image mean and standard deviation. No additional buffer is allocated.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at MeanStdDevGetBufferHostSize() |
MeanStdDev(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, NPPImage_8uC1)
image mean and standard deviation with mask
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | 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(Int32, CudaDeviceVariable<Double>, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image mean and standard deviation with mask. No additional buffer is allocated.
Declaration
public void MeanStdDev(int coi, CudaDeviceVariable<double> mean, CudaDeviceVariable<double> stdDev, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | mean | Allocated device memory with size of at least 1 * sizeof(double) |
CudaDeviceVariable<System.Double> | stdDev | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | 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(Int32, CudaDeviceVariable<SByte>, CudaDeviceVariable<SByte>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>)
image minimum and maximum values with their indices
Declaration
public void MinMaxIndx(int coi, CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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(Int32, 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(int coi, CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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(Int32, CudaDeviceVariable<SByte>, CudaDeviceVariable<SByte>, CudaDeviceVariable<NppiPoint>, CudaDeviceVariable<NppiPoint>, NPPImage_8uC1)
image minimum and maximum values with their indices with mask
Declaration
public void MinMaxIndx(int coi, CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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(Int32, 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(int coi, CudaDeviceVariable<sbyte> min, CudaDeviceVariable<sbyte> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormDiff_Inf. Buffer is internally allocated and freed.
Declaration
public void NormDiff_Inf(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormDiff_Inf(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_Inf.
Declaration
public void NormDiff_Inf(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed Inf-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffInfMaskedGetBufferHostSize() |
NormDiff_L1(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormDiff_L1. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L1(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormDiff_L1(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_L1.
Declaration
public void NormDiff_L1(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L1-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL1MaskedGetBufferHostSize() |
NormDiff_L2(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormDiff_L2. Buffer is internally allocated and freed.
Declaration
public void NormDiff_L2(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormDiff_L2(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormDiff_L2.
Declaration
public void NormDiff_L2(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormDiff, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormDiff | Pointer to the computed L2-norm of differences. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormDiffL2MaskedGetBufferHostSize() |
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(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image infinity norm
Declaration
public void NormInf(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | Image mask |
NormInf(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image infinity norm. No additional buffer is allocated.
Declaration
public void NormInf(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image L1 norm
Declaration
public void NormL1(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | Image mask |
NormL1(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image L1 norm. No additional buffer is allocated.
Declaration
public void NormL1(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1)
image L2 norm
Declaration
public void NormL2(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
CudaDeviceVariable<System.Double> | norm | Allocated device memory with size of at least 1 * sizeof(double) |
NPPImage_8uC1 | mask | Image mask |
NormL2(Int32, CudaDeviceVariable<Double>, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image L2 norm. No additional buffer is allocated.
Declaration
public void NormL2(int coi, CudaDeviceVariable<double> norm, NPPImage_8uC1 mask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | coi | Channel of interest (0,1,2) |
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_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormRel_Inf. Buffer is internally allocated and freed.
Declaration
public void NormRel_Inf(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormRel_Inf(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_Inf.
Declaration
public void NormRel_Inf(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelInfMaskedGetBufferHostSize() |
NormRel_L1(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormRel_L1. Buffer is internally allocated and freed.
Declaration
public void NormRel_L1(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormRel_L1(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_L1.
Declaration
public void NormRel_L1(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL1MaskedGetBufferHostSize() |
NormRel_L2(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1)
image NormRel_L2. Buffer is internally allocated and freed.
Declaration
public void NormRel_L2(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
NormRel_L2(NPPImage_8sC3, CudaDeviceVariable<Double>, Int32, NPPImage_8uC1, CudaDeviceVariable<Byte>)
image NormRel_L2.
Declaration
public void NormRel_L2(NPPImage_8sC3 tpl, CudaDeviceVariable<double> pNormRel, int nCOI, NPPImage_8uC1 pMask, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
CudaDeviceVariable<System.Double> | pNormRel | Pointer to the computed relative error for the infinity norm of two images. (1 * sizeof(double)) |
System.Int32 | nCOI | channel of interest. |
NPPImage_8uC1 | pMask | Mask image. |
CudaDeviceVariable<System.Byte> | buffer | Allocated device memory with size of at NormRelL2MaskedGetBufferHostSize() |
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_8sC3)
image bit shift by constant (right).
Declaration
public void RShiftC(uint[] nConstant, NPPImage_8sC3 dest)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | nConstant | Constant |
NPPImage_8sC3 | 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_8sC3, NPPImage_32fC3)
image SqrDistanceFull_Norm.
Declaration
public void SqrDistanceFull_Norm(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
SqrDistanceSame_Norm(NPPImage_8sC3, NPPImage_32fC3)
image SqrDistanceSame_Norm.
Declaration
public void SqrDistanceSame_Norm(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
SqrDistanceValid_Norm(NPPImage_8sC3, NPPImage_32fC3)
image SqrDistanceValid_Norm.
Declaration
public void SqrDistanceValid_Norm(NPPImage_8sC3 tpl, NPPImage_32fC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | tpl | template image. |
NPPImage_32fC3 | dst | Destination-Image |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<char3> ToCudaPitchedDeviceVariable()
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<char3> |
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<char3> to NPPImage_8sC3)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_8sC3(CudaPitchedDeviceVariable<char3> img)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<char3> | img | CudaPitchedDeviceVariable |
Returns
Type | Description |
---|---|
NPPImage_8sC3 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_8sC3 to CudaPitchedDeviceVariable<char3>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<char3>(NPPImage_8sC3 img)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_8sC3 | img | NPPImage |
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<char3> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |