Calculating the Distance between particles

I'm building a VI to analysis CCD's for defects.
One of the defects I'm looking for is clusters of contiguous point defects.
I've found the image processing particle detection routines which can be used to find these clusters, however to pass there must no cluster within 3 pixels of any other cluster.
Can anyone think of a way of measuring the ditance between clusters, since the particle detection vi gives the total bounds which could, due to irregular clusters, give the impression of closeness but actual pass my specification.

Robert,
The simplest way I can come up with is to use Binary Morphology. If you use Dilate, it will make all your particles grow. By selecting the proper parameters, you should be able to get all your particles to increase their size by half the minimum spacing. If the spacing between two particles was less than the minimum, they should run together and become a single particle. Use particle detection and see if the total number of particles has decreased, and that will tell you if two particles ran together.
If necessary, you could design more elaborate detection algorithms at the end. You could subtract the original image from the dilated image, which would leave holes where the original particles were. Using particle detection, you could count
the number of holes in each particle. I think the result would be the same, though.
You would have to make sure you remove any particles that aren't clusters before doing the processing. Two tiny specs could run together and change your count, when they are just noise.
Bruce
Bruce Ammons
Ammons Engineering

Similar Messages

  • How do I cancel the distance between the numbers? I'm having trouble copy phone numbers from the phone book and send it via SMS This problem I've found in the Arabic language, numbers appear in reverse Please help System 6.0.1

    How do I cancel the distance between the numbers?
    I'm having trouble copy phone numbers from the phone book and send it via SMS
    This problem I've found in the Arabic language, numbers appear in reverse
    Please help
    System 6.0.1

    MPEG-4 should not be used in FCP unless it is converted first or optimized in the application.
    Trash your preferences. Trash your project render files. Switch off background rendering. Do not re-render. Export your projects.
    Ignore the last frame and first frame indicators.

  • Is there any css to vary the distance between two items in apex

    Hi,
    Is there any css to vary the distance between two items ie two columns  horizontally / vertically in apex application at page line level
    Regards,
    Pavan

    Hi ,
    I done what u suggested above  but  i ll tel u clearly
    i have name,plot no,street,city,distict,state,country,phone no,pincode items.. i need to align this items like
    --------------------------------------------------------------------------main region----------------------------------------------------------------------------
    --left region-------------------------------------------middle region------------------------------------------------------right region-------------------
    name,___________
    plot no,_________
    street,________
    city,___________                                    distict,_________                                              
    state,__________                                   country,_________                                                  nothing in it
    phone no,__________                              pincode_________
    to achieve this wat i have to do
    Thanks,
    pavan

  • How to get the distance between two object!!!

    I have two GEOM object and want to know the distance between them, may u give me some solution to find the distance between them.

    Hi!,
    SDO_GEOM.SDO_DISTANCE
    see: http://www.oracle.com/technology/documentation/spatial.html
    regards, Andreas

  • Extend the distance between Mac Pro and display

    I'd like to know how to extend the distance between my Mac Pro and its Cinema Display. The Mac is early 2008 as is its display I think. I need a distance of about 5metres.

    yes-get a DVI Dual Link Extension cable M/F or M/M. I think you can get 'em around 25 feet max. then you'd need a gender changer, maybe......
    depends what you want to pay, though.*cough* monoprice*cough*
    just my opinion
    J.B.

  • How can i compute the distance between every two strias

    how can i compute the distance between every two strias?The distances between every two strias in an image are almost equal .I have a picture for you in the accessory.there are many trias in all kinds of orientation in an image.fistly,i should find the most consious area,because it is simple to compute . Secondly,To improve precision,i should compute the distance of a group of trias,then conpute its average value.i dont know how to compute .pls teach me,thanks very much!
    Attachments:
    11.jpg ‏12 KB

    there is a typical image.
    Attachments:
    21.jpg ‏23 KB

  • Excel formula to calculate the distance between multiple points using lat/lon coordinates

    I'm currently drawing up a mock database schema with two tables: Booking and Waypoint.
    Booking stores the taxi booking information.
    Waypoint stores the pickup and drop off points during the journey, along with the lat lon position. Each sequence is a stop in the journey.
    How would I calculate the distance between the different stops in each journey (using the lat/lon data) in Excel?
    Is there a way to programmatically define this in Excel, i.e. so that a formula can be placed into the mileagecolumn
    (Booking table),
    lookup the matching sequence (via bookingId)
    for that journey in the Waypointtable
    and return a result?
    Example 1:
    A journey with 2 stops:
    1 1 1 MK4 4FL, 2, Levens Hall Drive, Westcroft, Milton Keynes 52.002529 -0.797623
    2 1 2 MK2 2RD, 55, Westfield Road, Bletchley, Milton Keynes 51.992571 -0.72753
    4.1 miles according to Google, entry made in mileage column
    in Booking table
    where id
    = 1
    Example 2:
    A journey with 3 stops:
    6 3 1 MK7 7DT, 2, Spearmint Close, Walnut Tree, Milton Keynes 52.017486 -0.690113
    7 3 2 MK18 1JL, H S B C, Market Hill, Buckingham 52.000674 -0.987062
    8 3 1 MK17 0FE, 1, Maids Close, Mursley, Milton Keynes 52.040622 -0.759417
    27.7 miles according to Google, entry made in mileage column
    in Booking table
    where id
    = 3
    I understand that 100% accuracy is not possible, so it will not be an issue.

    http://www.cpearson.com/excel/LatLong.aspx
    and
    http://www.contextures.com/excellatitudelongitude.html

  • [OT] Geographical points and the distance between them

    I need to solve problems on the topic of addresses and the distance between them. I understand that I first need to convert an address into a pair of longitude and latitude. After my reading so far, I can use a GIS DB to achieve this goal. That is a lot of work since the issue is only one aspect of the application development. Does anyone know any other approaches?
    Thanks.

    [http://lmgtfy.com/?q=java%2Bcode%2Bdistance%2Bbetween%2Blatitude%2Blongitude%2Bpoints]

  • Calculating the difference between 2 dates that ristrict 0CALDAY

    Hello.
    Is there an oppotunity to calculate the difference between 2 dates, that restrict the characteristic 0CALDAY.
    If i make the formula with
    1. type - replacement path
    2. interval use - difference
    than the difference could be calculated wrong(example 20070301 and 20070101 - result 201)
    Is there another way do solve the problem?
    Best regards,
    Andrey

    Hi,
    as you said, you need to create 2 formula variables.Both of them should have Replacement path as the preocessing type. And then use a formula to do the difference above 2 formula varibles.
    Now check these settings for both variables:
    <b>Replacement Path</b>
    Replace Variable with: <b>Key</b>
    For Intervals Use: <b>From Value</b>
    <b>Currencies and Units</b>
    Dimension ID: <b>Date</b>
    Then it should work
    Another link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/03/6ba03cc24efd1de10000000a114084/frameset.htm
    regards
    marc
    assign points if it helped

  • Why is the distance between the buttons for the musicplayer so small??

    i hate the buttons for the musicplayer in the locked modus, the the distance is so small that i often touch the reward or forward button!!!

    Try this:
    Select an email that does not show all the correct buttons in the header information section above the actual message.
    right click on the blank area just above 'Other Actions', you should get a popup saying 'Customise'.
    click on 'Customise'
    a new window opens.
    you can drag items onto that header area, but I would suggest you click on 'Restore Default Set' button and then clickon 'Done' button.

  • Calculating a distance between random points.

    Hi everyone,
    so my situation is like this :
    1) I have created a graph containing random points (3 different series). And the graph have three buttons .The first button will plot 30 random points on the chart. the second and third button will plot random point with different colour.
    What I am trying to do now is I need to choose one random point from the 30 points, and calculate the distance from the chosen point to the qrand or qinit..
    How can I do that? I really have no idea. Help!
    public void ForBtn1()
    Random qrand = new Random();
    int[,] points = new int[100, 2];
    int qinitx, qinity;
    for (int i = 0; i < 30; i++)
    int pointx = qrand.Next(0, 100);
    int pointy = qrand.Next(0, 100);
    points[i, 0] = pointx;
    points[i, 1] = pointy;
    qinitx = points[0,0];
    qinity = points[0, 1];
    chart1.Series["Initial Point"].Points.AddXY(pointx, pointy);
    chart1.Series["Initial Location"].Points.AddXY(qinitx,qinity);
    //To initialize random points and initial point
    private void button1_Click(object sender, EventArgs e)
    ForBtn1();
    private void chart1_Click(object sender, EventArgs e)
    //To initialize rand_config
    private void button2_Click(object sender, EventArgs e)
    Random qrand = new Random();
    int[,] points = new int[100, 2];
    int qrandx, qrandy;
    qrandx = qrand.Next(0,100);
    qrandy = qrand.Next(0,100);
    chart1.Series["Random Configuration"].Points.AddXY(qrandx, qrandy);
    private void button3_Click(object sender, EventArgs e)

    i cannot attach the photo here .. i dont know why. but here's the photo . check this link.. i uploaded it to fb.. 
    https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/11054299_811876005567689_3794441462666954824_n.jpg?oh=7c9576e4f1f9b2a7e2ac9cf744383051&oe=55AC5BD5&__gda__=1438193773_becbb041c6c51cfc4db4b38c2d18e7a2

  • Command for calculating the difference between channel points

    Hello guys,
    Please tell me if there is a command (or a way) to calculate the diference between channel points, and when there is a diference between points greater then a certain value, to give you where are those points.
    I record some CSV data, a force during time and travel, and I want to put on a graph the exact value when I have a decrease of force greater then 0,1N.
    Thank you again for your time.
    Solved!
    Go to Solution.

    Hello again,
    I find out about the ChnDeltaCalc command, and I combine it with ChnFind and ChD commands and everything is OK.
    Have a nice day.

  • Facing problem while calculating the difference between the two dates?

    Hi
    I am using this code to calculate the difference between the two dates :
    import java.util.Calendar;
    import java.util.*;
    public class DateDifferentExample
    public static void main(String[] args)
    // Creates two calendars instances
    Calendar cal1 = Calendar.getInstance();
    Calendar cal2 = Calendar.getInstance();
    // Set the date for both of the calendar instance
    cal1.set(2006, 12, 30);
    cal2.set(2007, 05, 03);
    // Get the represented date in milliseconds
    long milis1 = cal1.getTimeInMillis(); // getting error here
    long milis2 = cal2.getTimeInMillis(); // getting error here
    // Calculate difference in milliseconds
    long diff = milis2 - milis1;
    // Calculate difference in seconds
    long diffSeconds = diff / 1000;
    // Calculate difference in minutes
    long diffMinutes = diff / (60 * 1000);
    // Calculate difference in hours
    long diffHours = diff / (60 * 60 * 1000);
    // Calculate difference in days
    long diffDays = diff / (24 * 60 * 60 * 1000);
    System.out.println("In milliseconds: " + diff + " milliseconds.");
    System.out.println("In seconds: " + diffSeconds + " seconds.");
    System.out.println("In minutes: " + diffMinutes + " minutes.");
    System.out.println("In hours: " + diffHours + " hours.");
    System.out.println("In days: " + diffDays + " days.");
    but i am getting this error :
    The method getTimeInMillis() from the type calendar is not visible
    Please suggest!!

    // Get the represented date in milliseconds
    long milis1 = cal1.getTime().getTime(); // getting error here
    long milis2 = cal2.getTime().getTime(); // getting error here Hope this works for you!!

  • How do you determine the distance between the QRS interval, as well as the time over that distance, in order to calculate a heart rate

    Hi!
    I have a continuous sample data acquistion VI created.  I collected an ECG signal from electrodes connected to an ELVIS unit.  Once I viewed my signal, I am curious to determine the heart rate.  I need to know how I can find the R-R interval, as well as the time over than span, so I can roughly determine the heart rate, continuously.  Each time a new ECG wave occurs, the heart rate should be modified automatically.  Some algorithm is required. 
    Thanks!

    Hello bmeecg,
    Welcome to the NI forums!  If I understand your question correctly, you wish to calculate the instantaneous heart rate from your ECG (the inverse of your R-R interval).  I would recommend using the Peak Detection vi (Functions Palette»Signal Processing»Signal Operation) to determine the location of the R wave (since it is the largest magnitude, you could set a threshold above your P and T waves so that it only picks up the R wave).  The calculation for time is in the detailed help for the Peak Detection vi (Ctrl+H»Hover over the VI»Detailed Help).
    I also found this forum which has a VI that reads an ECG and then does a lot of analysis. Maybe this would help you out as well.
    And just FYI, the Counter/Timer forum is oriented toward our counter/timer boards (e.g. the PCI-6602),  the Multifunction DAQ forum probably would have more of the type of people that could help with this issue.
    However, please post back here if you have more questions about this.
    Neal M.Applications Engineering       National Instruments        www.ni.com/support

  • Is it possible to increase the distance between iMac and wi-fi router?

    My Mac cannot connect to the wifi router at over 9 feet but my ipod touch and laptop can. I need the wi-fi to work at min distance 15 feet from router for room position of iMac desktop and router position.

    I would suspect a problem with the antennae on the router. Have you tried another one to see if they distance improves?

