Half sized image with raw output color

Hi all, i perform this:
iProcessor.imgdata.params.half_size =1;
iProcessor.imgdata.params.output_color = 0;

That means i want a half sized output image with raw color. The resulting image gives undefined behavior that reminds me of severe memory leakages/problems. Technically, it should work, also given the fact that the dcraw equivalent command "dcraw -h -o 0 " gives a normal result.
If i change the output_color to any other variable than 0, it works.



dcraw_emu -o 0 -h works fine

dcraw_emu -o 0 -h works fine for me

could you please specify more details?

-- Alex Tutubalin

the emulator works fine for

the emulator works fine for me too. But my code is simple and still fails for half size and raw color. Maybe the dcraw make mem image function?

// call for postprocessing utility
int check_makemem;
image = iProcessor.dcraw_make_mem_image(&check_makemem);
Mat image_rawRGB(cv::Size(image->width, image->height), rawBitDepthCV, image->data, cv::Mat::AUTO_STEP);

This gives out a mangled image if half size is on and raw colors..