apply
Syntax
Description
[
processes the array of blocked images bimArrayProc1,bimArrayProc2,...] = 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
applyfunction 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
applyfunction sets theInitialValueproperty of the output based on the type of the output:Numeric or logical outputs –
InitialValueis set to0.Categorical outputs –
InitialValueis set to the<undefined>value of the corresponding type.structoutputs –InitialValueis derived from the first block's output. All fields are set to empty.


