Class NPPNativeMethods.NPPi.CopyConstBorder
Methods for copying images and padding borders with a constant, user-specifiable color.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class CopyConstBorder
Methods
nppiCopyConstBorder_16s_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int16[])
4 channel 16-bit signed integer image copy with constant border color with alpha channel unaffected. See nppiCopyConstBorder_16s_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_16s_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, short[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int16[] | aValue | Vector of the RGB values of the border pixels. Because this method does not |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16s_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int16)
1 channel 16-bit signed integer image copy with constant border color.
Declaration
public static NppStatus nppiCopyConstBorder_16s_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, short nValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region of pixels. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size (width, height) of the destination region, i.e. the region that gets filled with |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The number of pixel rows at the top of the |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the |
System.Int16 | nValue | The pixel value to be set for border pixels. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16s_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int16[])
3 channel 16-bit signed integer image copy with constant border color. See nppiCopyConstBorder_16s_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_16s_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, short[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int16[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16s_C4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int16[])
4 channel 16-bit signed integer image copy with constant border color. See nppiCopyConstBorder_16s_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_16s_C4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, short[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int16[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16u_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, UInt16[])
4 channel 16-bit unsigned integer image copy with constant border color with alpha channel unaffected. See nppiCopyConstBorder_16u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_16u_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, ushort[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.UInt16[] | aValue | Vector of the RGB values of the border pixels. Because this method does not |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16u_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, UInt16)
1 channel 16-bit unsigned integer image copy with constant border color.
Declaration
public static NppStatus nppiCopyConstBorder_16u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, ushort nValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region of pixels. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size (width, height) of the destination region, i.e. the region that gets filled with |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The number of pixel rows at the top of the |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the |
System.UInt16 | nValue | The pixel value to be set for border pixels. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16u_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, UInt16[])
3 channel 16-bit unsigned integer image copy with constant border color. See nppiCopyConstBorder_16u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_16u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, ushort[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.UInt16[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_16u_C4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, UInt16[])
4 channel 16-bit unsigned integer image copy with constant border color. See nppiCopyConstBorder_16u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_16u_C4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, ushort[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.UInt16[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32f_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Single[])
4 channel 32-bit floating point image copy with constant border color with alpha channel unaffected. See nppiCopyConstBorder_32f_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32f_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, float[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Single[] | aValue | Vector of the RGB values of the border pixels. Because this method does not |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32f_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Single)
1 channel 32-bit floating point image copy with constant border color.
Declaration
public static NppStatus nppiCopyConstBorder_32f_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, float nValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region of pixels. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size (width, height) of the destination region, i.e. the region that gets filled with |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The number of pixel rows at the top of the |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the |
System.Single | nValue | The pixel value to be set for border pixels. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32f_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Single[])
3 channel 32-bit floating point image copy with constant border color. See nppiCopyConstBorder_32f_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32f_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, float[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Single[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32f_C4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Single[])
4 channel 32-bit floating point image copy with constant border color. See nppiCopyConstBorder_32f_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32f_C4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, float[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Single[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32s_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int32[])
4 channel 32-bit signed integer image copy with constant border color with alpha channel unaffected. See nppiCopyConstBorder_32s_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32s_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, int[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int32[] | aValue | Vector of the RGB values of the border pixels. Because this method does not |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32s_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int32)
See nppiCopyConstBorder_8u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32s_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, int nValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int32 | nValue | Border luminance value. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32s_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int32[])
3 channel 32-bit signed integer image copy with constant border color. See nppiCopyConstBorder_32s_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32s_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, int[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int32[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_32s_C4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Int32[])
4 channel 32-bit signed integer image copy with constant border color. See nppiCopyConstBorder_32s_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_32s_C4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, int[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Int32[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_8u_AC4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Byte[])
4 channel 8-bit unsigned image copy with constant border color. See nppiCopyConstBorder_8u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_8u_AC4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, byte[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Byte[] | aValue | Vector of the RGB values of the border pixels. Because this method does not |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_8u_C1R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Byte)
8-bit unsigned image copy width constant border color.
Declaration
public static NppStatus nppiCopyConstBorder_8u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, byte nValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region of pixels. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size (width, height) of the destination region, i.e. the region that gets filled with |
System.Int32 | nTopBorderHeight | Height (in pixels) of the top border. The height of the border at the bottom of the |
System.Int32 | nLeftBorderWidth | Width (in pixels) of the left border. The width of the border at the right side of the |
System.Byte | nValue | The pixel value to be set for border pixels. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_8u_C3R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Byte[])
3 channel 8-bit unsigned integer image copy with constant border color. See nppiCopyConstBorder_8u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_8u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, byte[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Byte[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiCopyConstBorder_8u_C4R(CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32, NppiSize, Int32, Int32, Byte[])
4channel 8-bit unsigned image copy with constant border color. See nppiCopyConstBorder_8u_C1R() for detailed documentation.
Declaration
public static NppStatus nppiCopyConstBorder_8u_C4R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSizeROI, CUdeviceptr pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, byte[] aValue)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSizeROI | Size of the source region-of-interest. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oDstSizeROI | Size of the destination region-of-interest. |
System.Int32 | nTopBorderHeight | Height of top border. |
System.Int32 | nLeftBorderWidth | Width of left border. |
System.Byte[] | aValue | Vector of the RGBA values of the border pixels to be set. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |