Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 25th, 2005, 9:04 PM   #1
jasoncrab
Newbie
 
Join Date: Aug 2005
Posts: 1
Rep Power: 0 jasoncrab is on a distinguished road
raw image conversion

hi everyone,
i am doing this project that is reauired to convert the raw image data directly the image sensor to a .bmp file. i fully understand the structure of the .bmp file. when i code this application, it doesn't work by simplely putting raw data bits into DIB data part of the .bmp file. do i need to first convert raw data bits to a specific format and then put into the file? if so , can anyone help me? i am runing out of time. thanks so much.

jason
jasoncrab is offline   Reply With Quote
Old Aug 25th, 2005, 10:11 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
"do i need to first convert raw data bits to a specific format and then put into the file?"

Yes. You need to find out how the format of the image sensor stores its information. Then you need to make an appropriate converter for that. Unless by Image Sensor you're talking about a lens on a regular digital camera, because that should use a standard RAW format and should convert to a different format with ease.

What is the name/type/brand of the camera?
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:21 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC