FUNCTION REFERENCE
imquantize
Quantize image values at ordered thresholds.
Quantize image values at ordered thresholds.
Syntax
[Q, index] = imquantize(A, levels, values)levels is a nonempty, finite, strictly increasing vector. A value equal to a threshold belongs to the lower interval. Without values, Q and index are double labels from 1 to numel(levels)+1. With values, Q preserves the class of that vector. Outputs preserve the image dimensions.
Example
[Q, index] = imquantize([0 1 2 3], [1 2], uint8([10 20 30]))Differences from MATLAB: None for supported finite inputs.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.