colfilt
Column-wise neighborhood operations
Syntax
Description
processes the imageB
= colfilt(A
,[m n]
,block_type
,fun
)A
by rearranging eachm
-by-n
block ofA
into a column of a temporary matrix, and then applying the functionfun
to this matrix.colfilt
zero-padsA
, if necessary.
subdividesB
= colfilt(A
,[m n]
,[mblock nblock]
,block_type
,fun
)A
into regions of sizemblock
-by-nblock
blocks to save memory. Note that the result of the operation does not change when using the[mblock nblock]
argument.
For example, if[mblock nblock]
is[3 4]
and the size of each block is 16-by-16 pixels, thencolfilt
subdivides the image into regions of size 48-by-64 pixels and processes each region separately.
Examples
Input Arguments
Output Arguments
Algorithms
The algorithm thatcolfilt
uses to process images depends on the value ofblock_type
.
Value |
Description |
---|---|
|
|
|
|
To save memory, thecolfilt
function might divideA
into subimages and process one subimage at a time. This implies thatfun
may be called multiple times, and that the first argument tofun
may have a different number of columns each time.