This filter should be updated to allow for uint8 as well as bool for mask arrays.
This filter should be updated to allow for uint8 as well as bool for mask arrays.