drawing of points on an image

Hello world.

I hope that all do you well and happy new year.

IM maltab program which calculates, for me, the CTC for a mix of light intensities. When I run matlab I get the list of 32 points of TDC.

I managed to get the values from matlab to view lab and stor in the control box. now, I want to draw on this chart on the line, you see that is marked in the middle of the colored area. I want to attract these points one by one with different colors and to keep the previous points on the chart as well.

Please help me out and its urgent

Thank you

Caching of data in a shift register is actually quite easy, that sounds hard.  A single point of indexing and the graphic representation are similar.  The exact details of how you do it depends on the way in which your data is stored.  The XY graph will accept the data in three formats:

  1. A cluster that contains an array of values and an array of values X Y
  2. An array in which each element is a cluster of a value of X and Y
  3. An array of complex numbers - the real part is plotted on the x-axis, the imaginary part on the Y.

Options 1 or 2 would be better for your application.  I don't know what format your data is actually in.  If you have an array of values X and an array of values, option 1 is preferred.  If you have an array of pair value XY clusters, option 2 is good.  Let us look at option 1 first.

To view a single point, use Index Array on your value tables X and Y to get a single point of each.  Build table allows to convert every single point in a table (which was still just a single point).    You will need to collapse table build so it has just a single entry.  Bundle to create a cluster of your two tables.  This thread the XY graph.

For option 2, index on your points as in option 1.  Bundle to create a cluster on their part.  Build table to create a table of clusters of the cluster.  This thread the XY graph.

Good luck.

Tags: NI Software

