Saving a rectangle ROI in a txt and it restores me an oval, why?

Hi !
First all, thanks for reading me.
I've got a problem with LabView Vision.
I needed to find the center of a circle area, so I started using the oval function to draw and wanted to extract the center of it, but I was not able to get the coordinates of the ROI, because I didn't find something like "ROI To Oval" but I was able to save the "Oval" drawed in a txt and file and get it restored after I wanted to do it again.
Then, I changed it to an Annulus, and was able to extract the center of it, but I was not anymore able to restore it from the txt in which coordinates are saved.
Later on, I changed it to a Rectangle, I was also able to extract the center, but the saved ROI from the txt file is working but drawing me an OVAL and not a RECTANGLE. The coordinates are corrects, but I really wonder what I missed.
I tried a lot of solutions, but none worked atm, that's why I'm posting here.
A part of my code is attached.
Can anyone help me?
Thank you very much,
Sébastien
Attachments:
SaveROI.png ‏34 KB

Hi,
Sorry for my late reply.
I can't join the whole VI for professionals reasons, but I created two which contain my problem.
You need the 2 following VI, and start SaveROItoTXTasRectangle.vi
1) Select a video in the path system (.avi would be better I think)
2) Draw a rectangle
3) Save it as default area when it's asked.
4) Lauch again the program
5) The default area will have the same coordinates but it will suggest an Oval and not a rectangle as I wished
I don't know what I have to change, even if I have an idea that problem is that I don't define the type to "Rectangle - Rotated", but no idea how to set it differently.
Thank you,
Regards,
Sébastien.
Attachments:
LoadROI.vi ‏25 KB
SaveROItoTXTasRectangle.vi ‏21 KB

