maybe should be renamed to `get_binary_mask`.