Similar Questions

  • How to draw two points simultaneously on the image?

    I want to draw two points at the same time on an image. I tried to use IMAQ point overlay and IMAQ meter for point. But when I try to plot two points using one of these two screws, I can't find a single point is plotted. How to solve this problem?

    intensity wrote:
    I want to draw two points at the same time on an image. I tried to use IMAQ point overlay and IMAQ meter for point. But when I try to plot two points using one of these two screws, I can't find a single point is plotted. How to solve this problem? If your image is zoomed out, the size can be to small to allow a good drawing of the point. Otherwise, IMAQ ecaple point works perfectly...

  • I want to draw a line between 2 specific points on an image inserted in a Panel? Help, please!

    I am a beginner in working with LabWindows/CVI and I want to draw a line between 2 specific points on an image inserted in a Panel? Please help or examples of code.

    As evidenced by the Wolfgang there is a problem in the definition of recall. InstallCtrlCallback wants a reminder of the standard of review as a parameter: apparently you have structured your reminder callbackName on the prototype of a recall of Panel, which obviously missing the setting "control".

    In addition, the recall of control should be said somewhere before it can be used. In other words, you must add his statement before your function {main}, either in one of your include files, or directly in the code. This is the reason for the error 'found int, whereas CtrlCallbackPtr. '

    Third point: you create a new picture control in the callback assigned to the image control. And you reuse variable 'Test', which already holds a valid control ID...

    Finally: what you expect to make from '1' in callbackData parameter, given that you do not use anyway? Unless you want to adapt the behavior of recall some past in callbackData conditions, you must pass NULL as the parameter.

  • How to draw 30000 points in a 2D image quickly

    I have 30000 points, each of which has a different color. At school, he is desperately your time, but I used the property to delay the update of the panelmand before that it's a LOT better than I first fill, but it is not enough and I still can't stand it!

    No response or help will be appreciated! I'm waiting for you!

    See attachment! Thank you!

    Try the joint.

    If you can send all of your 30 k points at the same time, you can do various operations in the form of 2D paintings rather than use a loop TO draw discrete points.

    If you need to make the pieces of 300 columns at a time, I have ideas on how to do it too.  Let me know.

  • Several colors of background on a GOLD-table fill to draw graphical point * behind * the grid lines

    I have some a matter of aesthetics.

    I wrote a program that displays data for binary files. These binaries have blocks of data, an hour or two. Each piece is a playback window, and there are a handful of reading windows per day.

    The data view is in effect, what I'm working on now is a more intuitive way to choose what data should be displayed.

    My goal is to have a graph of waveform with the X axis represents a day full (0 - hr 24 hr) and is indicated on the chart what time windows are available for review, that is, data have been collected. The background of a "collected" window will be yellow (or another color), while times in the course of which no given is collected will be black. The user will then drag the sliders to select the window of what he or she wants to see the data.

    It was quite easy to achieve by drawing the curve a digital signal (1 for data collected during this period, 0 for no) and point-fill with yellow to zero. My only problem with this solution is that filling point appears on the lines of the grid, that does not look quite right.

    Y at - it an easy way to get the grid to appear at the top of the charts, or is there a way to programmatically set multiple background colors (it could do the same thing)?

    Use the property "draw pictures" and draw your own grid before image.

  • Check the point of the Image

    Hello world

    I have the point of the image as an element of database into my forms 6i application, how can I check if the image element is null or not? because I have a button to delete the image, and I want to make this active button only if there is an image in the image element.

    IF: Image_Item IS NULL THEN... END IF; is not... any idea?

    Thank you very much



    Best regards
    Damien

    you want to test this field if it is null or not... How can I implement this?

    Ali El - Hal pls try the following...

    ---- if u fetch the image first into a variabel IN WHEN-BUTTON-PRESSED Trigger as follow
    
    SELECT ur_image_item
    
    INTO : XYZ                   -- same data type
    
    FROM ur_tabel_name
    
    WHERE  EMP_ID =:EMP_ID;
    
    -- Then make ur validation
    
    IF  : XYZ IS NULL THEN
    
    DELETE_RECORD;
    
    END IF ;
    

    I hope this helps...

    Kind regards

    Abdetu...

  • Draw the relationship of the Image (ERD)?

    Lets say I have a set of steps to perform.  And each stage has a goto end define where to go in what conditions.  Each step is very basic and will not pass to one of the two places.  I would like the user to be able to view this stream and the relationship with an image that's not represented as bubbles, or boxes, and arrows are going at various other stages with the condition along the arrow.

    The deadline that I've seen is the tool yED found here, who can work on an excel file, define the elements and their relationships. Unfortunately this cannot be invoked programmatically and is somewhat what I want.

    I saw some people to write their own code to show in a picture 2D but control that looks like a lot of work.

    I currently do not have Visio, but is this an option?  It seems more killing.

    Are there other tools or options people have found, for the drawing of an image that has arrows pointing to the steps of the steps?  Currently, I have no requirements on what it looks like if fundamental is fine.  Of course, as soon as the user gets it they will probably notice.

    EDIT: It seems this type of diagram called a diagram of the relationship (ERD) entity may

    I haven't checked, but I guess it can be done with Graphviz, along the lines of Darin example here - http://forums.ni.com/t5/LabVIEW/tree-to-picture-draw-tree/m-p/2717451#M805454

  • How to draw and the positioning of images in FieldManager using the method object?

    How can I add and the positioning of my images in the position desired in FieldManagers?

    I need to add more than 2 fields (HorizontalFieldManager/VerticleFieldManager) in my application and I draw an image using the method of painting ovverided.

    NOTE: The image will be established if I do not use mainScreen.add (SeparatorField ()) or mainScreen.add (hori2), see below.

    If I use mainScreen.add (mainScreen.add (hori2) SeparatorField ())... n then the horizontalFieldManger won't be empty, drawn in the output screen.

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    
    public class BackgroundImage extends UiApplication
    {
        private Bitmap backgroundBitmap;
        private Bitmap fieldBitmap;
    
        int width, height;
    
        public static void main(String[] args)
        {
                BackgroundImage theApp = new BackgroundImage();
                theApp.enterEventDispatcher();
        }
    
        HorizontalFieldManager hori2;
    
        public BackgroundImage()
        {
            //The background image.
            backgroundBitmap = Bitmap.getBitmapResource("jalan_logo.png");
    
            MainScreen mainScreen = new MainScreen();
    
            hori2 = new HorizontalFieldManager();
    
            HorizontalFieldManager horizontalFieldManager = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT){
    
                //Override the paint method to draw the background image.
                public void paint(Graphics graphics)
                {
                    System.out.println("come to here..!!");
                    width = graphics.getScreenWidth();
                    height = graphics.getScreenHeight();
                    //Draw the background image and then call paint.
                    graphics.drawBitmap(width/2, height/2, 150, 40, backgroundBitmap, 0, 0);
                    super.paint(graphics);
                }            
    
            };
    
            //The LabelField will show up through the transparent image.
            LabelField labelField = new LabelField("This is a label");
    
            //Add the manager to the screen.
            mainScreen.add(horizontalFieldManager);
    
           mainScreen.add(new SeparatorField());
           mainScreen.add(hori2);
           hori2.add(labelField);
    
            //Push the screen.
            pushScreen(mainScreen);
        }
    }
    

    Help, please.

    I have already pointed out the problem with USE_ALL_HEIGHT in first Manager add you to the form. Drop this style bit, otherwise sublayout your screen will generate an exception, and nothing appears!

    If you want HorizontalFieldManager to be of a particular size, regardless of the height of managed fields, replace its sublayout:

    HorizontalFieldManager fieldManagerTopBanner = new
             HorizontalFieldManager()
    {
         protected void sublayout(int maxWidth, int maxHeight) {
            super.sublayout(maxWidth, maxHeight);
            int myDesiredHeight = ;
            setExtent(getWidth(), Math.min(myDesiredHeight, maxHeight));
         }
    
         protected void paint(Graphics g)
         {
              // g.setBackgroundColor(0x000000);//blue
                 g.drawBitmap(100, 150, 100, 200, jlnLogoImg, 0, 0);
    
              //g.clear();
                super.paint(g);
         }
    };
    
  • How can I programmatically draw new circles on an image control

    Hi, I'm fairly new LV and programming in general. I'm creating a program to get better. In this program, I have balls bouncing around on an image control. I use a table to keep track of the ball position (x, y) and the other to follow their speed. I want that whenever a ball reaches the border of the image, it splits into 2 balls. My problem is that I can't find a way to programmatically add these new balls for each draw circle screw must be serialy connected and then drawn on the image. What Miss me?

    You need to iterate over your table of bullets.  This means that the use of automatic indexation.  Now, you have no reason of wire with a value of N in the loop For.  And wiring of this value to the array Index function gives you invalid data it's either nothing, or the ball even if it exists in the table.

    I cleaned up a few other things in your code.

    1 cancel the function.  No need to multiply by-1.

    An array of Index 2.  It is expandable.  Drag the bottom border down.

    Your next bit of code to add would be where you decide to add another ball and put it in the Position and speed tables.

  • How can I change the size of the tool point in an image

    Dear fans of LabVIEW

    I want to have a very large 'Point tool' on the screen, in fact, it must cover the whole image as a cross. Does anyone know how to do this? I searched among the long list of the properties of the image, but have not found anything useful.

    There is no property to size of point tool that I know.

    Dan

  • Draw a rectangle outside the image in the list in the grid.

    Hi all

    I create a list with checkerboard and some time I want to see the coloum 3 and sometimes 4. And in listItemComponent, I would add that an ImageView, so grid list automatically adjust the height and width of the image according to County coloum.

    Now, I want to show a rectangel or some focus when the user select any image. SO, how can I do that.

    Please provide any suggestions.

    Thanks in advance

    1. you can use CustomListItem which has the property of highlightAppearance, but only for 10.2 and higher

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__customlistitem.html

    2 or you can write the container to your listItemComponent games, as this (is not framed but point highest complete):

    Container {
                id: highlight
                layout: DockLayout {}
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
                opacity: 0.0
                background: Your own color
    
                animations: [
                    FadeTransition {
                        id: selectedAnim
                        fromOpacity: 0.0
                        toOpacity: 1.0
                        duration: 200
                    },
                    FadeTransition {
                        id: unselectedAnim
                        fromOpacity: 1.0
                        toOpacity: 0.0
                        duration: 200
                    }
                ]
            }
    

    and then

    ListItem.onSelectionChanged: {
            if (selected)
                selectedAnim.play();
            else
                unselectedAnim.play();
        }
    

    3 or you can play with a graphics editor and make your own graph that indicates whether the element is selected.

    There are a lot of options

    4 or you can move the selected item to differentiate (sorry my English)

    scaleX: ListItem.selected ? 0.5 : 1
    scaleY: scaleX
    

    It may be useful

  • Anyway do not draw data points as nodes on a line chart?

    I have no use for the each data point = function node on my chart, and I suspect that's the reason why in my application performance is very poor. I have a line chart which can be composed of several hundreds, or even thousands, individual data points----> I can not afford to draw a node for each of these points when he didn't need to do. I just need the line between the drawn points.

    A quick ogle at the JavaDoc reveals no obvious way to do it. I can remove the Visual effect in CSS - and I have - but the nodes are still created.

    How can I prevent the JavaFX creating a node for each point?

    I have the same problem: try to use

    lineChart.setCache(true);
    lineChart.setCacheHint(CacheHint.SPEED);
    

    This should speed up your data series

  • Curves box disappears whenever I click on the hand tool to make points of an image.

    Hi, I use curves and when I apply a curve and select the hand tool and click on my image disappears from the box of curve - it applies the point on the curve area, but I have to re - select the layer with the curve to the box once again, making it work on the tedious curve.  In any case I know what I'm doing wrong?

    What is Photoshop CC? Under change (Photoshop on Mac) > preferences > Interface > Options, is "Auto-effondrement iconic panels" enabled? Uncheck the box that he and the Panel properties for curves if persists regardless of where you click.

  • Try to draw a picture on another image

    Hello!
    I'm developing a simple application and I want to have a background image static on my JFrame and establishes her other pictures. That's why I created a class defined by user (named FrontPanel such below) that illustrates that extends JPanel and overrided the paintComponent (Graphics g) method. So I draw the background image once on the JFrame, and then I want to dynamically draw the other images on the JPanel. Unfortunately what happens is that the background image disappears and only the JPanel images are shown. If I resize the window then the background image appears again (as the Repaint method is called), but the JPanel images disappear. They can not be together at the same time.


    method of painting in my main class which extends JFrame
    {} public void paint (Graphics g)
    g.drawImage (this.museum_background, 0, 20, null);
    }

    class FrontPanel
    FrontPanel class extends JPanel {
    {FrontPanel()}
    Super();
    }

    {} public void update (Graphics g)
    paintComponent (g);
    }


    method that draws the images before
    @Override
    {} public void paintComponent (Graphics g)
    super.paintComponent (g);
    If (MainWindow.DRAW_VISITOR)
    g.drawImage (MainWindow.grvisitor, 500, 100, null);
    }
    }


    Is there a way to do this? Perhaps this is not available in Java and we are allowed to paint again what we want to display? I want to avoid this for effective purposes.
    Thank you very much for your time.
    Dimos.

    Finally try.

    In a class that extends JComponent (JPanel or, if you like)

    @Override
    public void paintComponent(Graphics g) {
       super.paintComponent(g); // needed if the custom painting does not paint the complete component
       g.drawImage(backgroundImage, 0, 0, this);
       if (whateverCondition) {
          g.drawImage(overlayImage, ...);
       }
    }
    

    and call repaint() whenever the application state changes in a way that determines whether the overlay should belong.

    DB

  • How to draw two points in the xy graph?

    Hi, I need help to use the 2 different points to 2 different coordinates. Can someone help me with this? If possible, please give me a vi that also calculate the distance and the angle between the 2 points. Thank you

    it they are

Maybe you are looking for