Add new comment

Do I need to use dcraw_* api ?

Hello!

I've been able to debayer RAW images and "import" them into OpenCV, but I was reading through the website and now I'm wondering if I'm using the best process. Currently, I do the following:

1. open_file()
2. unpack()
3. setup imgdata.params
4. dcraw_process()
5. dcraw_make_mem_image()
6. Make cv::Mat

Am I following the recommended procedure? I saw mention of raw2image() with copy_mem_image(). Should I be using those instead? If so, why? Thanks!

Forums: