Birgit,
When you threshold an image, the standard result is an image that only contains zeros and ones. If you display this using a grayscale palette, it looks black. The best palette to use is binary.
If you invert a binary image, all the values will be 255 or 254. Using most palettes, these will look the same, except for the binary palette.
The easiest way might be to set up your threshold to include the inversion - darker areas turn white, while lighter areas turn black. You can also change it so the output is zero or 255, which will look correct using any palette.
Bruce
Bruce Ammons
Ammons Engineering