08-11-2013 10:03 AM
Hello friends.. I am working on a project which is about the particles, about image processing. First part of the project that I need to draw a figure sth like below. I tried to use vision tools but ı can not find anything to help me. Can anybody lead me about the situation. How can ı draw such a figure. What I need to use ?
I did it using matlab but I need it with labview . Thank you...
08-11-2013 10:11 AM
Well, you did not show any scale that maps Z to a color, so all we can do is guessing. What is the function Z(x, y)? Is it a 2D gaussian?
After you have the model, all you need is create a 2D array and display it in an intensity graph. Change the Z colors according to the desired scale.
08-11-2013 10:21 AM
I thinhk it is 2d gaussian. I have never interested in colors with arrays. How can I use them together ? where do I find the colors ?
Thanks for your answer..
08-11-2013 10:35 AM - edited 08-11-2013 10:35 AM
All you need is a 2D array with your calculated z-values once you know what the model is ("I think it is 2D gaussian" is not specific enough!).
Wire the 2D array to an intensity graph and set the colors as described here.
08-17-2013 04:49 AM - edited 08-17-2013 05:08 AM
hello again altenbach,
I have some matlab codes , here , about the ideal particle image. I need to convert them into labview codes. I am so new in labview that is why ı am asking. It is possible to convert whole codes ? or ıs there any way to do that same process, for example using vision development tool.
thank you..
08-17-2013 04:54 AM
for example here ; I do not know how to write sth like
if ~exist('axistype') axistype=['image']; end
in labview. how can I create exist function in labview ?
08-19-2013 05:21 PM
Hello u_di,
The "exist" function in MATLAB® simply checks if an object exists. See the following link for details: http://www.mathworks.com/help/matlab/ref/exist.html
There is not a one to one equivalent function in LabVIEW. Objects in LabVIEW are instantiated by the wires used to refer to them. As such, unless you manually destroy an object, it is unlikely you will need to check if anything explicitly "exists." You can perform checks to see if data exists in the way you expect it or need it to, which would differ for different objects or data types. For example, the Not a Number/Path/Refnum? Function checks whether a reference to an object still resides in memory or has been closed.
(MATLAB® is a registered trademarks of The MathWorks, Inc.)