Similar Messages

  • My ipod touch keeps shutting down to a black screen and i have to keep holding the sleep and home button to get restarted  I have updated and also restored it ., anyone know why this is happening and what i can do to fix it. Help frustrated

    can anyone help me  . my ipod touch keeps freezing and i have to hold the home and sleep button to get it started., i restored it and also updated it . Any answers . Thanks

    If you still have the problem after restoring to factory defaults/new iPod you likely have a hardware and an appointment a the Genius Bar of an Apple store is in order.

  • How can I read a column of numbers saved as .txt and display as a wave?

    Hi Tiano
    LabVIEW General
    Ask:
    Please enter a one-line summary of your question
    Resources
    • Technical Support
    • Development Library
    • Measurement Encyclopedia
    "data/time reading into chart"
    "In the attached file, I am trying to read the first column of data, and the next column is the value on the x-axis I want it plotted at. How do I read two columns of different data? I have looked in the books I have access to and the help within Labview but am still having trouble.
    Thank you,
    Ellie"
    data_set (Plain Text, 3K)
    -posted by Ellie on 9/11/2001
    markwysong on 9/11/2001 answered:
    "Ellie,
    The first thing you need to do is to read your file in as a spreadsheet file. Then, you display it in a chart.
    That sounds simple, but looking at your dataset, there's a few things you should know. First, the "read from spreadsheet VI" is looking for data in columns, like your data set, but columns separated by tabs. Therefore, your data must be saved that way; currently, it doesn't seem that it is. Another thing; you must skip the header portion (labels) of your file when reading.
    Next, it would be easier if your time was first, and your data was second in your columns, but that can be overcome. In the VI I am including, I have copied your data set into a file called data.txt, and I've removed the header and separated the columns with a tab. Then, I read in the data, and I break out each column so I can put the time first, and then I combine them again into a cluster so it can be displayed on an XY chart.
    Take a look!
    Mark"
    Graph data from file (Binary Executable, 20K)
    data.txt (Plain Text, 3K)
    This answer has not yet been rated.
    Rate this answer:
    Mikael Garcia on 9/11/2001 answered:
    "Ellie,
    Here is one way of doing it. Take a look at this example (compatible with LabVIEW 4.1 and up) and post comments if you need further help. Basically, I read your file as text; split it; and make use of the Spread sheet string to Array function before I plot your data. Hope this helps./ Mikael"
    ExtractAndPlot.vi (Binary Executable, 36K)
    This answer has not yet been rated.
    Rate this answer:
    Ellie on 9/12/2001 commented:
    "Thank you. I am trying to get the data from the text file into a string and am having some trouble. I am reading the file from a spreadsheet, and sending the output array to "Array to Spreadsheet String", but I'm not sure this is what I want to do. Is there another way to make an array into a string? Do I need to reformat my data?
    Can you offer me any advice?
    Thank you."
    data_1 (Plain Text, 3K)
    Mikael Garcia on 9/12/2001 commented:
    "I noticed that you changed your file format according to what was said here. Yes, this new file of yours is easier to use but your original file does not have to be changed. Take a look at this example. I now added the file-read part. It will give you a dialog to locate your data file (use this VI with your original file with the header since this VI includes a string split function). Hope this helps. /Mikael"
    ReadExtractandPlot.vi (Binary Executable, 35K)
    Niko on 9/12/2001 answered:
    "If you read this file with the "read from spreadsheet file.vi" you get you
    data in a 2-D-array. Now it is easy with array- and cluster-functions to
    handle the data the way you want.
    hope that helps, Niko"
    This answer has not yet been rated.
    Rate this answer:
    I intend to read from a .txt file that contains a column of numbers. After reading I want to display it as a waveform. In fact the numbers represent points along a waveform/graph of Flow vs. time. Thus I want to have this info in the chart or graph with flow in the y0axis and time in the x-axis. Can someone give me some detailed help please? Thank you in advance.
    Attachments:
    The_file.txt ‏18 KB

    All you have to do is use Read From Spreadsheet File.vi that's on the File I/O palette. For your example .txt, set the Transpose input to true and wire the First Row output to a waveform graph. The only problem I see is that since your file doesn't contain any sampling info, the time axis will be relative. If have that information elsewhere, then you can put a build waveform function between the read and the graph. Wire the First Row output to the Y input Build Waveform and add t0 and dt values. I've attached an example.
    Attachments:
    Graph_from_text.vi ‏29 KB

  • Help needed saving text members to TAB delimited txt file

    I have 7 text memebrs each containing several lines of text
    that were pulled in and sorted from a TAB delimited text file.
    What I'd like to know is, is there any way to convert those
    text members back into the TAB delimited format from which they
    came? I'd like to be able to pull in the data, let it be edited to
    some extent, then saved back out..... and I'm not too sure how to
    go about it.
    Example of txt file:
    ID_No Name Age
    1 Phil 26
    2 Sam 34
    3 Mary 21
    They're then sorted in to text files of ID_No, Name, and Age,
    with the lists of the relevent items in each.
    Like.....
    ID_No
    1
    2
    3
    Name
    Phil
    Sam
    Mary
    Age
    26
    34
    21
    Certain lines of these text members change, depending on what
    the user selects. I'd like to put these sections back in their
    original TAB delimited format, but with any changed data replacing
    the old, so next ime the app is opened the new data is pulled in
    from the txt file.
    I know I'm probably going about this the wrong way, but it's
    the only way I know so far lol
    Any ideas?

    global filex, idlst, namelst, agelst
    on readtabline (str)
    tmpstr = ""
    y = 1
    repeat with x = 1 to the number of chars in str do
    if str.char[x] = tab then
    case y of
    1 : idlst.add (tmpstr)
    2 : namelst.add (tmpstr)
    3 : agelst.add (tmpstr)
    end case
    tmpstr = ""
    y = y + 1
    else
    tmpstr = tmpstr & str.char[x]
    end if
    end repeat
    agelst.add (tmpstr)
    end
    on exitFrame me
    idlst = [] --set up some lists to hold that data we read in
    namelst = []
    agelst = []
    filex = new (xtra "fileio")
    filex.openfile ("t.txt", 1)
    indata = filex.readfile() -- read the data in
    filex.closefile()
    filex = void
    repeat with x = 1 to the number of lines in indata do
    readtabline(indata.line[x]) --seprate it into its diffrent
    elements
    end repeat
    -- you now have your data sorted in to three list of id, age
    and name
    -- so you would now do what ever editing you wanted to do
    --now to write it out to a new file
    filex = new (xtra "fileio")
    filex.createfile (the moviepath & "tout.txt")
    filex.openfile (the moviepath & "tout.txt", 2)
    repeat with x = 1 to idlst.count() do
    filex.writestring (idlst[x] & tab & namelst[x] &
    tab & agelst[x] & return)
    end repeat
    filex.closefile()
    end
    I tested this on your exact scenario and it worked a brezze
    hope it helps
    Regards
    David

  • Count moving object (Inter the ROI from one side and leave ROI from other side)

    Hello All
    I want to design program that can counting moving object that inter ROI from one side and come out from the other side, I want to give each object ID number
    I have design a program that compare between object distances from one frame to the next frame, but the program efficiency is very low
    If any one can give me a sample code that I can use or modify it to suite my application

    Hello,
    you will find the code in the attachment (saved for LV2013). There is a longer delay inside the loop, remove it for efficiency.
    Roughly measuring the time to read an image, the processing takes ~8 ms on my computer (~500x200 image resolution). That is ~125 samples/images per second. Is this not fast enough for you? Considering better image resolution, the time is of course increased.
    My specifications:
    Core i7 3632QM
    6 Gb RAM
    Win 7 x64 (Labview x86 though).
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
    Attachments:
    IDMovingObjects.zip ‏64 KB

  • Samsung Stratosphere set own ringtone for txt and pic messaging??

    I have been able to set my own ringtones for Email alerts but can't figure out how to set my own ringtones for txt msgs other than the ones already on the phone.
    for email alerts I went to My Files app and found the music i wanted that i put in folder saved ringtones..  The I hit the menu button on bottom left of phone and selected Set as. And chose Phone ringtone.
    Just can't find similar path to set for Txt and Pic messaging.

    Go to Messaging. Then Menu > Settings, and scroll down to the Notification settings area, where Select ringtone is an option.

  • Saved Tiffs will not open in CS2 and generate a "Could not complete your request because of a program error".

    this was supplied by Ann Shelbourne.
    Saved Tiffs will not open in CS2 and generate a "Could not complete your request because of a program error".
    These files will often open in Photoshop 7.0.1 or in CS1 but not in CS2.
    The trouble may be caused by bad dates in the EXIF data and can originate from an incorrectly-programmed digital camera; or from a scan that was created after after Jan1 of this year (because of a known bug in some scanner software).
    If someone runs into the "Could not complete your request because of a program error" problem, and does not have CS1, try opening the Tiff in TextEdit.
    The EXIF data is right at the top. Check the EXIF data for bad creation dates and change any incorrect ones there.
    Save and close; and then the file will probably open in CS2 without a murmur.

    > If iPhoto causes problems why not open the images from the Finder?
    I get the error if I open a file from within iPhoto using "OPen in external editor" and then alter it (or do not alter it) and try to save it over itself, or save it anywhere else.
    I get the error if I do "Show file" in iPhoto to see the file in the Finder. Then, if I double-click and it opens in PS, and then alter it (or do not alter it) and try to save it over itself, or save it anywhere else.
    > And with »save it anywhere« You indicate that You use the Save As-command?
    Right.

  • I have created a form in InDesign, exported to a pdf, created an editable form and saved.  When I open the form and make changes and save, the reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is alway

    I have created a form in InDesign, exported to a pdf, then created an editable form and saved.  When I open the form and make changes and save, then reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is always minus the edits.   ????

    Hi chuck,
    If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
    Can you please send the form to me at [email protected]  so that I can have a look.
    Regards,
    Rave

  • Does anyone have any efficient techniques for saving mail on more than one machine and in the cloud (I need offline access). Trying to avoid endless message copying.

    I've been in an administrative job at my university, in which I needed to be able to access lots of past email conversations.  I ended up saving *everything* religiously, by copying each email or conversation into an "On My Mac" folder on either my home or office machine, flagging it as copied, then unflagging it and moving it to a like folder on the other machine. As a result I'v now got a trillion folders for various aspects of my job, filled with quite a few messages that I probably no longer even need, but they're way too many to go through and delete one by one.  Unfortunately, I haven't made much use of the iCloud folders, but I'm so tired of having to essentially manually sync my stored mail in the manner I just described, that I'm thinking of starting to file everything to iCloud folders.  The downside of that is that obviously if the internet is down and a given folder wasn't refreshed before it went down, I won't have access to the saved mail.
    Moreover, I'm about to step down from the admin post -- within about 6 months a lot of what I saved won't be needed at all, and going forward, I won't need to save nearly the same quantity of messages for later reference.  I'd like to come up with some viable "triage" strategies for limiting the mail I do save.  
    This is really just an open question:  Does anyone have any good mail filing and storage techniques that you'd be willing to share?  I'm especially interested in criteria you use for what you save and don't save, and where/how you save it. 

    Well, the one set up on exchange 2k3 is now working fine, although no changes were made on either the iPhone or the exchange side, so that's fun, but it still is throwing errors when connecting to the other 2 exchange accounts. The common elements are that both non-functioning exchange accounts are google apps for business accounts. So is one of the ones that's working, by the way. The settings on both accounts are the same as the one that's working, and both worked fine before the 8.3 upgrade. I have no issue accessing both of these accounts on my ipad which is currently on 8.2.x. If it's not the iphone OS at fault, I'm at a loss as to what it could be.

  • SP Designer 2010 - Saving custom list form impacts other list and other custom list form

    Hi,
    I have a source list, with custom display, edit and new forms all of them created in SP Designer 2010. These do nothing fancy, just for presentation purposes, fields were re-arranged in 2 columns.
    Then I created a target list by saving the source list as template, the template brought over all customizations, all seemed to work fine. So I started to modify the target custom list forms.
    Now here's the problem:
    After a while making changes to the target list I realized that somehow the custom list forms on the source list had been modified... so I opened the source list in designer and noticed that the out of the box forms: NewForm.aspx, DispForm.aspx, EditForm.aspx
    were now the default forms for the source list, and I couldn't pick my custom list forms to be the default forms for the source list anymore, they were not on the listbox. I could still see them by going in designer to All Files > Lists > SourceList
    > and if I previewed them, they were empty. 
    I believe that somehow source and target list are linked, but why would designer allow making changes to the source list? like resetting the default forms, and breaking up the custom list forms that were in place?
    I've verified list id's in the custom list forms of the target list and they belong to the GUID of the target list. I don't see anything else that could potentially point to the source list.
    SharePoint Designer 2010 version: 14.0.7007.1000 SP2 14.0.7015.1000 I don't think this matters much because I've tried with other SP Designer 2010 versions and the error is the same.
    thanks for your reply!

    Hi alec,
    When I create a custom EditForm1.aspx and set as default for a source list, then save this list as a template, then the newly created the target list based off this saved template, the source list still uses the custom EditForm1.aspx form as default
    form, from SharePoint designer, I can see these two lists have different listID, so they have no connection when I edit any one of them.
    Please recreate a new list with custom form page and save as template, then create a new list see if this issue could be reproduced, or we can create a new list instead if it is an isolate issue.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • How do I transfer all my Firefox saved passwords to my new hard drive and operating system? Going from xp to windows 7.

    How do I transfer all my Firefox saved passwords to my new hard drive and operating system? Going from xp to windows 7. I have the old hard drive hooked up as drive f. Can I copy and paste from old drive directory to new drive directory?

    You need to copy 2 files, key3.db and signons.sqlite, from the old [[profiles|profile folder]] to the profile folder on the new computer.

  • I have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.

    i have lost all my notes saved on my iphone after syncing it. and my default mailbox is gmail. notes were very important. and now i dont know how to get them back. can anyone help me out please? thanks in advance.

    Try this ..
    On your Mac open System Preferences > iCloud
    Deselect the box next to:  Notes
    Then reselect it.
    Give iCloud a few minutes to re sync the data.
    Other than that, try Time Machine >  http://pondini.org/TM/15m.html

  • (I do NOT use norton at all) Some of my saved bookmarks keep disappearing when I close and re-open my browser..this is getting very frustrating! (firefox 4.0)

    I have read about this happening, but the only solution is for people who use Norton, and I do not-it is not even on my laptop at all..
    I have firefox 4.0. Every time I close firefox, some of my SAVED bookmarks are missing when I re-open later. I tried re-saving them, but then when I close and re-open firefox later on again, some more bookmarks are gone..this only happens when I exit for a while..if I close and re-open firefox right away the bookmarks are all still there.
    This is very frustrating! I never had this problem with firefox 3.whatever..PLEASE HELP??
    ps. i am not very technical, so if there is a bunch of hard things I have to do myself to fix this, then I think I will switch to Internet Explorer..

    Yes - see [[options window - privacy panel]]. There is an option to clear some of the history when Firefox closes, you can customise that.

  • When I send a group txt and one of the people reply it creates a new message.   How do I keep all the replies in the same message?   I used to not have this problem but it started last month.

    When I send a group txt and one of the reciepients replies it creates a new message.   How do I keep all the replies in the same message?

    If you think getting your web pages to appear OK in all the major browsers is tricky then dealing with email clients is way worse. There are so many of them.
    If you want to bulk email yourself, there are apps for it and their templates will work in most cases...
    http://www.iwebformusicians.com/Website-Email-Marketing/EBlast.html
    This one will create the form, database and send out the emails...
    http://www.iwebformusicians.com/Website-Email-Marketing/MailShoot.html
    The alternative is to use a marketing service if your business can justify the cost. Their templates are tested in all the common email clients...
    http://www.iwebformusicians.com/Website-Email-Marketing/Email-Marketing-Service. html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • I saved my completed rendered video in Publish and Share as an MP4, but where is the file saved to. I set it to be saved on my desktop, but I don't see it. thanks

    I saved my completed rendered video in Publish and Share as an MP4, but where is the file saved to. I set it to be saved on my desktop, but I don't see it. thanks

    markg
    What version of Premiere Elements and what computer operating system? You have a few other threads awaiting follow up, and consequently that information
    is not available elsewhere.
    What is your specific export...
    Publish+Share
    Computer
    AVCHD
    and Presets = MP4 - H.264 1920 x 1080p30 or something like that.
    Specific please.
    But what specifically are you entering in the Save In: field of the dialog that includes the Save button to initiate the export process.
    Are you saving it as a file to the Desktop or to a specific folder on the Desktop? Have you given the export a distinctive file name?
    The screenshot shows the Save In: to the Desktop as a file.
    I have no idea of your background with the program, so I ask these questions so as to take nothing for granted.
    If the computer Desktop is crowded, as mine often is, it is easy to have difficulty spotting a file save to the Desktop.
    We will be watching for your follow up.
    Thank you.
    ATR

Maybe you are looking for