apply
Syntax
Description
[
processes the array of blocked images bimArrayProc
1,bimArrayProc
2,...] = apply(bimArray
,fcn
)bimArray
by applying the function
handle fcn
to each block of each blocked image. The function returns
one or more arrays of blocked images containing the processed data. The specified function
handle, fcn
, must point to a user function that returns the same number
of output arguments.
[___] = apply(___,
modifies aspects of the block processing using name-value arguments.Name,Value
)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
The
apply
function determines the output size by processing the first block. If processing the first block yields an output block of the same size as the input, then the final output size is set to match the input. Otherwise, the last block is processed to determine the final output size. The first block must not be a partial block.The
apply
function sets theInitialValue
property of the output based on the type of the output:Numeric or logical outputs –
InitialValue
is set to0
.Categorical outputs –
InitialValue
is set to the<undefined>
value of the corresponding type.struct
outputs –InitialValue
is derived from the first block's output. All fields are set to empty.