1 | initial version |
Hi I think that you have to write your own code to read your image. For the first image in your file you can use something like this
imAcq =new ImageInfoCV(256,256,CV_16UC1);
ifstream fs;
float t[10];
fs.open(nomFichier,ios::binary);
unsigned short *tmp=new unsigned short[256*256*2];
fs.seekg(256);
fs.read((char*)tmp,256*256*2);
fs.close();
for (int i=0;i<256;i++)
for (int j=0;j<256;j++)
{
imAcq->at< unsigned short >(i,j)=tmp[i*256+j];
}
delete tmp;
After you can save your image in yml format. Then it depends what you want to do with your image. Some functions in OpenCV accept 16 bits images and some does not. You have to check this in doc before starting coding.
A screen copy of first image in your raw file
and yml file http://perso.univ-lemans.fr/~berger/Afsd56/test.yml
2 | No.2 Revision |
Hi I think that you have to write your own code to read your image. For the first image in your file you can use something like this
imAcq =new ImageInfoCV(256,256,CV_16UC1);
ifstream fs;
float t[10];
fs.open(nomFichier,ios::binary);
unsigned short *tmp=new unsigned short[256*256*2];
short[256*256];
fs.seekg(256);
fs.read((char*)tmp,256*256*2);
fs.close();
for (int i=0;i<256;i++)
for (int j=0;j<256;j++)
{
imAcq->at< unsigned short >(i,j)=tmp[i*256+j];
}
delete tmp;
After you can save your image in yml format. Then it depends what you want to do with your image. Some functions in OpenCV accept 16 bits images and some does not. You have to check this in doc before starting coding.
A screen copy of first image in your raw file
and yml file http://perso.univ-lemans.fr/~berger/Afsd56/test.yml