Return on investment with known constants

Hello

I am very new with vision dev module. Can someone help me please.

I have this vi that I want to work with the sample.

I was normally the OVERLAY of the image and draw the oval/lines on the image.

But I want to draw on the image, but he shoots in the return on investment so that I'm going to save memory?

With the oval contstants and lines in the CONTROL ARRAY.

Can someone help me by showing me in the diagrams, how would implement that using the KING?

Thank you very much.

Hey krispiekream,

I took a look at your code and made a few minor changes. When you use the ring to convert IMAQ VI KING data types don't align completely with the oval that you created. In the current configuration, you can do a little math to convert the coordinates of your lines to find the contact information of your ring. You can also add a little math for what I've done here to set up the corner of the ring and the size of the ring. An alternative is to manually create an oval ROI. This would require a bit of manipulation of data type, but it could be done. Take a look at the code, and the attached picture.

Tags: NI Hardware

Similar Questions

  • A return on investment in an array of reading?

    I have existing directories of TIFF with whom I need to only target not follow.  Attached, is an example of the beginning of a VI to read images in a table so that I can deal with them.

    To generate a rectangle for "IMAQ Extract" I need to slide a return on investment in the first picture in the table, so I have a starting point.  BUT I do not see how to then get the parameters of return on investment.  I watched the "Pattern Matching Example.vi" in the 2010\examples\Vision\...... \Labview subdirectory and I think I can sort of see how they make the return on investment with a SINGLE image, but I can't understand how to do the same with the table.

    What I'm missing here?  I figure that a return on investment should depend on the frame size-only and have no reference to array index, but I see nothing in the node of the array property.

    Thanks for any help!

    You must get the reference to the array element and then cast to the specific reference type.  Then, you will be able to read the property KING which will be common to all elements in the array.

    Of course, you must have a return on investment before that the property returns anything.

  • parallel to the process and return on investment?

    Hello

    I have two questions:

    1 how I can run two parallel processes in labview, which a single process is webcam that stream videos, and the other process is instant of the video image

    (I want a snapshot image after selecting a KING in the live camera view and keep the live camera view).

    2. How can I choose the KING will be part of the whole picture?

    Hello

    Below, I have attached a sample program that implements something similar.  It uses a structure of the event to listen to when trigger and records and image while performing a grab IMAQdx.  I'm not sure if you try to extract the KING, however, you should be able to change the structure of the event to perform processing on the image instead of save to file.  If you are looking to extract a return on investment, I recommend that you look at from Example.vi which comes with the Vision Development module.  "" "" You can find by going on Help "find examples... then navigate to Modules and Toolkits ' Vision ' functions ' Example.vi extracted.  It uses a node to invoke to get a last event to listen to when a KING is placed then passes the IMAQ Image extract.  For your application, you could implement something similar to my attachment.  Have one end grasping images then place the node to invoke to get a last event to display the images in a parallel loop to perform the extraction of KING and post-processing.  Probably, you wouldn't need a structure for this event.  Notice a 2nd IMAQ Create.VI is used in both examples to create a space of memory to hold the image of treatment/record.

    If you want to programmatically return on investment to the whole image set, it may be easier to simply identify the KING with the help of a property node and just pass the image as usual for post-processing.  Treatment that you ever want to performwill automatically be applied to the entire image.

  • How to catch the movement of return on investment when the user drags a handful of return on investment?

    Hello, I use VDM2009 with c#. I need to make some manipulations of KING and need to intercept mouse movements, but do not know what to use. For example, suppose I created a KING OvalContour and that it is a circle (width = height). I have to do 2 things: 1) when the user drags one of the 4 handles, I need to check what handle is moved so that I can drag a few adjacent programmatically so that the circle is a circle and does not become an oval.

    (2) when the user clicks/behind the center of the circle, I need prevent the update so that the circle does not move the return on investment. (It would be even better if there was a way to disable the movement of the circle and allow the scale.) I don't know what to use to accomplish this behavior and do not know how to retrieve the KING handles about which is slipped. Any help would be very appreciated. Thank you, Neville

    Hello Ben,

    Thanks again for your help.  I looked up the definitions for the ROILeft, etc., in the reference VB help as you suggest.  While many objects is similar in setting/name, it seems that these objects (ROILeft, etc.) are those who are not easy to find how to use in the c# version.  But thanks for pointing me to the help file in VB Ref.  I wish, in there wasn't one for c#... I can't understand how to search effectively in the Visual c# help file that is integrated into Visual Studio.

    Thanks for your suggestion about the return on investment.  It makes sense, and I'll keep it in mind.

    In the meantime, I found a solution to my problem.  I use c# function public bool PreFilterMessage (ref Message objMessage) for prefilter mousedown and mousemove event messages.  Once I found one, I check if the cursor is on a part of the KING that I care.  If I want to do something special, I'm doing it right here.  If I want to keep the normal behavior of the KING OR on mousedown and mousemove, I trash the message.

    It's a total pain, but it seems that functions NOR are not put in place to do this kind of things in an elegant way.  Thanks again for your help!

    Neville

  • return on investment for the profile line variable

    Hello

    I built a vi with vision assistant, where the profile of a single horizontal line is included. If the acquired image had the X, Y coordinate system, I want to extend the vi so that it updates all possible horizontal lineprofiles (X 1/Y0 to X 1/Yn) line (Y0/Xn to Xn/Yn) in this order. So I have to vary the return on investment (line), but how is this possible? I have no experience in labview, so it's hard for me with the data of different types and functions.

    Thanks for help

    Hi Blue12,

    You may not need to create a return on investment for each line. You can get information on line directly with "IMAQ-profile line. You can directly enter the coordinates of your line and out of the profile.

    Please save yourself frustration and get LabVIEW training before attempting to implement applications.

    Best regards, Topper

  • How can I change the cursor so that I can choose a return on investment?

    Hello

    I work with VDM2009 in c#.  I have an image viewer and have added programmatically a return on investment.  When I go to choose the return on investment to move around, the cursor looks like a helping hand and cannot select anything.  I've tried to set imageViewer1.Cursor = Cursors.Default; but that has no effect.

    How can I select/manipulate my KING created programmatically with the mouse?

    Thank you very much
    Neville

    Hi Neville, according to me, that the default is image Pan, which is handmade. I think you do a right click on the image window you should be able to select another tool. Alternatively, you can programmatically the cursor to one of the values of the correct cursor types.

  • How to save an image from a return on investment and then convert it into an array of pixels?

    I work with a camera CCD USB and LabView 2012 on a project. With the help of some drivers supplied with the instrument (Imaging CCD USB drivers source) that I created a program to display a picture in live stream then grab a picture and select a return on investment. I need to convert this KING of a new image and then save it, but I can't do it. I also have to convert an array of pixels in the image of the KING, and I don't know how to do that either. Any help is appreciated! I have attached my attempt to the program so far.

    Hello Kloram,

    Here are some examples that I found from our pages OR community who perform your desired actions.

    [1] create a picture of KING

    [2] create new Image of user selected KING

    Then simply use the following functions for the Vision Development Module in conjunction with the previous to your application examples:

    -IMAQ ColorImageToArray

    -IMAQ ImageToArray

  • How to change the input descriptor of return on investment?

    I am a beginner of Labview Vision users. I need to convert a RGB image into binary image and superimpose a few lines on the binary image at random and then measure the length of the ordinate at the origin of the image. I came across the problem of changing of return on investment by incorporating a few random coordinates (by this contact information, I can generate random lines.). But I could not find how to change the coordinates or import data from an excel file coordination.

    Any help is appreciated.

    Jian

    If you have the package of Vision, you can use the line to convert to the KING function and the power cable in the KING of the image property.  If you do not, you will need to build your own KING.  Given the coordinates of line (X 1, Y1) and (X 2, Y2) the entries in the return on investment are the following.

    Global rectangle - table of 4 elements with values [X 1, Y1, X 2 + 1, Y2 + 1]

    Countours - single element (table 4 external elements, line [X 1, Y1, X 2, Y2])

  • multiply the channels with a constant

    Hello

    I want to multiply all my channles with a constant value say 4.3

    So I thought to generate a new string with all its value as 4.3 and multiplying this channel with my current channel. I used

    Dim MyChnName, I have

    MyChnName = ChnAlloc ("Mass", 2400, 1, DataTypeFloat64, "Numeric") ' Allocate channel of text
    For i = 1 to 200
    CHT (i, MyChnName (0)) = "4.3" & I "create value of text
    Next

    But it generates values as 4.31, 4.32... 4.3XXX

    I want that all the values are constant. How can I modify my code to do this?

    Or multiply all my channle with 4.3 values directly (without creatine a channel) how to move forward with this?

    Hi Rash.patel,

    Do you really speak a text - which means «abc123...» » ? According to me, not because you set a digital channel with chnalloc. And in the next line, you connect traction chains:... = '4.3' & I. VBS connection string is just the strings together as "abc" & "123"-> "abc123". I think that this is not what you want to do. If you use a loo, you must set:... = 4.3 + i

    But in general, you must use the DIAdem Standard mathematical functions because they are much faster than looping through the unique string values.

    In the DIAdem mathematical basis, you will find the functions you need, like scaling, offset correction...

    Greetings

    Walter

  • Several return on investment of the same size

    Hi everyone again. I have questions about the plan KING

    1. they say that you can make several KING by clicking the ctrl button and it works. You can make several KING out of it.

    Question: a. how you can extract one of each KING?

    b. are extracts KING represented by a table of coordinates or coordinates cluster?

    c. is there a such that any part VI of the KING will have the same size and resolution) without resizing the return on investment)?

    d. can you get a return on investment and use the size of this KING as the size of the next KING?

    example: I did a 10 x 10 pixel KING in the first sample, the next King, a box of 10 x 10 will come out just so all I have to do is to move the box to the desired region.

    PS maybe the same problem is already posted so I hope you can post the link of the subject then it is easy for me to find once again.

    Thanks again for all the help I receive.

    BREIN

    A BEGINNER OF LABVIEW

    Hello Brein,

    1. Yes, the Kings are stored in the form of clusters, and you can extract all the information from KING using the description of KING.

    2. you can save description of RIO in the cluster, then reuse them in your program. Here is a link to an example of use of the event structure to display pre-determined KING.

    http://decibel.NI.com/content/docs/doc-4779

  • How is it possible to specific your own, with the constant help of string to locate a directory where the NEW

    How is it possible to specific your own, with the constant help of string to locate a directory where the NEW
    created the folder to save?


  • How to set a return on investment by program from four points

    Hello

    I'm working on a program that detects four edges and located at the four corners of the intersection of these lines.  I want to set a return on investment of these four points, but I'm having a hard time finding the right tool.  When I use the rectangle tool KING (polygon), lines don't end up matching the edges because simply from the top left and lower right corners as well as a rotation, and when he turns, the KING turns off the corners that I entered.  How to create a return on investment simply based on four corners?  It seems like it should be a very simple task, but I can't understand it.

    Thank you

    Paul

    Example of christophe should be exactly what you need. I advanced and backed up so that you can use in LabVIEW 8.6.

    Paul

  • I tried to update to IE9 and he returned as failed with error 800F080D. Why is - this happenning

    I tried to update to IE9 and he returned as failed with error 800F080D. Why is - this happenning

    Hi Tena Guevara,

    1. did you try to install the stand-alone package of IE 9?

    I suggest you to check if you have all the prerequisites installed for internet explore 9 http://support.microsoft.com/kb/2399238

    Alternatively, you can try to install the stand-alone package of IE 9 and check: http://windows.microsoft.com/en-US/internet-explorer/downloads/ie-9/worldwide-languages

    Refer also to the links below and check if you have done all the requirements before installing internet explore 9-
    Solve the problems when you can't install Internet Explorer 9

    http://support.Microsoft.com/kb/2409098

    How to install or uninstall Internet Explorer 9?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-i-install-or-uninstall-Internet-Explorer-9

    Hope this information is useful.

  • When I type (C) in Excel, it returns a c with a circle around him like copyright. I want to how to replace the copyright symbol (C)?

    When I type (C) in Excel, it returns a c with a circle around him like copyright.  I want to how to replace the copyright symbol (C)?

    Excel:

     

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Office newsgroups

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Excel.misc&lang=en&CR=us

    Discussions in Excel General questions.

    They will help you with your questions Excel when repost you in the Office discussion groups above.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to make the curved arrows (arcs) with known angles

    I need to be able to make of many arrows curved with known angles.  Which means, I need the line/line arrows start at some point and the arrow head to put an end to another, but tilted at 45, 60 and 90 degrees between the point of departure.  Similar to this:

    arrows.jpg

    As you can see, all arrows point "beyond the Rainbow" at the same angle.  Is there a set the angle of the arrow head?

    Simply create arrowhead separately as a symbol and the snep did at the end of a single line on a path.

    Mylenium

Maybe you are looking for

  • Can't do the microsoft update error code 0 x 80090305

    Running XP Pro SP3 - cannot do the Microsoft Update error code 0 x 80090305

  • Veriton L460 does not start

    Hi all, I just took a L460 and I can enter the BIOS set up, the powers of HARD, works from memory, the work of fans, the works of CD drive. I can load a CD to install an OS, but after that it crosses it is it crashes just straight up. If I try to loa

  • \\WINDOWS\system32\...\nwlnkipx.sys

    I constantly receive notice of virus-> \\WINDOWS\system32\...\nwlnkipx.sys My virus program (avast) fails to remove this I'm not a computer expert Can someone help me?

  • Unable to start in the Office: black error screen

    Original title: vista does not start, the keyboard seems to not work Vista Start, the dell screen comes the progress bar goes to 100% then I get a black screen that shows the time and the cut off date. I tried to do a reinstall but the keyboard do no

  • search for a job

    I know c ++ backwards. Looking for a job. I posted on the forum of devolopement Java. But they said, there was not much use for this. The Tablet is very good. All I want is to make some man as soon as possible. Familiar with the classes even the STL