04-07-2013 08:29 PM
Hi all,
I know it would be an easy question to answer to most of you, but it does give a hard time here. I want build a simple beam profiler for the lasers in my lab (see attached vi). My issue is that ideally I would want the 3d plot (which is in gray at the moment) to be in false color (kind of like the one shown in the example.jpg). Would anyone have an idea on how to do this?
I include in my attachments a picture of an actual beam, in case you want to run the code. Please excuse the messy code, it's the first time I'm working with the IMAQ pallette and simply wanted to see what can be done with it. Please tell me if you need more info and thanks in advance 😄
Solved! Go to Solution.
04-08-2013 01:23 AM
Hello Skata,
Right-Click on Image Display "Image3" --> Palette --> Rainbow.
04-08-2013 02:36 AM
Damn, that was easy 😛
Thanks a lot!
04-08-2013 02:41 AM - edited 04-08-2013 02:55 AM
Would you know whether there is a way to rotate the created object the way you would do in 3dsurface plot, rather than having to use set orientations?
Also, when you try to save the image, although it is displayed in the rainbow palette, it's being saved still in grayscale...
04-08-2013 03:02 AM
Ok, found a the workaround for saving in the palette I want. Still haven't managed the rotation feature though...
04-09-2013 01:40 AM
Hello Skata,
Rotation is not possible with the method you are currently using.
To make an rotatable intensity plot you have to convert the image into XYZ values.
Were X and Y are the position of the pixels and Z is the intensities.
You can get the Z values using the "ImageToArray" function.
Than use this XYZ data to plot a "3D Graph". This graph can be rotated using the mouse cursor.
04-09-2013 02:52 AM
Hi Heinen,
Thanks for your reply. My issue is that have tried that, but with no luck. I guess I'm stuck with the way the XYZ values need to be formatted for the 3dSurface plot. A hand there would be much appreciated 😄