Ask Your Question
0

how to convert .dat file into iplimage

asked 2013-05-31 11:17:17 -0600

Heshan Sandeepa gravatar image

hi, i have set of .dat files. those are some images of characters from UNIPEN character database. i want to convert them into iplimage for further processing. i use cvLoadImage function for that but, it doesnt recognize particular .dat file as an image. can someone suggest me a methode for that ? thank you

edit retag flag offensive close merge delete

Comments

2

no, opencv can't read those files.

found this

but, as the website features blink tags and NEXT screenshots. chances are low, that you can ever retrieve stuff from that timecapsule

berak gravatar imageberak ( 2013-05-31 11:35:23 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-31 11:23:15 -0600

Notas gravatar image

Find out how to read those .dat files and write a parser for it. How do these dat files look like?

edit flag offensive delete link more

Comments

well i tried this code, but its not able to recognize the dat file as an image

string ls_element;
ifstream lfile_featurefile;
lfile_featurefile.open ("D:\\imagefolder");
for(int li_i=0;li_i<10;li_i++)
{   
    getline(lfile_featurefile,ls_element);
    v[li_i]= ls_element);       
}
lfile_featurefile.close();
Heshan Sandeepa gravatar imageHeshan Sandeepa ( 2013-05-31 11:39:24 -0600 )edit

Question Tools

Stats

Asked: 2013-05-31 11:17:17 -0600

Seen: 1,050 times

Last updated: May 31 '13