How can I in IMAQ Vision know to which blob a pixel belongs to?

Hi,
How can I in IMAQ Vision know to which blob (particle) a pixel belongs to?
I use IMAQ Complexmeasure and Complexparticle to get data about every particle in the image and then use this data (position, length and direction) to see if two particles "belong to each other". I want to start from one particle and from the data (position, length and direction) find a search area and in that area look for pixels (binary image), if I find one I want to know to which blob that pixel belongs to. (Programmatically) How can I do that?
Deeper explanation: The image I send is just a small part of a bigger image. As you can see there are a lot of streaks on the image, they are generated by small particle
s moving in the air. I use a long exposure time and have a chopper in front of the camera that will generate a short streak, a middle long streak and a long streak. By doing this I can see how the air is moving around in a room. As you can see I must know which streaks are generated by the same particle. As I said earlier I use IMAQ Complexmeasure and Complexparticle to get data about every blob (streak in this case) in the image and then use this data (position, length and direction) to see if two streaks "belong to each other". I start from one streak and from that streaks data (position, length and direction) I can find a search area and in that area look for pixels ( hopefully belonging to a streak generated by the same particle ), if I find a pixel I want to know to which streak (blob) that pixel belongs to so I can look at this new streaks data (length, direction) to verify if these two streaks are generated by the same particle. So my questions are:
How can I see to which strea
k (blob) an individual pixel belongs to? (programmatically)
What is the best way to create a search area, ROI? (programmatically)
What is the best way to look for a pixel in the search area, IMAQ GetPixelValue? (programmatically)
Thanks
Pelle
Attachments:
streak.jpg ‏6 KB
scan0001.PNG ‏66 KB

Pelle,
This is an interesting project. It will be difficult to use blob processing, because there are a large number of intersecting paths.
A few ideas to start with:
For each particle, the path is essentially the same brightness. I would start with white and gradually decrease the threshold level to locate the different blobs.
Also, for each particle, the alignment is roughly the same. I would only consider blobs that have about the same orientation of the long axis. They don't seem to make sudden right angle turns.
I would search by doing a particle analysis, select a particle and search for related particles by comparing the centroid of nearby particles to see if they fall in the area +/- 15 degrees from the long axis orientation of the
particle. You should be able to locate a best choice at each end of the particle.
Bruce
Bruce Ammons
Ammons Engineering

