How to convert the Bayer image data to Color image
How to convert the 8 bit Bayer image data of bmp to 24bit Colored image in vb6.0.
The bayer image data is sent to Vb from h/w, How to add header for this 24bit colored image.
And h/w sends me the 8bit bayer image data of different sizeses(ex:-16X16, 504X664, 81X98 etc) any size
the h/w can send but my vb program should convert it to 24bit bmp image.
And i have to add the header for these 8 bit Bayer image data and convert it to 24bit Colored image
The 8 bit Bayer image data comes to me continuously for every image data which comes to vb, gets just 5seconds delay.
Plz help me friends
And i need to do it early, its too urgent
To convert this to a color pixel format an interpolation process has to be executed.
Usually I wold now say VB is not good for a job like that, because it could be too slow, as you say you hace 5 seconds between images.
As far as I know, many cameras come with an API, which usually comprises some dlls which provide callable functions for programmers to use in their software.
If your camera was not equipped with such a software programming support, we should rather do some research for some available graphic libraries which have functions like bayer-to-bitmap available.
I don't know much about the algorithm how to convert bayer to bmp, but if we had a library which would at least perform a transformation from bayer to color bitmap, we could produce a bmp header and write a bmp file from that.