![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Aug 2005
Posts: 1
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#2 |
|
Professional Programmer
|
"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;} |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|