How to find image centroid & seperation between two images

How to find image centroid and seperation between the images,
i have 2 images pixel values as shown in the picture i should calculate the centroid of the image & find the distance of seperation of the image.
help me how to do this
I am using LabView 7.1
thanks
sk 
Attachments:
New Folder.zip ‏736 KB

I have a center of energy program similar to the one used by IMAQ. I have attached an example using your data. I first found the center of the entire image. Then I split the array in two and found the centers of each half. That gives you the position of the two spots. This program won't work if the spots are too close to each other or are separeted in the other axis.
Attachments:
distance between two spots one direction.vi ‏1096 KB
Center of energy calc.vi ‏40 KB

Similar Messages

  • How to find the structural difference between two tables

    Hi all,
    How to find the structural difference between two tables .
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Thanks,
    P Prakash

    you could try something similar to this, for each table pair that you want to compare:
    SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
      FROM (
            SELECT  COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
          ) DIFF
    UNION
    SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
      FROM (
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
          ) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on.

  • How to find the phase difference between two signals using Hilbert transform

    hi, 
        I am new to LabView.... I am trying to find phase difference between two signals. I sucessfuly found out the phase difference between two predefined waves using single tone measurement. .... But I really want to know how can I measure phase difference between two signals( not predefined... ie we don't know the initial conditions) using hilbert transform or any transformation techniques (without using zero cross detection).. I tried by using hilbert transform based on algorithm... bt I am getting error.... plz help me
    Attachments:
    phase_differece.vi ‏66 KB

    you could try something similar to this, for each table pair that you want to compare:
    SELECT 'TABLE_A has these columns that are not in TABLE_B', DIFF.*
      FROM (
            SELECT  COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
          ) DIFF
    UNION
    SELECT 'TABLE_B has these columns that are not in TABLE_A', DIFF.*
      FROM (
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_B'
             MINUS
            SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH
              FROM all_tab_columns
             WHERE table_name = 'TABLE_A'
          ) DIFF;that's assuming, column_name, data_type and data_length are all you want to compare on.

  • How to find out public holiday between two days.

    Can any one let me know FM to find out public holiday between two days.
    for example: i am entering two days as 10-08-2009 to 20-08-2009. We have 15-08-2009 is a holiday. FM should say that 15th August is the public holiday.
    Regards,
    Manoj.

    hi,
    you can use HOLIDAY_CALENDAR_GET FM to get the holiday calendar id .
    Then pass that calender id and date to FM HOLIDAY_CHECK_AND_GET_INFO.
    Rgds.,
    subash

  • How to find out the difference between two payloads in the BPEL/xsl

    Hi,
    We are invoking a soa service from a BPEL with 10 input parameters and getting the output for only 7 parameters (where 10-7=3 are not returned by service as they are not processed by the service due to invalid input data).
    But the BPEL process should return the 10 payloads with 3 having the failures status.i.e need to find out the difference between input payload and the payload returned by the soa service.
    Can any one tell us, how to achieve this.
    Thanks in advance,
    Ram.

    Check the instance in EM console( in 11G) or BPEL console (in 10G ) and u can see the input and output xmls.

  • How to find difference in amount between two fields in two different tables

    Hi,
    I am new to PL/SQL. I need to write a procedure to calculate the difference between two columns of two seperate tables. For example:
    I have Table a and Table b. Both with two columns Id and Amount. I need to find the difference of Amount between table a and table b value for each record in table b, store it in variable and then do further operations using that difference. Kindly help me with this.

    Something like this?
    INSERT INTO table_c (id, diff, p_or_n)
    SELECT
    a.a_id,
    a.a_value - b.b_value
    DECODE( SIGN(a.a_value - b.b_value),
      1 , 'P',
      0 , 'P',
      -1, 'N'
    FROM table_a a JOIN table_b b
    ON (a.a_id = b.b_id);
    -- Ranit

  • Swap pallete between two images (JPEG, BMP, PNG)

    Can someone tell me how can i swap the pallete between
    two images ?
    And also the most used color on the first picture to be swapped with the
    most used color on the second picture, and so own according
    to the usage of the color on the pictures.
    Thanks in advance.
    Ilija

    imt wrote:
    And also the most used color on the first picture to be swapped with the
    most used color on the second picture, and so own according
    to the usage of the color on the pictures.Sort of making an array of color values and their occurrence counts? Not really.

  • How do i stop contact synching between two iPhones?

    how do i stop contact synching between two iPhones?

    Stop syncing them to the same source. If you're sharing an iCloud account with someone, don't do that.

  • HT5646 should I set up a different account for each child?  if so, how do I manage itunes money between two kids?

    should I set up a different apple account for each child?  if so, how do I manage itunes money between two kids?

    Hello staatsfamily,
    Having a separate Apple ID for each child will allow each child to keep their purchases and iCloud information separate.  It will also allow you to provide an iTunes Store Allowance for each child:
    With iTunes Allowance, you can send a monthly iTunes Store credit to anyone with an iTunes Store account. It's a great way for parents to manage their children's spending on the iTunes Store, App Store, and iBooks Store.
    Once you have created an Apple ID for each child, you can provide an iTunes Store allowance to each Apple ID. The following article will guide you in how to set this up:
    iTunes Store Allowance
    http://support.apple.com/kb/ht2105
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to define the dynamic navigation between two component in web ui

    Hi All,
    I have a requirement to create a new assignment block in accounts overview screen .
    1.Created new view(Table view) in the BP_HEAD component.
    2.Created new button on the table view toolbar .
    3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
    Please hekp me step 3 how to do .
    I have checked planned activity assignment block in the account but is dynamic navigation.
    Please explain me how to define the dynamic navigation between two components.
    What is window delegate .
    Thanks,
    Venkyy

    Hi ,
    Kindly follow the link , this will be helpful for your issue :
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component

  • How to export a weblogic application between two workshops

    i need to develop an application on two different computers. how to make the application portable between two workshops?
    Thanks.
    Denis

    Thanks for the response, but correct if I'm wrong: I just could use this option to export to war file if I had the source code and the project created under the eclipse IDE. If so, I'm not able to do that, since I haven't received any source code from this vendor. I have only received one windows installer which installs the war files inside the weblogic domain\server folder.
    I thought that there was an option under the weblogic administration console -> domain -> deployments which would let me export an existing application to a war file.
    So far, I've found one work around that is:
    * Run the windows installer of this app into a weblogic running on a windows box ;
    * Once the deployment is up, go into the PATH where this application is running inside the weblogic and generate a war file with all the existing files ;
    * Open the weblogic administration console of the linux box;
    * Import the war file ;
    Thanks,
    Davinod

  • How to perform a WS-transaction between two webservices implemented in EJB3

    Hello,
    I would like to have an example of how to perform a WS-Transaction between two web services implemented with EJB 3.0. It should be done through code.
    Thanks in advance.

    Bit a late answer, btu I don't like googling for somthing and founding open questions about the topic I search for.
    Have a look at
    http://jbossws.jboss.org/mediawiki/index.php?title=JAX-WS_User_Guide
    and
    http://soa.sys-con.com/node/39769
    Cheers

  • Clone between two images in Aperture

    Is it possible to close between two images in Aperture? I have a photo from a friend's wedding where I have two photos; the first is great - good light, everyone looking at the camera, etc except one person in the front row has closed eyes. In the second photos her eyes are open. The position of her head, etc is the same so I think it would look OK.
    Is it possible to cut her eyes from photo 2 and paste in photo 1?
    Thanks in advance for any advice.
    regards

    You'll have to use a pixel editor as William said, like Photoshop, and then send the images to further edition via aperture by defining your external editor in the preferences and then right click (ctrl+click) and 'edit with external editor'

  • How to find the elapsed time between 2 events ?

    I want to use the robot class and I have register all events in a file but when I use the Robot. It isn't synchronous. So I should find th elapsed time between two events for reproducing them with the method delay of the class Robot.
    Thanks

    It sounds like you want to reproduce the events with varying time between the events? This is a good idea for a couple of reasons 1) it's possible to enqueue events so quickly that Robot gets ahead of the Java GUI, and 2) every human does their mouse/keyboard activity at varying (and relatively slow, relative to the computer that is) rates of speed. It would help make a more realistic interaction to vary the speed of event reproduction.
    Since you can't control the amount of time between the call to Robot and when the event arrives in the application, you can't be ultimately precise about this. You'll have to accept a teensy bit of slop in the process and just live with it.
    That is ... you can do something like robot.method1() .. Thread.sleep(1) .. robot.method2() .. Thread.sleep(1) ... and that will give slight delays. If you vary the value for Thread.sleep you can vary the event reproduction speed. Early in the development of Robot I experimented with something like this - I set up an EventQueue listener to capture all mouse/keyboard events (remember that each comes with a timestamp) and then reproduced events using the time intervals from the captured events to control the Thread.sleep times between Robot calls. It worked pretty well, and the mouse would dance around in the same way I moved the mouse around.
    - David

  • How to SIMPLY add audio crossfade between two clips ?

    Tried to make a simple cut edit for tv news.
    How to add an audio crossfade between two clips to soften transition ?
    Detach audio, then create audio only scenario, then add transition ? Unusable.
    When importing 8 tracks from Xdcam HD, how do you choose wich audio track to add your transition to ?
    Also, impossible to re-export to Xdcam disk on the field.
    This piece of software is simply unusable in real life pro conditions. Some very nice features, globally a disaster.

    First thank you all for taking time to reply.
    I found these solutions myself but for me these are only workaround.
    In Fcp7, you just had to drag and drop dissolve transition to clips junctions TO AUDIO TRACK ONLY. Very quick and simple. In Fcpx, it is very time consuming if you want to add audio crossfade to every clip junction in a full project. That's really not a software evolution in my opinion...
    I think "easy transitions to audio tracks only" has to be implemented in next version.
    Thanks again !

Maybe you are looking for