True greyscale images exhibit odd behavior. Sometimes tiv simply crashes. But most of the time the image is very strangely rendered. I think tiv is assuming 3 channels, but CImg is only providing 1, so things are mapped strangely and in some cases tiv just tries to read invalid memory.
True greyscale images exhibit odd behavior. Sometimes tiv simply crashes. But most of the time the image is very strangely rendered. I think tiv is assuming 3 channels, but CImg is only providing 1, so things are mapped strangely and in some cases tiv just tries to read invalid memory.
This is my test image.
Actual behavior:
Expected behavior: