LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I find the image type of an image file

Solved!
Go to solution

This was posted on the LabView forum in error yesterday,  Please excuse the dual post.

 

I am trying to open a JPEG image.  If I do not know the image type (8U, 16I, GrayscaleSingle, ... etc)... is there a way to find out that information?

 

If you open the file using IMAQ ReadFile...you have to supply a Create Image input to allocate space...the input specifies a type to read...but if the type of the stored data is not the type specified in the read file you either read the file as the type specified, or the file does not produce any values...(and no error is produced).

 

Examples:

 

Store a JPEG as a Single Percision Floating point image.

 

Use a Creat File to specify that the file is read with the following types...with the following results

 

Type Specified        Type Read         Resulting image

U8                               U8                     8 bit image appears

16I                               16I

0 Kudos
Message 1 of 3
(2,605 Views)

Hummer1 wrote:

This was posted on the LabView forum in error yesterday,  Please excuse the dual post.


Well, this is still the LabVIEW forum. This seems to be a continuation of this thread. It also seems to be a duplicate of this thread. Which thread are we supposed to follow? Were you looking to post this in the Machine Vision forum?

0 Kudos
Message 2 of 3
(2,600 Views)
Solution
Accepted by topic author Hummer1

I tried to post it to the Machine Vision forum....(I thought I had posted the original question to the machine vision forum, but it wound up on the LabView forum)...I got a response which said continue the previous thread...previously...I have received comments that questions like this should be posted to the Machine Vision forum....

 

Quite frankly...I just need a little help.

 

Got any?

0 Kudos
Message 3 of 3
(2,597 Views)