LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trouble reading high resolution PNG file

Interesting idea about connecting the scanner directly and skipping the PNG file altogether.  I will have to look if there is an existing Labview driver for my scanner.

 

The only formats my scanner can output are JPG, PNG, and TIFF.  JPG are lossy and when i tried saving the image from my scanner it would default to 24-bit color depth even for black and white scans, so the file size was closer to 90MB.  I went with PNG because it is lossless and the output went to 1-bit color depth, so it was a much smaller file output.

 

 

Splitting the file into a bunch of smaller files might be a solution.  I am going to look into that option as well.

 

Thanks everybody for your input.

-Chris

0 Kudos
Message 11 of 15
(1,531 Views)

@YoMetric wrote:

Interesting idea about connecting the scanner directly and skipping the PNG file altogether.  I will have to look if there is an existing Labview driver for my scanner.

 

The only formats my scanner can output are JPG, PNG, and TIFF.  JPG are lossy and when i tried saving the image from my scanner it would default to 24-bit color depth even for black and white scans, so the file size was closer to 90MB.  I went with PNG because it is lossless and the output went to 1-bit color depth, so it was a much smaller file output.

 

 

Splitting the file into a bunch of smaller files might be a solution.  I am going to look into that option as well.

 

Thanks everybody for your input.

-Chris


 

could you try reading your file as binary?

 

2015-07-18_readPNG-binary.png

0 Kudos
Message 12 of 15
(1,502 Views)

@alexderjuengere wrote:

 

could you try reading your file as binary?

 

 


 

PNG is compressed data.  You won't get anything good out of it unless you decompress it first.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 13 of 15
(1,497 Views)

@CoastalMaineBird wrote:

PNG is compressed data.  You won't get anything good out of it unless you decompress it first.


 

ok, I guess you were right ...

 

2015-08-07_readPNGchunks.png

0 Kudos
Message 14 of 15
(1,337 Views)

YoMetric, you might want to take a look at ImageMagick <http://www.imagemagick.org/script/api.php >

That page claims to have a LabVIEW interface for the core manipulation tools, and it's free.

It also claims the abilty to deal with multi-GByte images.

 

I haven't used it, so I don't know anything beyond the claims on that site.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 15 of 15
(1,304 Views)