Ask Your Question

lwi's profile - activity

2015-05-05 11:58:42 -0600 asked a question TonemapDurand on grayscale images segfaults

I am trying to improve the local contrast of a regular 8-bit gray scale image using tone mapping.

I test with the example code (http://docs.opencv.org/3.0-beta/doc/t...) and had success with the supplied test images.

I also tested it on a single non-hdr image from that set, and it works just fine.

But if I try to process a grayscale image, it always segfaults. I tried one desaturated image from the set, and a few other random images, with the same result.

It doesn't matter if I load the grayscale image with CV_LOAD_IMAGE_COLOR.

If I take a grayscale image and add a little color to it, it does work, but it defeats the purpose.

can anyone confirm that this is a bug? or am I doing something wrong?

thanks in advance,

Lwi