Similar Messages

  • 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

  • I have lock iPhone 5 from Japan, i don't know from which carrier it  is belongs to currently I am in Saudi Araiba, how can i unlock the phone and use here)

    I have lock iPhone 5 from Japan, i don't know from which carrier it  is belongs to. currently I am in Saudi Arabia, how can i unlock the phone and use here)
    <Personal information edited by Host>

    You can't.

  • HT5312 I want buy Apps but need security questions,i forgot security questions and i forg reset security info email address. how can i do.  I know my ID and passworld

    I want buy Apps but need security questions,i forgot security questions and i forg reset security info email address. how can i do.  I know my ID and passworld
    i cant rember questions and my reset security info email(address and passworld)
    How can i do? i want buy apps but need ask this questions.......

    Welcome to the Apple Community.
    Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • How can I find out the iCloud ID which is registered with my iPhone?

    How can I find out the iCloud ID which is registered with my iPhone? I dont know which ID is actually registered with my phone Please help me

    Someone logged into iCloud with his ID maybe my friend or someone but if I get the email info then I can tell him to remove the lock. The ID is started with s*****@hotmail.com. I already asked few of my friends whos name started with s but still didnt find the right one What can I do now?

  • How can I find out who created or which id created the Essbase app. Is there any file where can i go and check to see?

    Hi All,       
                   Do you guys know how can I find out who created or which id created the Essbase app. Is there any file where can i go and check to see?
    I am on UNIX and 11.1.2.2
    Thanks all.

    Don't think that information is kept anywhere.
    This is how the log will look like during app and db creation
    [Fri Aug 02 13:35:55 2013]Local/ESSBASE0///9036/Info(1051001)
    Received client request: Get Extended Application Info (from user [celvin@Native Directory])
    [Fri Aug 02 13:36:04 2013]Local/ESSBASE0///8072/Info(1042059)
    Connected from [fe80::a531:1592:875b:3873]
    [Fri Aug 02 13:36:04 2013]Local/ESSBASE0///8072/Info(1051001)
    Received client request: MaxL: Execute (from user [celvin@Native Directory])
    [Fri Aug 02 13:36:06 2013]Local/ESSBASE0///5432/Info(1042059)
    Connected from [fe80::a531:1592:875b:3873]
    [Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1051061)
    Application test loaded - connection established
    [Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1054027)
    Application [test] started with process id [4324]
    [Fri Aug 02 13:36:15 2013]Local/ESSBASE0///8072/Info(1056010)
    Application test created
    [Fri Aug 02 13:37:22 2013]Local/ESSBASE0///6972/Info(1051001)
    Received client request: MaxL: Define (from user [celvin@Native Directory])
    [Fri Aug 02 13:37:22 2013]Local/ESSBASE0///6972/Info(1051001)
    Received client request: MaxL: Fetch (from user [celvin@Native Directory])
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1042059)
    Connected from [fe80::a531:1592:875b:3873]
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1051001)
    Received client request: MaxL: Execute (from user [celvin@Native Directory])
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1054014)
    Database test loaded
    [Fri Aug 02 13:37:28 2013]Local/ESSBASE0///4520/Info(1056020)
    Database test.test created
    Regards
    Celvin
    http://www.orahyplabs.com

  • I have iphoto 7.1.5.  How can I update iphoto without buying ilife, which i don't need?

    i have iphoto 7.1.5.  How can I update iphoto without buying ilife, which i don't need?

    I'm not sure where you are seeing the "negative reviews" but I like it and many, many people posting here do even though this is a forum for people with problems
    No one knows when the next upgrade will be bu tit will require a purchase
    I'm sure that there will be a few more updated for iPhoto '11 but probably not many - it has had a lot and is approaching the end of its life cycle I would think
    And be sure to have a good backup prior to upgrading (as always) - I suggest in addition to your normal backup routine that you make one more copy of the iPhoto library on your main hard drive if you have space - remember that you need a minimum of 10 GB of free space jus tto run your Mac
    And prior to launching iPhoto '11 the first time be sure to run software update and be sure it is up to the latest version
    LN

  • How can i add  fields to a cube which is in production support

    hi,
       how can i add fiels to a cube which is in production support.

    Hi Maruthi
    You need to add new fields to cube in Development system and then transport it to production after testing.
    Edit cube in RSA1. Add the new infoobjects from right hand directory to left hand pane and assign these new infoobjects to suitable dimensions. Save and activate the infocube. Now go to change update rules for this infocube and do proper mapping of these infoobjects.
    Save & activate the update rules.
    RSA1-> Transport connection-> select cube, update rules and related objects and create transport request.
    After testing is done, give the transport request number to your Basis person and he will do the transports for you.
    Regards
    Pradip

  • How can I get a list of apps which are supported on ipod touch model ma623zo?

    How can I get a list of apps which are supported on ipod touch model ma623zo?
    It's about 6 years old I think.
    I have put the latest IOS on there (currently 3.1.3 (7E18)).
    I download apps from the app store but they often fail to launch. I assume they're incompatible.
    Is there a way to check which apps will work and which won't before I buy them?
    Thanks!

    I have no idea how my reply could be "misleading". I stated the exact situation: there are millions of apps in the iTunes Store, and providing a comprehensive, accurate list of which apps support which version(s) of iOS would be highly impractical. You can perhaps help with your search by going to AppShopper:
    http://appshopper.com/search/?search=iOS+3
    That will give you at least some starting points, but AppShopper is neither comprehensive nor completely accurate. I've found a number of apps listed there over the time the site has existed that either are no longer offered or which have been updated beyond the iOS version indicated. But it might help.
    Regards.

  • HT4623 how can i use one i5 in oman which is bought from australia?

    how can I use my i5 in oman which is bought from Australia?

    Hi,
       I put new sim card (omantel -prepaid) but some msgs. is came.( The sim card that you currently have installed in this phone is from a carrier that is not supported under the activation policy that is currently assigned by the activation server. This is not a hardware issue with the I phone.Please insert another SIM card from a supported carrier  or request that this I phone be un locked by your carrier.Please contact Apple for more information ).

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Hi my question is how can I sort and delete photo files which I have had backed up multiple times? Another way how can I get rid of from the duplicate?

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or InDesign or Muse or ???

  • How can I use Airdrop in my iMac which has OX 10.9.2

    How can I use Airdrop in my iMac which has OX 10.9.2

    If you have an iPhone5 and an IMac,
    - you should have your photos in phototstream (last 1000)
    - your iphone should have your icloud account linked
    - your imac should have your icloud account linked
    more info http://support.apple.com/kb/HT4486

  • HT4759 how can i install icloud to my mac which is running on Mac OS X version 10.6.8?

    how can i install icloud to my mac which is running on Mac OS X version 10.6.8 ?

    You must first upgrade to 10.7.5 or later.
    Upgrading from Snow Leopard to Lion or Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8, Lion, or Mountain Lion installed. Purchase and download Mavericks (Free) from the App Store. Sign in using your Apple ID. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mavericks- System Requirements
           Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
                 Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
             7. Xserve (Early 2009) — Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table — RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • How can i see number of T code which to assinged to perticular user with di

    Dear All,
    How can i see number of T code which to assinged to perticular user with discription.
    Which report i have to be execute with T code.
    reply me.
    Thanks,
    Regards,
    sachin

    Hi
    Try transaction S_BCE_68001426, or repor RSUSR010 (The Same)
    Regards
    Morten Nielsen

Maybe you are looking for