hdl.npufun
R2026bApply neighborhood processing and element-wise operations to incoming image or matrix for frame-to-sample conversion
Since R2022b
Syntax
Description
applies the kernel function, out = hdl.npufun(kernelFcn,kernelSize,frame)kernelFcn, to each sliding window of the
input data, frame, by using a sliding window determined by the kernel
size, kernelSize.
Use hdl.npufun to process neighborhood and element-wise operations
performed on frame-based inputs, such as filtering with a kernel.
Note
hdl.npufun is a utility function that applies a neighborhood
processing operation from another function to incoming data.
___ = hdl.npufun(___,"KernelArg",
passes the non-frame-based value arg)arg to the kernel function on every
function call. The function does not stream the value of arg.
___ = hdl.npufun(___,
specifies one or more name-value arguments. Specify the name-value arguments after all the
arguments in any of the previous syntaxes.Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Limitations
The PaddingSize name-value argument is not supported with multi-sample
cycles. When using padding with hdl.npufun, you must set the Samples per
cycle HDL configuration parameter to 1.
A value greater than one for the Stride name-value argument is not
supported with multi-sample cycles. When using non-unit stride with
hdl.npufun, you must set the Samples per
cycle HDL configuration parameter to 1.