2-D Median
R2026b2-D Median values of input array
Libraries:
Computer Vision Toolbox /
Statistics
Description
The 2-D Median block computes the median value of an input array. The median value of an array is calculated by using these steps.
The values in the matrix are sorted in numeric order.
To find the median, of an array, A, with a total number of elements, p, where p is:
Odd — Median = A(
ceil(p / 2))Even — Median = (A (p / 2) + A (( p / 2) + 1)) / 2
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"visionstatistics/2-D Median"
Example: add_block("visionstatistics/2-D Median","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a
