Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// Result pixel value is the median of pixel values under the rectangular mask region.
/// </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.
Result pixel value is the median of pixel values under the rectangular mask region .
public void FilterMedian(NPPImage_8uC3 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = FilterMedianGetBufferHostSize(oMaskSize);
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.ImageMedianFilter.nppiFilterMedian_8u_C3R(_devPtrRoi, _pitch, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, oMaskSize, oAnchor, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterMedian_8u_C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void FilterMedian ( NPPImage_8uC3 dst , NppiSize oMaskSize , NppiPoint oAnchor , CudaDeviceVariable < byte > buffer ) { int bufferSize = FilterMedianGetBufferHostSize ( oMaskSize ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . ImageMedianFilter . nppiFilterMedian_8u_C3R ( _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.
Result pixel value is the median of pixel values under the rectangular mask region .
dst
NPPImage_8uC3
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 .