-
July 9th, 2009, 01:52 AM
#1
How to convert the Bayer image data to Color image
Hi all
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
Thanks in advance
Seema
Prity
-
July 9th, 2009, 09:49 AM
#2
Re: How to convert the Bayer image data to Color image
Not a clue on this one.
I am curious though why you would want to take an 8 bit image and make it a 24 bit, 24 bit files are much much larger and you still have the same picture.
-
July 9th, 2009, 10:06 AM
#3
Re: How to convert the Bayer image data to Color image
The bayer image format looks very different to a bmp, because it is a direct output from an image sensor.
Look here to understand what a bayer image comprises, and tell me ig this is what you have.
http://www.siliconimaging.com/RGB%20Bayer.htm
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.
-
July 10th, 2009, 03:39 AM
#4
Re: How to convert the Bayer image data to Color image
Hi WOF
On h/w side they told me that they are not using any API's
The camera is created by our company only.....
Prity
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|