How can I get "IMAQ Line Fit" stable (with the same points)

How can I get "IMAQ Line Fit" stable (with the same points)
I my vision applications I use a lot off times "IMAQ Line Fit"
some times the results are not Stable.
See vi and word document attached.
When I take the same points but in a other order (sort)
then suddenly all points are used.
In this case I was looking for a edge in vertical direction (Y).
I found the points but "IMAQ Line Fit" did not function well.
I tried changing all settings like pixel radius and minimum score and
also threshold and so on. But no result.
Then I sorted the points reversed and that worked. See vi.
I use labview Labview 8.6.0 and IMAQ machine vision.
Maybe this problem is solved in a newer version.
Please let me know.
Thanks
Attachments:
TEST-imaq-line-fit-86.vi ‏169 KB
IMAQ-Fit-Line-Problem-86.doc ‏230 KB

Thank You for your reaction Hossein,
This "one application" uses "Line fit" about 20 000 000 times a day.
about 200 will go wrong. With your setting the the "Line fit" for this occasion will work but others will go wrong.
A algorithm should be:
1e Stable, when using the same points and settings the result MUST be the same. How the points are sorted should not matter.
2e Accuracy
3e Speed
4e Testing. Is very difficult but al least close points and the same points and sorting ... should be done
NI now as made a " IMAQ Line Fit" Problem CAR (Corrective Action request) 298016.
so in the future there will be a update.
In the mean while a made a line fit which uses Bisquare option from Linear Fit.vi :
  from C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\analysis\6fits.llb
This is a temporary fix because "IMAQ Fit Line VI" is not so stable.
Because outliers should be rejected only Bisquare does this reasonable.
This program does NOT USE "Minimum Score" and "Pixel Radius"
Valid fit = When there are enough points within Outlier_Distance.
Algorithm steps:
- Determine if line is more horizontal then vertical, Compare DeltaX with DeltaY
- If DeltaX <= DeltaY then SWAP X Y and later Swap back
- Sort Points at on X value
- First : Bisquare Linear Fit
- Calculate distances to the found line for all points
- Inliers: Points within Outlier_distance
- Outliers: Points outside Outlier_Distance
- Only use Inlier Points
- Check again if DeltaX < DeltaY then SWAP X Y later SWAP back again
- Second : Bisquare Linear Fit only with the Inlier Points
- Results are from the second fit
Warning : This Program is Not so accurate and Not so fast
See attachments it is in labview 8.6
If some has a improvement please let me know.
Thanks
Attachments:
svi_fit_line_Bsquare_and_draw.vi ‏18 KB
Fit_Line_Bisquare_Linear.vi ‏40 KB

Similar Messages

  • How can I get rid of multiple pictures at the same time?

    how can I get rid of multiple pictures at the same time?

    Adobe Bridge, lightroom and your file browser (windows explorer or Mac Finder) can select multiple pictures at once and then delete. If you are looking for more than that for information, you will need to be more specific at what your doing, what OS you have, and version of software your using. If necessary post screen shots so we can see what your doing. The more information we have the more detailed of an explaination can can give back to you.

  • How can I get my document to save with the rotated view last used?

    How can I get my document to save with the rotated view last used? 

    Possible with Adobe Acrobat, not Adobe Reader.

  • I currently have aT-Mobile sim, and therefore, a UK telephone number. Can I get a sim from EE with the same number to use in my iphone 5?

    I currently have aT-Mobile sim, and therefore, a UK telephone number. Can I get a sim from EE with the same number to use in my iphone 5?

    The easiest way to find out what carrier it's locked to would be to call the store where you purchased the phone.
    The phone can be unlocked from any location.  However, most carrier have restrictions about unlocking and you have to contact them for details.

  • HT202213 How can I authorize more than 5 computers with the same Apple ID?

    Somebody knows how to authorize more than 5 computers with the same Apple ID? I have One Apple IMac, Apple TV, I-PAD, 2 HP PC's, One I-Phone and one I-Pod Touch. I would like to have the possibility to use as I wish the same Apple ID on one of those without deauthorizing another one.

    "Somebody knows how to authorize more than 5 computers with the same Apple ID? "
    You cannot.
    Authorization applies ONLY to computers.  Ipods/ipads/iphones/Apple TVS are NOT authorized at all.

  • How can i use Mail on 2 macs with the same mail address?

    Hi,
    I have two Macs, connected through WLAN. From each Mac I can use Mail (sending and receiving) with the same mail address. This worked well; on each Mac I have separate files storing the mails (input, sent, trash, …).
    Some days ago I had to change the provider. (Perhaps this may be the reason for my problem?) Now both mail systems are connected - in the way that if I put on Mac *1 a mail into the trash it is automatically thrown into the trash on Mac *2.
    What is to be done to separate the two systems (i. e. make them independent of each other)?
    Hans

    It looks like you are using a IMAP mail account, a protocol used by most email providers nowadays. Read -> http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol
    The main feature of IMAP is the sync of all the changes you do on your mail account. If you want to keep your mails on one Mac, have a look at this site -> http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3908294

  • How can I get two cameras to aquire at the same time rather than one after the other

    I've got (2) PCI-1428 cards, Two Uniq Vision cameras with power supplies, cameralink cables, and IMAQ-D6804 cables. Both cameras are being triggered by the same switch, but they are not grabbing images at the same time. Right now it is triggering one camera as desired, but the other doesn't aquire until after the time-sensitive event. On the next test, the two camera will trade these roles. I am using 2 cards, so they should acquire at the same time. How do I change it so that they grab images at the same time? Thank you for your help.
                                                      ​            Deater

    Hi Deater,
    Thank  you for your post.  Triggering from two cameras at the same time may be a little trickey, but it can be done.  There are multiple ways to tackle this problem.  If you have a RTSI cable, you can RTSI the two PCI boards together internally to lock them in HW.  You should also be able to use the triggering line on each board.
    One of the best methods for triggering multiple boards is called GenLocking.  The following Developer Zone page describes GenLocking more fully and has several examples to help you out: http://zone.ni.com/devzone/conceptd.nsf/webmain/a3​87b5c0ac6f6f4e86256c87005fcddf.
    The "HL Grab with two boards.vi" shipping example is also a good example of the code needed to trigger two individual boards in LV.  I found a similar post that may be of some help as well: http://forums.ni.com/ni/board/message?board.id=230​&message.id=2691&requireLogin=False
    Hope this helps!
    Thanks,
    Scott Savage
    National Instruments
    Applications Engineering
    www.ni.com/support

  • I brought in a slideshow but photos didn't include comments.  How can I get my comments imported along with the pictures?

    I brought in a slideshow but photos didn't include comments.  How do I get my comments?

    First make sure you've added the comments you want to show in the Add a Description field in iPhoto or in the Title field.  If you put them in the Title field and you envoke the feature in iDVD you won't have to delete the title from each slide to give you just the desciption.  Or batch remove the Titles from all the photos before you add them to the iDVD project. You can allways get them back with the Photos ➙ Batfch Change menu option later on.
    Click on the cog wheel menu button at the bottom and select Show titles and comments checkbox.
    Happy Holidays

  • How can i get two or more people on the same call on iPhone 5

    On my blackberry I can make a call, and then call other people and add them to the call so we have several people on the same line. Is it possible to do this with an
    iphone 5?

    See page 51 of the iPhone User Manual.
    You can add folks to a call only if you use a GSM carrier.
    iPhone User Guide for iOS 8.1

  • I just decommissioned my windows pc for a mac power book.  How can I get my ipad to sync with the new computer without erasing all the apps and data on the ipad?

    I just decomissioned my windows pc in favor of a new (to me) MacBook Pro.  When I attempt to sync my iPad I get a warning that I will erase all content on the ipad in order to sync with the new computer.  How do avoid erasing all the data on the iPad, and get the iPad and the new Mac/iTunes to be friends?

    Best option is to use Windows Migration Assistant as Ralph noted.
    Here's a better (updated) link to Windows Migration Assistant for Lion -> http://support.apple.com/kb/HT4796
    Or if you only want iTunes (Migration Assistant let's you choose) copy the entire /Music/iTunes/ folder from your PC to /Music/ on the Mac.
    FYI: A MacBook is not a PowerBook. PowerBooks were discontinued in 2005.

  • How can you get firefox to work locally with the windows subst command?

    I want to test my website locally using the windows subst command to emulate the root of my website. It works perfectly with IE8 (except IE8 displays the layout different to firefox) but will not work with Firefox. All of the images, styles sheets and anything with a root path does not work. If I use a relative path (../../ for example) to the objects they works fine.
    How can I view web pages locally using a website root path?

    Now I understand why Firefox does not load local pages and and IE does. I followed the link and tried all the various solutions. The noscript version did not work (but at least I have better security now) and the \\\\\ UNC path trick did nothing. Eventually I downloaded the IEtab plugin and that worked perfectly. All I wanted to do was to check webpages locally before submitting to my website and the IEtab plugin worked perfectly.
    Thanks

  • How can I get rec'd text messages from the same subscriber not be appended

    Hi,
    Is there a way to configure the Apple iphone so that text messages from the same subscriber are displayed separately rather than appended to each other? In this way accidentally deleting one message wouldn't delete the entire history of messages from this subscriber.
    When I launch the SMS service by pressing the green SMS button I am met by a screen that says Text Messages. On the left of this there is a button that says Edit and on the right there is one that is for writing a new message. Down the page are my messages all grouped by the originator of each messages. If I choose one I see that all messages from this source are present appended one after the other. There is also the option now to Clear on the top right hand corner. It is this Clear option I am worried about. If I choose Clear I am asked for a confirmation and then lo and behold as expected all my messages from this subscriber are deleted.
    This is a work phone for support purposes and most of the texts will be from the telephone operator (i.e. the one same number) saying we have an email waiting to be read with a subject title giving a little description. I want to be in a position so that I don't accidentally delete the entire history of messages, say some evening when I'm tired or Monday morning if I 'm a bit asleep. Ideally I would prefer that each text message would stand alone in the Text Messages window irrespective of the originator and not be appended in a group fashion. Is there a way to do this?
    Kind regards,
    M

    There is no way to do that on the iPhone. Messages will always be grouped into a 'conversation' based on the sender/recipient. Only Apple can change that behavior.
    You can submit feedback to Apple: http://www.apple.com/feedback/iphone.html.

  • HT2534 How can i download from two different store with the same account?

    I live in both countries but my credit card is registered in a french bank, therefore it is not recognised by the Aussie store on itunes. There are apps or music i want to get form the Aussie store as well as music and other apps from the french one...
    Is it possible to have two stores under the same account????? I wish apple could fix this, which could result in more spending as you can buy from different store!

    Wait 90 days
    Why would you start a new account?  Why not just correct the original account?

  • How did I get 2 skype names/accounts with the same...

    I am new to Skype. I somehow got 2 different Skype names. They are both connected to the same emailadress and password. How is that even possible? The one account consist of my name, the other my name with a 1 in the end. Can the one be a very very old messenger account that converted into a skype account?

    it is indeed possible to register more than 1 account under a certain email address.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • How can I view ipod touch HD video with the same quality on a different device such as my computer?

    Video recorded on Ipod touch 4G appears "HD" as advertised when viewed on the Ipod.  Why does it not have anywhere near the same quality when viewed on a computer?

    How are you judging the quality on another device?  HD is defined by the number of pixels

Maybe you are looking for