-9

I've a camera that comes with an c++ api and SDK. There is an callback Function that returns a C++ pointer to the starting point of some RAW Image data stored in Memory I want to 1) Get the Image 2) convert it to some image format 3) save it to hard disk

pointer is char*

How can I do it in VC++. Thanks.

EDIT: reposted question here: https://stackoverflow.com/questions/10826313/reading-image-from-memory-and-painting-it-in-a-vc-mfc-application

Community
  • 1
  • 1
Harshveer Singh
  • 4,037
  • 7
  • 37
  • 45
  • 2
    You do not mention the SDK, or what you have tried so there is nothing we can really recommend to you other than reading up on what a [Raw Image](http://en.wikipedia.org/wiki/Raw_image_format) is and using a [library](http://www.libraw.org/) to process it. – Joe May 30 '12 at 16:36
  • Ok, reposting question with details... – Harshveer Singh May 30 '12 at 16:55

1 Answers1

2

Investigate OpenCV to convert the image to some format and then save it on the disk.

You might want to take a look at this post as well.

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426