LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert this file to other format files?

I have data files(images): 2 32-bit numbers followed by sequential 16 bits binary numbers.

Now I want to convert it to other format files(such as tiff, jpg, txt  and so on)  which can be open by other software?

How to do it? By the way, attached is a file with an .bis extension.

 

Thanks,

 

Peter

0 Kudos
Message 1 of 13
(4,579 Views)

No attachment...

 

What do the numbers represent?

0 Kudos
Message 2 of 13
(4,578 Views)

Thanks for the quick response.

I guess that is the file format.

In fact the application software was writen by other guys. So I am not quite sure of the file.

The file is an intensity  image binary file:( 512X512 pixels, and on every pixel, there is a number stands for the intensity.

Then the pixel is the x and y coordinate). So the data is a 512X512 number matrix.  Due the file with bis entension name can not be attached, I changed the extension name to txt from bis.  

0 Kudos
Message 3 of 13
(4,570 Views)

Are you sure about those being 16-bit numbers? The first 8 bytes are indeed 2 32-bit numbers referring to the X, Y dimensions (in this case 512x512). If the rest of the data is interpreted as 16-bit numbers I get 0, 30, 0, 26, 0, 23, 0, 26, ... This tells me that they're actually 32-bit numbers so that you get 30, 26, 23, 26 for an array of 262144 (which is 512x512). Plotting these on an intensity chart I get this, which sort of looks like an image:

 

 

Does this look right?

Message Edited by smercurio_fc on 04-30-2009 01:26 PM
0 Kudos
Message 4 of 13
(4,551 Views)

Thanks.

It seems that iamge you got is right. How did you get this? I can not open the file that is just a knid of fig.

Just the x and y coordinate is not 512X512 pixel. And there is not the black edge in the real image.

 

Peter

0 Kudos
Message 5 of 13
(4,531 Views)

The black border is simply due to the fact that the X and Y scale on the intensity chart is set to 600 due to autoscaling. It's not really there.

 

As for reading the file I just read the file as an array of 32-bit integers. As I indicated, I don't think the values after the first 2 32-bit numbers are 16-bit values. Basically, all I did was this:

 

Message Edited by smercurio_fc on 04-30-2009 08:27 PM
Download All
0 Kudos
Message 6 of 13
(4,527 Views)
Is it something wrong with your data? If I look on your file with a hex editor I can only see small variations in the least significant byte of each 32 bit word. I converted it to a 8 bit depth image, and plotted it. Something is visible but it is hard to see anything at all. So I guess something is wrong before you get your hands on the picture file. Just a tip


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 13
(4,500 Views)
I think the numbers are 32-bit numbers, with the 32 bits being alpha channel, red, green, and blue (aside from the first 2 which are the X and Y dimensions). The user really needs to confirm this with whovever generated the file.
0 Kudos
Message 8 of 13
(4,479 Views)

The picture is on the dark side. All bits are just a variation of the theme pitch black ;). So something is wrong no doubt.

Message Edited by Coq rouge on 05-01-2009 04:43 PM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 9 of 13
(4,467 Views)

In fact, I didn't change the file anywhere.

What I did is before the attachement of this file I change the extension name to txt because the extension .bis file can not be attached here.

 

peter

0 Kudos
Message 10 of 13
(4,439 Views)