Library/ManagedCuda/NPP/NPPImage_32fC4.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>
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_32fC4 dst, NppiSize oMaskSize, NppiPoint oAnchor)
		{
			int bufferSize = FilterMedianGetBufferHostSizeA(oMaskSize);
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.ImageMedianFilter.nppiFilterMedian_32f_AC4R(_devPtrRoi, _pitch, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, oMaskSize, oAnchor, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterMedian_32f_AC4R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void FilterMedianA ( NPPImage_32fC4 dst , NppiSize oMaskSize , NppiPoint oAnchor ) { int bufferSize = FilterMedianGetBufferHostSizeA ( oMaskSize ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . ImageMedianFilter . nppiFilterMedian_32f_AC4R ( _devPtrRoi , _pitch , dst . DevicePointerRoi , dst . Pitch , _sizeRoi , oMaskSize , oAnchor , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; 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_32fC4
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 .