search_radius = (
        tf.math.maximum(ymax - ymin, xmax - xmin) * candidate_search_scale)