Getting both intensity AND postion information on particles with IMAQ

Greetings-
I am trying to use IMAQ to analyze images which contain "particles".  I have no problem making a binary mask that contains only the particles of interest and using "IMAQ Particle Analysis" to give me an array containing the (X,Y) locations of the centers of these particles.
I also have no problem converting the binary mask to a 16 bit image in which each particle has its own unique label.  I then use this labeling image and the original greyscale image as inputs to "IMAQ Quantify" so that I obtain the average greyscale density for each particle.
Here is my problem:  the two data sets are completely divorced.  I need correlate the density information for a given particle with its location in the image.
Can anyone suggest a solution?  (I am running 8.0)
Thanks,
-GN

Hi GN,
Let me suggest the following:
The "IMAQ Particle Analysis" VI is going to return an array(1) that contains the coordinates for the centre of mass for each particle.  Assuming that your 16-bit greyscale mask is done correctly, this means that every pixel within a particle shares the same value, and every particle will have its own unique16-bit value.
You also have an array(2) of densities that you found using "IMAQ Quantify", which are indexed according to the particle values.
What you need to do, is to create a for loop whose number of executions is controller by the number of items in Array 1 or Array 2 (# particles you have).  You can pass N the array size or just use auto-indexing.  Use the "IMAQ GetPixelValue" VI, and pass it the coordinates for each centre of mass (array 1).  Provided that your particles do not have odd shapes, and that the centre of mass is included as part of this particle (and not in a hole), the VI will return the corresponding 16-bit greyscale value.  Use the Index Array function, the returned value of "IMAQ GetPixelValue" and the Density Array to get the density value for that centre of mass.  You can then build an Array with all the information that you want to correlate.
(I have attached a screenshot diagram that may help you to understand what I'm trying to say)
I hope this helps, if you have any other questions, please let me know!
Rishi L
National Instruments
Applications Engineer
Attachments:
IMAQ_Correlate1.JPG ‏54 KB

Similar Messages

  • When I used download sets of photos, movies etc, (before I installed Lion) I used always get a "Download" gizmo which showed me the download happening with both speed and time left.  Now with Lion, nothing shows on my screen.  Can I fix this?

    When I used download sets of photos, movies etc, (before I installed Lion) I used always get a "Download" gizmo which showed me the download happening with both speed and time left.  Now with Lion, nothing shows on my screen.  Can I fix this?

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How do i get both mine and my wifes iPhones to photo stream. hers is the only one doing it

    how do i get both mine and my wifes iPhones to photo stream. hers is the only one doing it

    The best way is to not share Apple IDs but also make sure under Settings & Messages on both devices that only one phone number is checked.

  • What would happen if I added the itouch email to the add accounts on my iphone and confirmed that email address? Would only my iphone get both (itouch and iphone) messages? or will my itouch then also get my iphone messages as well??

    What would happen if I added the itouch email to the add accounts on my iphone and confirmed that email address? Would only my iphone get both (itouch and iphone) messages? or will my itouch then also get my iphone messages as well??

    Thank-you for clarifying third party and for pointing out the potential problems.
    i will either have my phone unlocked by the carrier or get my phone service from them. switching carriers is not essential.
    Thanks agin.
    Cheers!

  • I am getting pop-ups, and web pages are opening with "special offers." My yahoo mail has advertising covering the mail messages. This is new. What do I do?

    I am getting pop-ups, and web pages are opening with "special offers." My yahoo mail has advertising covering the mail messages. This is new. What do I do?

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    SCAN WITH ALL PROGRAMS.
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • TS1538 ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    What model iPad do you have? If it's an iPad 1, the battery may have expired and needs replacement.
     Cheers, Tom

  • I have problems with my films that become slightly jerky after I have imported and edited them in iMovie and then burned them onto a DVD using iDVD. I can see the weak jerkiness when panning in both laterally and vertically. I shoot with a camcorder Canon

    I have problems with my films that become slightly jerky after I have imported
    and edited them in iMovie and then burned them onto a DVD using iDVD.
    I can see the weak jerkiness when panning in both laterally
    and vertically.
    I shoot with a camcorder Canon Vixia HF10. The camera has been set to deliver HD quality (1920x1080). But I have accidentally filmed with a frame rate of 60 (?).
    When I import the films in iMovie I have been asked if I want to change to frame rate 30 (instead of 25). I have chosen 30.
    Could it be the setting of a frame rate 60 in my camcorder that causes jerkiness when panning or what else?

    I have problems with my films that become slightly jerky after I have imported
    and edited them in iMovie and then burned them onto a DVD using iDVD.
    I can see the weak jerkiness when panning in both laterally
    and vertically.
    I shoot with a camcorder Canon Vixia HF10. The camera has been set to deliver HD quality (1920x1080). But I have accidentally filmed with a frame rate of 60 (?).
    When I import the films in iMovie I have been asked if I want to change to frame rate 30 (instead of 25). I have chosen 30.
    Could it be the setting of a frame rate 60 in my camcorder that causes jerkiness when panning or what else?

  • Both N1k and the Secondary showing Primary with no Stand by ! what to do ?

    Hi
    Both N1k and the Secondary showing Primary with no Stand by ! what to do ?

    Sounds like something is running in the background. Double tap the home button to bring up the multi-tasking bar. Hold down one of the icons until they start to wiggle and you see a minus sign. Tap on the minus signs and close all of the applications there. Then tap on the home button to close the bar.
    Now reset the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. After the phone restarts, see if this is corrected. If not, then the next step is a restore, first from a backup, and lastly if needed as a new device. It is possible you may have to do it as a new device as there may be a corrupt file that will carry over from the backup that is causing the behavior you describe.

  • Standard Report to get both PR and PO number

    Can anybody suggest a standard report which gives both PR and PO number. I am working with 4.6 release.

    dear
    choose ME5A and select closed requisition and run the report you will get it after set the dynamic selection,
    this is the only way to get the PR and PO no. in a list else you can get individual as per the laxman.
    regds
    dev...!

  • Getting BOTH start and end points of a mouse drag

    I looked up the api's for MouseMotionListener and I couldn't find any way to get both the start and end coordinates of a drag. Any ideas?
    Thanks in advance.

    I think it'll still work, just perform two jobs in the event handler -- one to register the event to test for drag, continued by whatever you wanted to do with that capture.
    I can't think of some case that it wouldn't. However there might be just special cases. Perhaps you would like to tell us what you intend to do.

  • How to get Mobile number and other information from SIM card

    Hi,
    I like to get mobile number,mobile user name and other information from SIM card using j2me program.Is there is any API for this one.
    Any one give guidelines to me how to get this.
    with regards,
    latchiya

    Please use the search! this topic has come up lots of times already.

  • Trouble getting both audio and video out of 2009 MBP.

    I had this working fine a few months ago, and then upgraded to a Pioneer elite stereo, now either audio or video work, but not simultaneously, even if I connect video to TV directly and audio to stereo directly, I can't get both to work it's either or.  I've set the stereo to accept the optical input, and as I said above, it doesn't even work if I connect the audio to the stereo only while the video goes to the TV.  Really seems to be a software issue, any ideas?

    the receiver will need to be set so the tv is one of the optical inputs. so that is why you are only hearing one or the other. the tv expects to get sound from a different source other then your opical input.
    on my jvc there is a setting where I tell the receiver. The tv sound is digital so it'll find the digital signal and associate it to the tv sound.
    What is your exact model receiver I'm sure there is a PDF of the instructions online.

  • Error in getting both Text and Key of infoobject

    Hello Guys,
    I am working on BI 7.0 & BO XI 3.1, SP 3 and FP 3.6.
    I have a requirement where in I have Infoobjects in BW like Internal Sales
    Rep, External Sales Rep, External Manager in BW. I have infocube where I
    have all these reps & keyfigures. I create BEx Query from the infocube and
    was able to see Key and Text in BEx Query & RSRT but I can't see that Key
    value in Webi report.
    Note: I don't have Masterdata configured for Internal Sales Rep, External
    Sales Rep, External Manager. These data comes directly from data source to
    BW infocube. All the reps are referenced to 0PERSON infoobject in BI 7.0
    Thanks in advance.
    With Regards,
    Chintan Vora.

    Hi Geetha,
    yes, it is possilble that, you can disply label for both key and text for a characteristics in Bex query, but for this you have to do small modification in modelling, here is one example:
    Create one custom 'z' InfoObject lets say ZCUSTOMER with Reference Characteristic of 0CUSTOMER and add it to the data target, map it with same field for which 0CUSTOMER is mapped and load data into target (DSO, cube) or if you are reporting on multiprovider then assign it.
    Because ZCUSTOMER is created with reference of 0CUSTOMER and mapped with the same source field , ZCUSTOMER will act as copy of 0CUSTOMER.
    In query designer drag 0CUSTOMER and ZCUSTOMER. change display setting
    0CUSTOMER display as Key only
    ZCUSTOMER display as Text only.
    You can apply this for all master characteristics.
    Hope this will resolve your problem, because i have faced same requirement and implemented the same.
    let me know for any further clarification.
    Regards
    Avinash

  • Can I get both time and date in every single message that I receive or send?

    I have been usine iPhone for a while now, and I was wondering if you can change the message-settings somehow, so that I can see both date and time in every single message, instead of every 30 minutes, is this possible?

    Sorry, no.
    Suggest such to Apple here:
    http://www.apple.com/feedback/iphone.html

  • How to get the user and groups information from http header

    Hi All,
    In my current scneario, we are using Siteminder for SSO setup.. And in this process, after authentication and authorization, they are going to append the user information and group information of the user into a HTTP header and it will be sent back to our presentation services.. We have to extract the user information and group information from the http header.
    My HTTP header will look like as follows..
    SM_USER XYZ
    SM_USERDN CN=Firstname\, Lastname\, xyz, OU=GPO-Low Level Security,OU=Domain Users,OU=BU FDT,
    SM_USERGROUPS CN=GG-CA-SiteminderAdmins, OU=Global,OU=Domain Groups, DC=com^CN=GG-ServiceDeskAdmin-TCCORPCEFS
    And also if anyone explain me the overall working of SSO in detail like how presentation services will make a connection to BI server( I guess using Impersonator User), and also how our BI server will read the URL from presentation services and the over all working flow in our OBIEE..
    Thanks a lot....

    Please use the search! this topic has come up lots of times already.

Maybe you are looking for

  • Need help in modifying mapping parameters of out the box mapping

    Hi There, I am a new bee to dac. Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task. We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not

  • JavaScript Function to validate an item's value

    Can somebody please tell me how to write a Javascript Function that, upon losing focus on a text item, checks if the value just entered is a 6 digit number? Please show me the function and what the onblur command in the item would be. The name of the

  • HT1766 grayed out wifi

    I did all of the above and my wifi is STILL grayed out.  Don't know what to do.  I am going over my plan all the time in data usage because I can't use wifi at home, and my bluetooth won't work in the car which is unsafe.  Help!

  • Values to IDoc fields

    Hi all, I am doing a JDBC to IDoc scenario. In my message mapping, IDoc is the target message. This IDoc has many nodes named <b>SEGMENT</b>. In the occurences column, these <b>SEGMENT</b> nodes have the value "<b>required</b>". But i am not knowing

  • LR 5.4 has crashed twice in 10 min after updating

    Anyone else experiencing this?