Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.
/// </summary>
/// <param name="dst">Destination-Image</param>
/// <param name="oMaskSize">Width and Height of the neighborhood region for the local Median operation.</param>
/// <param name="oAnchor">X and Y offsets of the kernel origin frame of reference relative to the source pixel.</param>
/// <param name="buffer">Pointer to the user-allocated scratch buffer required for the Median operation.</param>
Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.
Result pixel value is the median of pixel values under the rectangular mask region ignoring alpha channel .
public void FilterMedianA(NPPImage_8uC4 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = FilterMedianGetBufferHostSizeA(oMaskSize);
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.ImageMedianFilter.nppiFilterMedian_8u_AC4R(_devPtrRoi, _pitch, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, oMaskSize, oAnchor, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterMedian_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void FilterMedianA ( NPPImage_8uC4 dst , NppiSize oMaskSize , NppiPoint oAnchor , CudaDeviceVariable < byte > buffer ) { int bufferSize = FilterMedianGetBufferHostSizeA ( oMaskSize ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . ImageMedianFilter . nppiFilterMedian_8u_AC4R ( _devPtrRoi , _pitch , dst . DevicePointerRoi , dst . Pitch , _sizeRoi , oMaskSize , oAnchor , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.
Result pixel value is the median of pixel values under the rectangular mask region ignoring alpha channel .
dst
NPPImage_8uC4
None
oMaskSize
NppiSize
Width and Height of the neighborhood region for the local Median operation.
Width and Height of the neighborhood region for the local Median operation .
oAnchor
NppiPoint
X and Y offsets of the kernel origin frame of reference relative to the source pixel.
X and Y offsets of the kernel origin frame of reference relative to the source pixel .
buffer
CudaDeviceVariable<byte>
Pointer to the user-allocated scratch buffer required for the Median operation.
Pointer to the user - allocated scratch buffer required for the Median operation .