NPPIDILATE 8U C1R
From Jacket Wiki
Back to Jacket Function List, Image Processing Library
Apply dilation filter in a 2D region around each source pixel for GUINT8 images. Result pixel is equal to the maximum neighboring pixel values within the region defined by a structuring element and ROI, but only neighboring pixel values whose corresponding structuring element and ROI values are non-zero are considered.
Supported Syntax
DstImage = nppiDilate_8u_C1R(SrcImage, SE, Anchor_X, Anchor_Y, ROI_H, ROI_W, Offset_X, Offset_Y)
GFOR Compatibility?
No
Jacket-Specific Details
Restricted to GUINT8 real images.
Inputs:
- SrcImage - The GUINT8 source image. Dimensions must be a multiple of 4 (see more on dimension restrictions).
- SE - The structuring element, currently restricted to GUINT8 square matrices of sizes 3, 5, or 7.
- Anchor_X, Anchor_Y - offsets of the mask origin frame of reference w.r.t the source pixel (must be centered on mask dimensions, i.e. 0.5 * (Width of Mask - 1) in present implementation).
- ROI_H, ROI_W - height and width of the region of interest.
- Offset_X, Offset_Y - offsets into the source image of the region of interest.
Outputs:
- DstImage - contains the result of the filter operation: a GUINT8 image.
For Example:
>> A = guint8( grand(640,480) * 256 ); % generate random image >> B = nppiDilate_8u_C1R( A, guint8(gones(3)), 1, 1, 14, 14, 1, 1 ); % Dilate using a 3x3 SE