Class NPPNativeMethods.NPPi.FilterGaussPyramid
Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients with downsampling and border control. If the downsampling rate is equivalent to an integer value then unnecessary source pixels are just skipped. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image. Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients with upsampling and border control. If the upsampling rate is equivalent to an integer value then unnecessary source pixels are just skipped. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image. Currently only the Replicate and Mirror border type operation are supported.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class FilterGaussPyramid
Methods
nppiFilterGaussPyramidLayerDownBorder_16u_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Single channel 16-bit unsigned Gauss filter with downsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerDownBorder_16u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerDownBorder_16u_C3R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Three channel 16-bit unsigned Gauss filter with downsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerDownBorder_16u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerDownBorder_32f_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Single channel 32-bit floating-point Gauss filter downsampling and with border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerDownBorder_32f_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerDownBorder_32f_C3R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Three channel 32-bit floating-point Gauss filter with downsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerDownBorder_32f_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerDownBorder_8u_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Single channel 8-bit unsigned Gauss filter with downsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerDownBorder_8u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerDownBorder_8u_C3R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Three channel 8-bit unsigned Gauss filter with downsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerDownBorder_8u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerUpBorder_16u_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Single channel 16-bit unsigned Gauss filter with upsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerUpBorder_16u_C3R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Three channel 16-bit unsigned Gauss filter with upsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerUpBorder_16u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerUpBorder_32f_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Single channel 32-bit floating-point Gauss filter upsampling and with border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerUpBorder_32f_C3R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Three channel 32-bit floating-point Gauss filter with upsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerUpBorder_32f_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerUpBorder_8u_C1R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Single channel 8-bit unsigned Gauss filter with upsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C1R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiFilterGaussPyramidLayerUpBorder_8u_C3R(CUdeviceptr, Int32, NppiSize, NppiPoint, CUdeviceptr, Int32, NppiSize, Single, Int32, CUdeviceptr, NppiBorderType)
Three channel 8-bit unsigned Gauss filter with upsampling and border control.
Declaration
public static NppStatus nppiFilterGaussPyramidLayerUpBorder_8u_C3R(CUdeviceptr pSrc, int nSrcStep, NppiSize oSrcSize, NppiPoint oSrcOffset, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nRate, int nFilterTaps, CUdeviceptr pKernel, NppiBorderType eBorderType)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
NppiSize | oSrcSize | Source image width and height in pixels relative to pSrc. |
NppiPoint | oSrcOffset | The pixel offset that pSrc points to relative to the origin of the source image. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
System.Int32 | nFilterTaps | The number of filter taps where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1. |
CUdeviceptr | pKernel | Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. |
NppiBorderType | eBorderType | The border type operation to be applied at source image border boundaries. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiGetFilterGaussPyramidLayerDownBorderDstROI(Int32, Int32, ref NppiSize, Single)
Calculate destination image SizeROI width and height from source image ROI width and height and downsampling rate. It is highly recommended that this function be use to determine the destination image ROI for consistent results.
Declaration
public static NppStatus nppiGetFilterGaussPyramidLayerDownBorderDstROI(int nSrcROIWidth, int nSrcROIHeight, ref NppiSize pDstSizeROI, float nRate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nSrcROIWidth | The desired source image ROI width, must be <= oSrcSize.width. |
System.Int32 | nSrcROIHeight | The desired source image ROI height, must be <= oSrcSize.height. |
NppiSize | pDstSizeROI | Host memory pointer to the destination image roi_specification. |
System.Single | nRate | The downsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiGetFilterGaussPyramidLayerUpBorderDstROI(Int32, Int32, ref NppiSize, ref NppiSize, Single)
Calculate destination image minimum and maximum SizeROI width and height from source image ROI width and height and upsampling rate. It is highly recommended that this function be use to determine the best destination image ROI for consistent results.
Declaration
public static NppStatus nppiGetFilterGaussPyramidLayerUpBorderDstROI(int nSrcROIWidth, int nSrcROIHeight, ref NppiSize pDstSizeROIMin, ref NppiSize pDstSizeROIMax, float nRate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | nSrcROIWidth | The desired source image ROI width, must be <= oSrcSize.width. |
System.Int32 | nSrcROIHeight | The desired source image ROI height, must be <= oSrcSize.height. |
NppiSize | pDstSizeROIMin | Host memory pointer to the minimum recommended destination image roi_specification. |
NppiSize | pDstSizeROIMax | Host memory pointer to the maximum recommended destination image roi_specification. |
System.Single | nRate | The upsampling rate to be used. For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and <= 10.0F. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |