ants.math.quantile

quantile(image, q, nonzero=True)[source]

Get the quantile values from an ANTsImage

Examples

>>> img = ants.image_read(ants.get_data('r16'))
>>> ants.quantile(img, 0.5)
>>> ants.quantile(img, (0.5, 0.75))