Maybe you are looking for

  • Media Center Deluxe II Recording Quality

    I am trying to find a better quality format to record DVD's with. The 720x400 does not seem to be sufficient for recording high quality DVD's with. Can anyone recommend a better compatible codec or fixes for this limitation? I am recording in NTSC_M_

  • New 3G Screen Touch

    I bought a new 3g iphone and have had it about two weeks. When I make a call or a call comes in. The unit once up to my face will put people on hold, mute them, hang up on them, put them on hold and call someone else in my list what a pain. And yes I

  • Tektronix oscillosco​pe how to capture signal?

    I have a Tektronix TDS 3014 oscilloscope. I connected the RS232 to a USB converter. Now I have it plugged into my laptop. How can I capture the signal of the oscillscope so I can analyze for future project? 

  • How to get descending index definition ?

    Let's say you create an ASCENDING index on the table "COMPANY", on the field "COMPANY_NAME". You name this index "INDEX_COMPANY_NAME". Oracle creates a record in the USER_INDEXES table (referencing "INDEX_COMPANY_NAME" as an index of the "COMPANY" ta

  • HD monitor suggestion for use with Mac Mini.

    Hello Group, Can anyone suggest the best (or good, compatible) HD monitor to use with my new mac mini just purchased (late 2009 model). Can't afford the apple cinema's so I'm looking for a cheaper option to still have HD using HDMI inputs, looking to