08-13-2008 11:15 AM - edited 08-13-2008 11:18 AM
This looks like a great, if not perfect, workaround. I have not had time to get back to this yet as I have been on travel and tied up with other software issues. Thanks a lot for your effort and if I have the time to work more on this, I will post any new results.
This solution should now allow display in intensity graph since a color table is available.
Sincerely,
Don
08-21-2008 07:40 PM - edited 08-21-2008 07:43 PM
I had time this week to test this solution as far as the ability to now properly display a 24-bit png file in an intensity graph after conversion to 8-bit.
Unfortunately, we still have issues which means the color table is still not getting translated properly with regards to its application to an intensity graph property node.
I fed the 'image data' at the output of the 24-to-8 bit.vi into an 'unflatten pixmap.vi' which allows me to use the resulting 8-bit pixmap and color table outputs for the intensity graph. Here are some results:
actual image:
image displayed in intensity graph:
Do you have any thoughts on this?
Don
08-22-2008 10:05 AM
Image Toolbox supports convert from 24 bit to 8bit.
http://www.geocities.com/gzou999/imgtool.htm
08-22-2008 12:55 PM
Hi Don,
Please try the attached VI. Also, thanks for the link zou. Those VIs look pretty neat!
08-22-2008 01:51 PM - edited 08-22-2008 01:54 PM
Sincerely,
Don
08-22-2008 02:04 PM
ps. Looks like the real culprit was 'interpolate colors.' This had to be unchecked when right-clicking on the color ramp. The Zscale.MarkerVals[] property node - that just relates to the ramp.
Sincerely,
Don
08-22-2008 03:21 PM
08-22-2008 07:25 PM - edited 08-22-2008 07:26 PM
You will be safe if you add the following code to make sure the intensity graph displays the colors as accurately as possible using your algorithm.
Thanks again for your help,
Don