Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// Copy image and pad borders with a constant, user-specifiable color.
/// </summary>
/// <param name="dst">Destination image. The image ROI defines the destination region, i.e. the region that gets filled with data from
/// the source image (inner part) and constant border color (outer part).</param>
/// <param name="nTopBorderHeight">Height (in pixels) of the top border. The height of the border at the bottom of
/// the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight =
/// oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.</param>
/// <param name="nLeftBorderWidth">Width (in pixels) of the left border. The width of the border at the right side of
/// the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth =
/// oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.</param>
/// <param name="nValue">The pixel value to be set for border pixels.</param>
Copy image and pad borders with a constant, user-specifiable color.
Copy image and pad borders with a constant user - specifiable color .
public void Copy(NPPImage_8uC3 dst, int nTopBorderHeight, int nLeftBorderWidth, byte[] nValue)
		{
			status = NPPNativeMethods.NPPi.CopyConstBorder.nppiCopyConstBorder_8u_C3R(_devPtrRoi, _pitch, _sizeRoi, dst.DevicePointerRoi, dst.Pitch, dst.SizeRoi, nTopBorderHeight, nLeftBorderWidth, nValue);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiCopyConstBorder_8u_C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Copy ( NPPImage_8uC3 dst , int nTopBorderHeight , int nLeftBorderWidth , byte [ ] nValue ) { status = NPPNativeMethods . NPPi . CopyConstBorder . nppiCopyConstBorder_8u_C3R ( _devPtrRoi , _pitch , _sizeRoi , dst . DevicePointerRoi , dst . Pitch , dst . SizeRoi , nTopBorderHeight , nLeftBorderWidth , nValue ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Copy image and pad borders with a constant, user-specifiable color.
Copy image and pad borders with a constant user - specifiable color .
dst
NPPImage_8uC3
Destination image. The image ROI defines the destination region, i.e. the region that gets filled with data from
the source image (inner part) and constant border color (outer part).
Destination image . The image ROI defines the destination region i . e . the region that gets filled with data from the source image ( inner part ) and constant border color ( outer part ) .
nTopBorderHeight
int
Height (in pixels) of the top border. The height of the border at the bottom of
the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight
oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.
Height ( in pixels ) of the top border . The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI : nBottomBorderHeight oDstSizeROI . height - nTopBorderHeight - oSrcSizeROI . height .
nLeftBorderWidth
int
Width (in pixels) of the left border. The width of the border at the right side of
the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth
oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.
Width ( in pixels ) of the left border . The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI : nRightBorderWidth oDstSizeROI . width - nLeftBorderWidth - oSrcSizeROI . width .
nValue
byte[]
The pixel value to be set for border pixels.
The pixel value to be set for border pixels .