Library/ManagedCuda/NPP/NPPTypes.cs
/// <summary>
/// Helper function that can be used when tiling a destination image with a source image using multiple Resize calls.
/// oSrcRectROI and oDstRectROI widths and heights should remain unmodified even if they will overlap source and destination
/// image sizes.oDstRectROI offsets should be set to the destination offset of the new tile.
/// Resize function processing will stop when source or destination image sizes are reached, any unavailable source image pixels
/// beyond source image size will be border replicated.There is no particular association assumed between source and destination image locations.
/// The values of oSrcRectROI.x and oSrcRectROI.y are ignored during this function call.
/// </summary>
/// <param name="oDstRectROI">Region of interest in the destination image (may overlap destination image size width and height)</param>
/// <returns>NppiPoint object that will contain the new source image ROI offset to be used in the nppiResize call to generate that tile.</returns>
Helper function that can be used when tiling a destination image with a source image using multiple Resize calls.
oSrcRectROI and oDstRectROI widths and heights should remain unmodified even if they will overlap source and destination
image sizes.oDstRectROI offsets should be set to the destination offset of the new tile.
Resize function processing will stop when source or destination image sizes are reached, any unavailable source image pixels
beyond source image size will be border replicated.There is no particular association assumed between source and destination image locations.
The values of oSrcRectROI.x and oSrcRectROI.y are ignored during this function call.
Helper function that can be used when tiling a destination image with a source image using multiple Resize calls . oSrcRectROI and oDstRectROI widths and heights should remain unmodified even if they will overlap source and destination image sizes . oDstRectROI offsets should be set to the destination offset of the new tile . Resize function processing will stop when source or destination image sizes are reached any unavailable source image pixels beyond source image size will be border replicated . There is no particular association assumed between source and destination image locations . The values of oSrcRectROI . x and oSrcRectROI . y are ignored during this function call .
public NppiPoint GetResizeTiledSourceOffset(NppiRect oDstRectROI)
        {
            NppiPoint pNewSrcRectOffset = new NppiPoint();
            NppStatus status = NPPNativeMethods.NPPi.GeometricTransforms.nppiGetResizeTiledSourceOffset(this, oDstRectROI, ref pNewSrcRectOffset);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiGetResizeTiledSourceOffset", status));
            NPPException.CheckNppStatus(status, this);
            return pNewSrcRectOffset;
        }
public NppiPoint GetResizeTiledSourceOffset ( NppiRect oDstRectROI ) { NppiPoint pNewSrcRectOffset = new NppiPoint ( ) ; NppStatus status = NPPNativeMethods . NPPi . GeometricTransforms . nppiGetResizeTiledSourceOffset ( this , oDstRectROI , ref pNewSrcRectOffset ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return pNewSrcRectOffset ; }
Helper function that can be used when tiling a destination image with a source image using multiple Resize calls.
Helper function that can be used when tiling a destination image with a source image using multiple Resize calls .
NppiPoint object that will contain the new source image ROI offset to be used in the nppiResize call to generate that tile.
NppiPoint object that will contain the new source image ROI offset to be used in the nppiResize call to generate that tile .
oDstRectROI
NppiRect
Region of interest in the destination image (may overlap destination image size width and height)
Region of interest in the destination image ( may overlap destination image size width and height )