The actual purpose of this method is to output a binary mask[0,1].