>>> import ants
    >>> img = ants.image_read(ants.get_ants_data('r16'))
    >>> ants.iMath_truncate_intensity( img, 0.2, 0.8 )

def iMath_truncate_intensity(image, lower_q, upper_q, n_bins=64):
    """
    >>> import ants
    >>> img = ants.image_read(ants.get_ants_data('r16'))
    >>> ants.iMath_truncate_intensity( img, 0.2, 0.8 )
    """
    return iMath(image, 'TruncateIntensity', lower_q, upper_q, n_bins )