knime-ip / knip

KNIME Image Processing Extension
https://www.knime.com/community/image-processing
49 stars 11 forks source link

Inverter creates wrong value range #470

Open imagejan opened 7 years ago

imagejan commented 7 years ago

When inverting images using the Inverter node, FloatType images with values in the range [0; 1] (e.g. probability maps from Ilastik Headless) will result in images with the range [-2; -1], whereas I'd expect them to have range [-1; 0].

stelfrich commented 7 years ago

whereas I'd expect them to have range [-1; 0].

That's because FloatType is signed and is handled according to the -1*value - 1 rule. I would, as a rather general remark, expect the inversion to happen on the values instead instead of types. Any remarks?