11-27-2007 02:30 PM
11-27-2007 06:30 PM
I don't have IMAQ loaded so I am of limited use.
Are you keeping the color table under 256 colors?
Ben
11-28-2007 06:54 AM
I have a color table translater subvi (color_table_translater_scanner.vi) that converts the array of clusters color table format output by imaq vision ReadFile fx into the proper format required by the color table property node for an intensity graph. At least I thought it did. But the 32-bit format must be confounding it.
The issue really boils down to this - how can we open and display this image file properly in a LabVIEW intensity graph? The standard open graphic file fx Read JPEG File.vi does not seem to open this file properly which is why I went to the Vision ReadFile fx in the first place.
Sincerely,
Don
11-28-2007 10:05 AM - edited 11-28-2007 10:10 AM


11-28-2007 10:21 AM
11-28-2007 10:28 AM - edited 11-28-2007 10:29 AM
11-28-2007 10:54 AM - edited 11-28-2007 11:01 AM
Since the jpeg does not carry the color table information, I thought using IMAQ ReadFile fx, which has a 'color palette out' terminal might 'magically' interpret / create the necessary color table information (which I then could convert to the 256-bit color table format for the intensity graph using my 'color_table_translater_scanner.vi').
I just grabbed one 8-bit color plane (rather than the resolved color) to use as my raw data prior to applying the color table. That was my attempt to convert from the 24-bit to the 8-bit image (addressing your comment above regarding converting to 8-bit image).
So basically you are saying this is a hopeless exercise as far as you know?
Sincerely,
Don
11-28-2007 11:34 AM
>I just grabbed one 8-bit color plane (rather than the resolved color) to use as my raw data prior to applying the color table.
>That was my attempt to convert from the 24-bit to the 8-bit image (addressing your comment above regarding converting to 8-bit image).
You're getting single color by using this converting method. Greyscale looks better than single color.
You've to use a better method to do the convertion. If IMAQ can't do it, my Image Toolbox can. Or you can use Photoshop to do the convertion before use your VI.
>So basically you are saying this is a hopeless exercise as far as you know?
Display an 8 bit color image in intensity graph is possible.
By the way, Read Jpeg File.vi works fine for your jpeg image.
George Zou
11-29-2007 06:41 AM
Hi George:
Yes - I understand I am getting only one color plane.
With LabVIEW / Vision only, can this jpeg image be displayed in an intensity graph with the proper (original) color information? You say the LabVIEW Read Jpeg File.vi reads this image fine - but how do you display the output of this fx in an intensity graph with the original / proper color information (again using only LabVIEW / Vision, or maybe your toolkit)?
Do you know why the Vision container specifies 32-bit RGB for this image?
ps. I do have an older version of your toolkit that I bought several years back. Probably need to update it for LabVIEW 8.5.
Sincerely,
Don
11-29-2007 08:25 AM
DonRoth wrote:
Hi George:
Yes - I understand I am getting only one color plane.
With LabVIEW / Vision only, can this jpeg image be displayed in an intensity graph with the proper (original) color information? You say the LabVIEW Read Jpeg File.vi reads this image fine - but how do you display the output of this fx in an intensity graph with the original / proper color information (again using only LabVIEW / Vision, or maybe your toolkit)?