knime-ip / knip

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

Image resizer overflow with UnsignedByteType Images #491

Open gab1one opened 6 years ago

gab1one commented 6 years ago

When resizing UnsignedByteType images there can be over and underflows when are downsampled using "Linear Interpolation" or "Lanczos Interpolation" , this seems to be a problem either upstream, or in our usage of the upstream code. I tried switching to the ImageJ-ops implementation, but it has the same problem. Problematic code can be found here: https://github.com/knime-ip/knip/blob/master/org.knime.knip.base/src/org/knime/knip/base/nodes/proc/resizer/ResizerNodeFactory.java#L394-L403

This example workflow demonstrates the problem ImageResizer-over_underflow.zip