LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

24 bit png - display properly in intensity graph

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

Message Edited by DonRoth on 08-13-2008 11:18 AM
0 Kudos
Message 11 of 18
(1,446 Views)

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 

Message Edited by DonRoth on 08-21-2008 07:41 PM
Message Edited by DonRoth on 08-21-2008 07:43 PM
Download All
0 Kudos
Message 12 of 18
(1,419 Views)

Image Toolbox supports convert from 24 bit to 8bit.

    http://www.geocities.com/gzou999/imgtool.htm

 

 

George Zou
0 Kudos
Message 13 of 18
(1,400 Views)

Hi Don,

 

Please try the attached VI.  Also, thanks for the link zou.  Those VIs look pretty neat!

Message 14 of 18
(1,389 Views)
This is exactly what I did, except did not address the Zscale.MarkerVals[] property node.  That must be what gets the color to display properly in intensity graph.  Great work, will put in my main code and report back.

 

Sincerely,

 

Don 

Message Edited by DonRoth on 08-22-2008 01:54 PM
0 Kudos
Message 15 of 18
(1,381 Views)

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 

0 Kudos
Message 16 of 18
(1,378 Views)
Good find!  Let me know how the integration goes.  Enjoy your weekend!
0 Kudos
Message 17 of 18
(1,370 Views)

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 

 

 

Message Edited by DonRoth on 08-22-2008 07:26 PM
Message 18 of 18
(1,358 Views)