add new api
fix bug--apply threshold on saturation mask