Yes, the filter is aware of image spacing. You can assume all SimpleITK or ITK algorithm are aware of Image spacing.
The recommended common convention for SimpleITK is to represent masks with 0s for the background and 1s for the foreground. For this filter technically any non-zero value is foreground.