Class NPPNativeMethods.NPPi.FilterThresholdAdaptiveBoxBorder
Computes the average pixel values of the pixels under a square mask with border control. 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. Once the neighborhood average around a source pixel is determined the souce pixel is compared to the average - nDelta and if the source pixel is greater than that average the corresponding destination pixel is set to nValGT, otherwise nValLE. Currently only the NPP_BORDER_REPLICATE border type operation is supported.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class FilterThresholdAdaptiveBoxBorder
Methods
nppiFilterThresholdAdaptiveBoxBorder_8u_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, NppiSize, Single, Byte, Byte, NppiBorderType)
Single channel 8-bit unsigned threshold adaptive box filter with border control.
Declaration
public static NppStatus nppiFilterThresholdAdaptiveBoxBorder_8u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, float nDelta, byte nValGT, byte nValLE, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
NppiSize | oMaskSize | Width and Height of the neighborhood region for the local |
System.Single | nDelta | Neighborhood average adjustment value |
System.Byte | nValGT | Destination output value if source pixel is greater than average. |
System.Byte | nValLE | Destination output value if source pixel is less than or equal to average. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus |