Jpg to 3D plot

I have a ~3Mpixel photo (jpg) that I want to reproduce in a three dimensional plot showing pixel coordinate (x and y axes) versus intensity (z axis) - the photo is basically a grey-black (has an intensity gradient) spot on a glass plate.  In some imaging software it is possible to convert the image to grayscale (which might not be necessary - the image is already quite 'black and white'), and manually extract the intensity of each pixel (a number from the colour map: 1-256 (or is it 255??)) by hovering the mouse pointer over a very much zoomed picture.  I have done this previously with lower resolution webcam images but I can't do it for 3Mpixels!!!  Can LabVIEW help? 
I've used the read jpg VI, and get my 3Mpixels of flattened data - but the numbers don't range from 1-256 as in the imaging software.  This is not surprising since I haven't specified a colour map - how can I do this (use the grayscale colour map from the imaging software)? 
It might also help to note that the area of the photo I'm interested in (the spot) is less than 1/4 of the total photo so I could probably cut out some of the blank space (if I knew how to use 'rect' - I don't have a clue what the description for this means "specifies the rectangle whose upper-left corner is at 0,0 and that is the exact size of the pixmap" (shown in the context help) - what is a pixmap?  where are top, bottom, left and right?  Surely a rectangle has top-left, top-right, bottom-left and bottom-right?
Excel (which I normally use) can't cope with a 3Mpixel plot so it would be nice if I could also PLOT the image in LabVIEW. 
Help!  I've attached the raw jpg image and the same converted to grayscale using PhotoImpact software.
Attachments:
PICT0016.JPG ‏553 KB
GRAYSCALE.JPG ‏89 KB

Here is a screenshot of the block diagram.
Attachments:
image subset.png ‏27 KB

Similar Messages

  • Forcing Mathscript​/Matlab figure window display position

    I know in most cases I can always output the values of my mathscript/Matlab variables through the "add output and an indicator".
    But in some cases I just want the output plot to be generated from Mathscript/Matlab. especially since some MATLAB plot command cannot be output in Labvies
    I have attached two pic files for the block diagram and the plot figure generated. When the plot figure popped up, it is usually at the center of the screen. Is there a way to force the window to pop up say at the uppermost left corner?
    Attachments:
    Matlab _Mathscript Node.jpg ‏53 KB
    plot figure.jpg ‏77 KB

    put the MC_windpos.vi in ...\National Instruments\LabVIEW 8.6\vi.lib\imath\engines\lvmath\Functions
    and us the function windpos as in the attached  example
    Attachments:
    MC_windpos.vi ‏31 KB
    mathwindow.vi ‏26 KB

  • Plotting on jpg image.

    hello,
    I have a jpg image of some graph. Now i want to plot my own graph created by an applet, on top of this jpg-graph. how can i do it?
    ( normally i goto the Java forums archives section to look for answers. But in this case, i was not getting the relevant answers.)
    ANy help is appreciated.
    Thanks

    Hi again,
    I see what you mean, but now I've another question. Does that downloaded image supposed to change? According to the graph your drawing of course!
    Example:
    Supposing you're drawing a sin(x), that you would like to compare it with an already made graph of sin(x)...but now if you want to plot a cos(x), you would have to change the background image...
    Since I suppose you're trying to compare you're graphic with some other already published it seems a little bit restrictive to compare it with an image, unless your graphic can't change very much, like if you're trying to proof a physical law...but then again you're restricted to the parameters of the downloaded graphic...
    This time, maybe is me the who wrote a messy answer...
    Good luck,
    ANeto
    PS-Maybe what you want to do is to let people see, how changing the parameters in your graph, this changes in respect to the image graph...don't know...

  • Display real time data on a plot in a sub VI and main VI

    I am building a program to measure and plot real time data. Program has several steps so I build few Sub VIs to make it simple. My problem is I am plotting real time data in my SUB VI(it works fine), but in my main program when I try to get the same plot its not real time data plot. Plots appear at the end of the program.  All tips and help would be greatly appreciated. Thanks
    I have attached my main VI and Sub VI
    Solved!
    Go to Solution.
    Attachments:
    main VI.jpg ‏116 KB
    Sub VI.jpg ‏242 KB

    LabVIEW program is based on DATA FLOW, now, until the subVI will finish execution (while loop will be stopped), the execution in Main VI will not proceed any further.
    If you can pass the reference of 'XY Graph' inside the subVI, you'll be able to update the plot (placed on MAIN VI) from within subVI.
    Find attached example for your reference.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Example [LV 90].zip ‏26 KB

  • How can I plot two plots with two different Y axis,one on the left and one on the right ?(double axis)

    I have read many similar questions  on the forum but I see no best ways . I use DAQ card .LabVIEW 8.0, to measure two signals at the same time  ( ex: intensity mA (autorange),temperature:0-400oC) and I want to plot them on the same graph. I used stack plots without problems,but it doesnot satisfy me . Help me.
    Attachments:
    doulbe axis1.JPG ‏56 KB

    Ok, I did all as you told me. I got the graph that I want to create. I got two curve on the same graph but the scale is not right. Only on one Y axis the scale is correct, the other is not . ( I want to use one Y axis : 0 to 400, the other :0-10 (or autoscaleY)). The attached screen shot shows that. It is no problem when I use stack plot. Thanks.
    Attachments:
    doubleaxis.jpg ‏114 KB

  • How can I change the color of plot in a waveform chart and graph?

    There are 4 plots in a waveform chart, from plot0 to plot3, and I want to chang the color of plots dynamicly up to my needs when the VI is running.
    For example, as show in the picture, i want to set the plot0 as RED, and plot1 is BLUE, plot2 is YELLOW, plot3 is GRAY.
    If there is only one plot, i can change it's color, however when there are more than one plot, it fail.
    How can I do it?
    Thanks
    Attachments:
    waveform.JPG ‏61 KB

    Hello MilkyStone,
    first you have to set the active plot, then change its color (or other properties). All that is done using property nodes.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?

    When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisions, when using a range of 0 (outermost) to -80 (innermost).
    The magic 'magnitude axis subdivisions' variable seems to be generated in Calc Scale Specs sub-VI, and output as an array of clusters, but I can't quite see how it's created and from what.
    Please can anyone help me gain control over the number of magnitude division circles generated?
    Many thanks!

    I think if you go inside the Calc Increment.vi and modify the Increment output terminal it might change what you want to see. Try putting a multiply by 5 or ten into the case structure for when the log is false.
    Attachments:
    polar plot calc increment.jpg ‏90 KB
    modify calc increment.jpg ‏104 KB

  • Waveform Plot Name in Legend Reverts to default even if I change it with a Property node

    I have a waveform chart where I am trying to name the plots different titles, so that they appear in the plot legend with a meaningful name, rather than 'Plot 1', 'Plot 2', etc.
    However, no matter what I do, if I try to change plot 0's name to anything, the plot name changes for a split second, and then reverts to the name that it originally had.  I can succesfully control the names of the other plots, but not plot zero.  I have enclosed the VI with the graph control, which I cut and pasted from another VI. 
    It seems that the properties of this control (though it is not  a custom control) are set, and that these settings take precedence over the Propery Node Instructions.  Is this a bug, or am I missing something.
    Try it for yourself.
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI
    Attachments:
    Untitled 1.vi ‏14 KB

    Ignore attributes help says;
    If FALSE (default), the plot names in the plot legend automatically adapt to the plot names in the dynamic or waveform data attributes. If TRUE, the plot names do not adapt to the dynamic or waveform data attributes. Change this property to TRUE if you want to change the plot names. This property applies only to graphs and charts with dynamic or waveform data.
    Trying to help,
    Ben
    Message Edited by Ben on 11-28-2006 07:46 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    untitled.JPG ‏86 KB

  • I would like to change graph plot with mouse (examples ?)

    hi,
    i'am a beginner in LV and i need some help !
    well, i have an array with data (ex x=1..10 y=15,16,24,..).
    i would like to plot them on a graph and then change the points position.
    - fisrt, with my mouse (dragging)
    - second by changing values on the array. and that without stopping anything or pushing a bottom. I just want to change the values and then update the graph in real time.
    thanks a lot for your help.
    if you have examples or hints you can send them at this adress :
    [email protected]
    Attachments:
    Image2.jpg ‏17 KB

    Just put 10 free cursors on a XY graph and pass the curve thru the cursors
    locations.
    Jean-Pierre Drolet
    "jjparnet" a ecrit dans le message news:
    [email protected]..
    > hi,
    >
    > i'am a beginner in LV and i need some help !
    >
    > well, i have an array with data (ex x=1..10 y=15,16,24,..).
    > i would like to plot them on a graph and then change the points
    > position.
    >
    > - fisrt, with my mouse (dragging)
    >
    > - second by changing values on the array. and that without stopping
    > anything or pushing a bottom. I just want to change the values and
    > then update the graph in real time.
    >
    >
    > thanks a lot for your help.
    >
    > if you have examples or hints you can send them at this adress :
    > jean-jacques.parnet@steria
    .fr
    LabVIEW, C'est LabVIEW

  • Autoadjust scale limit on plot, with offset

    Hi,
    I have a plot and the y scale is set to be scaled automatically. This
    is what I want. However, the space between the current highest value of
    the graph being plotted and the current highest value on the y scale is
    too small. Is there away to give it an offset?
    For example, if a constant value of 17.8 is being plotted, the highest
    value shown on the y scale will be 18. Could I force it to be, say,
    20?  that would be 20 - 17.8 = 2.2
    So for example, can I set a permanent offset of 2.2 for this separation?
    I hope this is not too confusing... Thanks!

    Sure. First, check to see if Loose Fit is checked for the Y axis (right click on graph, Y Scale>Loose Fit). With this checked, it might be enough for your needs. Otherwise, you can use a property node to autoscale the Y axis once, then get the YScale.Maximum, add your offset, and write it to YScale.Maximum.
    Message Edited by Dennis Knutson on 03-30-200609:23 AM
    Attachments:
    Set Y Max.JPG ‏19 KB

  • Save Smith Chart to JPG

    I am using the Smith Multi Plot VI in LabVIEW 6.1
    There is an Get Image Invoke Node for the picture plot.
    I am not sure if this is what I should be using or am I going down the wrong path.
    I want to save that image to the hard drive as a JPG file.
    Solved!
    Go to Solution.

    Use that property node and then the Write JPEG File.vi under the Graphics and Sound >> Graphics Format palette.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Xy graph with dynamic number of plots

    I've got an XY Graph with some dynamic number of plots to graph. Once I know this number, I change the LegPlots property and plot the data from an array containing all the plots. The data is displayed correctly, but I get overlapping colors. Say I'm only trying to graph 3 plots. I get three lines (good) but then the three lines have 29 colors (bad), as if it's plotting all possible plots at the data points of the three. The legend updates to only show three (good), but am I missing something else? Does the LegPlot property not govern that, but only governs the legend itself?

    If the problem is the code then I'll take a look at my mess of wire, I just wanted to see if it was the LegPlots property first.
    Here's what it looks like, just in case
    Attachments:
    toomanycolors1.JPG ‏25 KB

  • Express XY plot - Overplot timeline

    I tried to plot a graph using the XY Express. The X axis is a timeline.
    The problem starts to occur after 5 minutes. The X axis (timeline) doesn't move itself, but for instance, there is no problem if the timeline axis moves. The past is not too important for me, only two minutes of history, I have to check and analize.
    You can view what is occuring as showed in the attached pictures.
    How can I solve this problem?
    Attachments:
    test1.JPG ‏12 KB
    test2.JPG ‏14 KB

    The explaination:
    There is a streaming that I connected to an Express XY graph. This streaming is linked to Y axis. The X axis is the timeline.
    The problem is that after some time, as you can see at test2.jpg the time was 00:04:10 and in the instant after that it was 00:00:00. The X axis is receiving a timestamp data, that does not goes back to the past, so, this is the problem. Why the timeline is going back to the past?
    Is there a solution for this problem?
    Thank you in advance.
    Message Edited by gborges on 06-30-2006 09:36 AM

  • XY graph plot colour

    Hi All,
    I have a problem with the XY Graph representation.
    I'm trying to show different plot with different colours in the same graph.
    I realized a VI (8.2 Labview version), but it is wrong because at every iteration all the trace are re-colored with the same
    colour.
    I have two 1D array (X array and Y array) and my goal is to show every (X,Y) point with different colours.
    Could please someone help me?
    I attached the VI and a Front Panel screenshot.
    Thanks in advance for your support,
    Francesco.
    Attachments:
    XYGraph&Color.vi ‏47 KB
    XYGraphColorFrontPanel.JPG ‏164 KB

    Please take a look at this. Hope it helps.
    Message Edited by NitinD on 28-08-2009 07:04 PM
    Attachments:
    XYGraph&Color.vi ‏21 KB
    xygraph.jpg ‏102 KB

  • Multi plot graph - auxiliary curves

    I am in trouble with a multi plot graph. There is a wave chart that I have to plot an auxiliary line when the user clicks on the graphic. I know how to get the initial point and the final point of the auxiliar line. But I don´t know how can I plot this line in the same graph.
    Any ideas, sugestions or examples?
    Thank you in advance

    Speaking only for myself, I am not sure about the nature of your request.
    Could you please post some code showing an example of what you can do now and a jpg of what you desire.
    This may help us help you.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Installing Studio MX 2004 on Mac

    I have a licensed CD of Macromedia Studio MX 2004. On the CD it says WIN/MAC, but when I look at the CD contents it is all .exe's, and I can find nothing resembling MAC installation files. 1. How the heck do I install it? 2. Will it work on Leopard 1

  • Cannot run Apatche and FullFilment services on Windows 2000.

    Hi, We are using Oracle EBS 11i with database 9i. Today morning we had face virus attacked on ERP server. We have windows env and single node installation. After restoration of backup We are unable to start the following serviices on windown env: Thi

  • 404 error after userdetails on OEM console

    Hi All, I am facing HTTP 404 Not Found page after filling username and password at https://<server-IP>:port/em/console. at command line i verified emctl status and restarted twice and dbconsole up & running. Verified in diffrent browers and desktops.

  • Have CS6 installed on Windows Vista, need to install on new Windows 8 omputer

    The disk does not launch the installer. If I manually start the installer, it asks for a serial number. When I input the serial number, it asks for the associated product and CS6 is not shown in the drop-down menu as an option. (CS6 Extended is shown

  • Corrupted regsutry recovery problems for Windows XP on system restore

    Hi. Had a spyware (Trojan) killed by the virus cleaner but upon restart it gave me a famous lsass.exe error about an application, which could not be terminated. Went on and read http://support.microsoft.com/kb/307545 but when tried to start recovery