input may be clipped according to a given bbox