Library/ManagedCuda/NPP/NPPImage_8uC1.cs
/// <summary>
/// 1 channel 8-bit unsigned image resize. This primitive matches the behavior of GraphicsMagick++.
/// </summary>
/// <param name="dst">Destination-Image</param>
/// <param name="nXFactor">Factor by which x dimension is changed.</param>
/// <param name="nYFactor">Factor by which y dimension is changed.</param>
/// <param name="eInterpolationMode">The type of eInterpolation to perform resampling. Currently only supports NPPI_INTER_LANCZOS3_Advanced.</param>
/// <param name="buffer">Device buffer that is used during calculations.</param>
1 channel 8-bit unsigned image resize. This primitive matches the behavior of GraphicsMagick++.
1 channel 8 - bit unsigned image resize . This primitive matches the behavior of GraphicsMagick ++ .
public void ResizeSqrPixelAdvanced(NPPImage_8uC1 dst, double nXFactor, double nYFactor, InterpolationMode eInterpolationMode, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = ResizeAdvancedGetBufferHostSize(dst.SizeRoi, eInterpolationMode);
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			NppiRect roiIn = new NppiRect(_pointRoi, _sizeRoi);
			NppiRect roiOut = new NppiRect(dst._pointRoi, dst._sizeRoi);
			status = NPPNativeMethods.NPPi.ResizeSqrPixel.nppiResizeSqrPixel_8u_C1R_Advanced(_devPtrRoi, _sizeOriginal, _pitch, roiIn, dst.DevicePointerRoi, dst.Pitch, roiOut, nXFactor, nYFactor, buffer.DevicePointer, eInterpolationMode);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiResizeSqrPixel_8u_C1R_Advanced", status));
			NPPException.CheckNppStatus(status, this);
		}
public void ResizeSqrPixelAdvanced ( NPPImage_8uC1 dst , double nXFactor , double nYFactor , InterpolationMode eInterpolationMode , CudaDeviceVariable < byte > buffer ) { int bufferSize = ResizeAdvancedGetBufferHostSize ( dst . SizeRoi , eInterpolationMode ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; NppiRect roiIn = new NppiRect ( _pointRoi , _sizeRoi ) ; NppiRect roiOut = new NppiRect ( dst . _pointRoi , dst . _sizeRoi ) ; status = NPPNativeMethods . NPPi . ResizeSqrPixel . nppiResizeSqrPixel_8u_C1R_Advanced ( _devPtrRoi , _sizeOriginal , _pitch , roiIn , dst . DevicePointerRoi , dst . Pitch , roiOut , nXFactor , nYFactor , buffer . DevicePointer , eInterpolationMode ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
1 channel 8-bit unsigned image resize.
1 channel 8 - bit unsigned image resize .
dst
NPPImage_8uC1
None
nXFactor
double
Factor by which x dimension is changed.
Factor by which x dimension is changed .
nYFactor
double
Factor by which y dimension is changed.
Factor by which y dimension is changed .
eInterpolationMode
InterpolationMode
The type of eInterpolation to perform resampling. Currently only supports NPPI_INTER_LANCZOS3_Advanced.
The type of eInterpolation to perform resampling . Currently only supports NPPI_INTER_LANCZOS3_Advanced .
buffer
CudaDeviceVariable<byte>
Device buffer that is used during calculations.
Device buffer that is used during calculations .