Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// image resize batch for variable ROI.
/// </summary>
/// <param name="nMaxWidth">Size in pixels of the entire smallest source image width and height, may be from different images.</param>
/// <param name="nMaxHeight">Region of interest in the source images (may overlap source image size width and height).</param>
/// <param name="pBatchSrc">Size in pixels of the entire smallest destination image width and height, may be from different images.</param>
/// <param name="pBatchDst">Region of interest in the destination images (may overlap destination image size width and height).</param>
/// <param name="nBatchSize">Device memory pointer to nBatchSize list of NppiResizeBatchCXR structures.</param>
/// <param name="pBatchROI">Device pointer to NppiResizeBatchROI_Advanced list of per-image variable ROIs.User needs to initialize this structure and copy it to device.</param>
/// <param name="eInterpolation">The type of eInterpolation to perform resampling.</param>
image resize batch for variable ROI.
image resize batch for variable ROI .
public static void ResizeBatchAdvanced(int nMaxWidth, int nMaxHeight, CudaDeviceVariable<NppiImageDescriptor> pBatchSrc, CudaDeviceVariable<NppiImageDescriptor> pBatchDst,
                                        CudaDeviceVariable<NppiResizeBatchROI_Advanced> pBatchROI, uint nBatchSize, InterpolationMode eInterpolation)
        {
            NppStatus status = NPPNativeMethods.NPPi.GeometricTransforms.nppiResizeBatch_8u_C3R_Advanced(nMaxWidth, nMaxHeight, pBatchSrc.DevicePointer, pBatchDst.DevicePointer,
                pBatchROI.DevicePointer, pBatchDst.Size, eInterpolation);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiResizeBatch_8u_C3R_Advanced", status));
            NPPException.CheckNppStatus(status, null);
        }
public static void ResizeBatchAdvanced ( int nMaxWidth , int nMaxHeight , CudaDeviceVariable < NppiImageDescriptor > pBatchSrc , CudaDeviceVariable < NppiImageDescriptor > pBatchDst , CudaDeviceVariable < NppiResizeBatchROI_Advanced > pBatchROI , uint nBatchSize , InterpolationMode eInterpolation ) { NppStatus status = NPPNativeMethods . NPPi . GeometricTransforms . nppiResizeBatch_8u_C3R_Advanced ( nMaxWidth , nMaxHeight , pBatchSrc . DevicePointer , pBatchDst . DevicePointer , pBatchROI . DevicePointer , pBatchDst . Size , eInterpolation ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , null ) ; }
image resize batch for variable ROI.
image resize batch for variable ROI .
nMaxWidth
int
Size in pixels of the entire smallest source image width and height, may be from different images.
Size in pixels of the entire smallest source image width and height may be from different images .
nMaxHeight
int
Region of interest in the source images (may overlap source image size width and height).
Region of interest in the source images ( may overlap source image size width and height ) .
pBatchSrc
CudaDeviceVariable<NppiImageDescriptor>
Size in pixels of the entire smallest destination image width and height, may be from different images.
Size in pixels of the entire smallest destination image width and height may be from different images .
pBatchDst
CudaDeviceVariable<NppiImageDescriptor>
Region of interest in the destination images (may overlap destination image size width and height).
Region of interest in the destination images ( may overlap destination image size width and height ) .
pBatchROI
CudaDeviceVariable<NppiResizeBatchROI_Advanced>
Device pointer to NppiResizeBatchROI_Advanced list of per-image variable ROIs.User needs to initialize this structure and copy it to device.
Device pointer to NppiResizeBatchROI_Advanced list of per - image variable ROIs . User needs to initialize this structure and copy it to device .
nBatchSize
uint
Device memory pointer to nBatchSize list of NppiResizeBatchCXR structures.
Device memory pointer to nBatchSize list of NppiResizeBatchCXR structures .
eInterpolation
InterpolationMode
The type of eInterpolation to perform resampling.
The type of eInterpolation to perform resampling .