cont_shape_var: support asymmetric template match