Find objects using NI Vision

Hello

I want to locate clusters of the object in a .tiff image group. I would ilke to find the center of mass and the average value of pixels in each cluster (so that I can calculate the center of mass of the aggregate). In addition, I would like to draw polygon (sqiggly lines) indicating the perimeter of each cluster (similar to the example of MaginWand2). Each Image can contain one or more groups. I'm developing a stand-alone appliction using .net. I'd appreciate any help in this.

Thank you

Poop

That's what I did to get the center of mass of the cluster:

1 called method of CountAndMeasure on the KING to get a report on all objects in the KING

2 called LightMeterRectangle on each rectangle encompassing obtained in step 1.

3. get the average intensity of each rectangle of the report object returned in step 2

4 multiply the average intensity on the surface of the rectangle to get the total intensity. This isn't quite the full intensity it's only proportioal to the total intensity. This is acceptable in our application.

5 used this total intensity and the center of gravity of the rectangle to calculate the center of the total mass of all the objects that have been identified.

This solution seems acceptable for our application. Please make one commits. I have not found a way to reproduce the MagicWand feature in this console application again. I'll leave for later.

Suggestions for future improvements:

1 LightMeterRectangle will return the total intensity

2 CountAndMeasureObjects will return the total number of pixels in the rectangle.

Thank you

Poop

Tags: NI Hardware

Similar Questions

  • Find objects used by applications in the database schema

    I want to list all tables and indexes that are hitted by the front application (using SELECT the option only for now).
    Is it possible to find the name of these tables and the indexes of the scheme which are hitted using queries of the warehouse, where the number of tables and indexes are in thousands, using Oracle internal dictionaries?
    Thank you
    XXXXXXXXXXX

    Mikael says:
    It becomes expensive to implement monitoring or audit in the warehouse. So my question is:
    Is it possible to find hits using Oracle internal dictionaries?

    Yes

    Happening somewhere in the database?

    Yes, but only after the activation of AUDIT

    It is not enabled by default because it is expensive to build up this level of detail.

    There is no such Ting as a free lunch!

  • I want to use the Vision Assistant. I have NEITHER Vision Acquisition8.5.1

    I have NI Vision Acquisition 8.5.1 and a map of the video capture card. I am told that I must use the Vision Assistant to do what I

    necessity and that it is part of the installation. Where can I find or how to install.

    No I had not had the CD. I discovered today that NI Vision Acquisition 8.5.1 is software to control a card video capture card. Vision Assistant 8.6 is free to download 30 day trial of of NOR and then around £2800 purchase Web site. Thanks for your help. I'm now sorted.

  • CS6: Cerebral vascular accident/Exchange-Find object weight?

    Hi all

    First time using the find/replace in CS6 object query.

    I would like to look for or reduce a specific race on all chassis weight in my document (in this case, they are all graphics frames, but I can't make it work)

    I tried all the Executive Search, blocks of text, graphic images, in the Document, but the query is not all bad traits. (I watched a Lynda.com tutorial and it looked so easy, but I can't understand why he is not looking for them. (none of the objects are locked)

    Is there an attribute that I have to uncheck in the Options of Format object of research to ensure that it searches only the race? Thanks for any input.

    Here is an example:

    stroke example.JPG

    Try to search all images without find Object Format (leave empty)

  • Moving an object using the arrow keys

    I think I've changed the default distance to move an object using the arrow keys of 1 Point (1/72 inch). Can you help me change the default or tell me how to set the distance you can move an object such as a text field using the arrow keys. Thank you.

    It is based on your grid interval setting in the drawing AIDS palette. For a grid of 1 point, you would need apart 12/pc (although it says the points of the grid is picas, points 12-pica).

    I find 1 point too fine, I use a grid of 4/pc (3 points) and I have all my subject base around multiples of 3 measurements.

  • Why doesn't a USB drive I have previously used with AirPort extreme appear in the finder when used locally with my Mac?

    Why doesn't a USB drive I have previously used with AirPort extreme appear in the finder when used locally with my Mac?

    I tried to plug it into my mac to transfer files locally but will not be displayed in the finder or disk utility. Anyone know why?

    MacBook Pro (2015 retina) OS X 10.11.2 El Capitan

    Have you shut down / turning your Mac off... power off the USB drive... Connect the drive to the Mac... start up the Mac... then, turn on the USB drive?

    If no help, there are a number of posts to the thread in the forum El Capitan of support from users who have problems on their Mac USB.  You can post there to see if anyone has the answers.

    OS X El Capitan

  • I have a paid Hotmail/MSN account. No ads, more large spare part, etc. How can I find my use of storage capacity, so far?

    Storage space used with hotmail

    I have a paid Hotmail/MSN account.  No ads, more large spare part, etc.  How can I find my use of storage capacity, so far?

    Hello Robert Whitlock,.

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • I want to buy the original game of Rhem. The only copy I could find was used. I'll be able to reuse the game cd key to install it on my computer?

    OT:RHEM Cd Key

    I want to buy the original game of Rhem. The only copy I could find was used. I'll be able to reuse the game cd key to install it on my computer?

    Hi Matthew79,

    What edition\version of Windows you are running on the computer?

    Normally the games can be installed any number of times on the same computer with the product key provided. However, if you install the game on another computer be considered wrong licensing.

    Contact the game manufacturer for further information on licenses and buy the game.

    http://www.gotgameentertainment.com/contact.htm

    Thanks and greetings
    Ajay K
    Microsoft Answers Support Engineer
    ***************************************************************************
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • where to find and use the (HCL) hardware compatibility list for Windows xp3

    Original title: where to find and use the Windows (HCL) hardware compatibility list

    HCL for Windows xp3

    That does not "response" from MS Support Engineer Umesh was particularly useless.

    Unfortunately for you, the HCL XP (or Windows Catalog or Windows Marketplace or whatever it is renamed) no longer exists.  I guess Microsoft is not particularly interested in letting you know what the material is compatible with an operating system that is no longer, it sells and supports only.

    The trail begins here: "the latest Windows XP Hardware Compatibility List" (314062 KB) that leads to theWindows 7 Compatibility Center.  KB 314062 is also linked to the http://www.windowsmarketplace.com/ which used to have a list of compatible with XP hardware and software, but now redirects to the Microsoft store, another dead end that XP is concerned.

    If you really want to dig, your best bet is probably used the Wayback Machine (archive.org) looking for old copies of

    http://www.microsoft.com/whdc/hcl/default.mspx - but a lot of links are broken or "not supported" unless you use Internet Explorer 6 (the message claims 6 'or more' but 8 does not work).
  • How to generate QML objects using javascript?

    Hello

    I'm trying to generate new labels whenever the information is changed. I am aware of generate and load XML. However, I am looking for a way alternative simple generate labels or other objects using javascript. How to do this?

    This page contains an example to create components dynamically:

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__qmlcomponentdefinition.html

  • When a photo has for example a bright sky beside the dark object, using lights and shadows can cause a 'halo' or double edge to appear. How can I avoid this?

    When a photo for example has a bright sky next to the dark object, using lights and shadows to reduce high contrast can cause a 'halo' or double-edge to appear. How can I avoid this?

    From my experience, this isn't a problem that has a simple solution, such as moving a slider or a combination of the sliders in LR. It requires rather a major change in the technique, at the unit or in office. Some pros (I am not one) tire ALWAYS support HDR or this reason - better transition from highlights to shadows, then tweak the image with much less "heavy" necessary. Another popular technique is the luminosity masking and blending in PS. There is a ton of information on this topic (just do a search on Youtube), but it's not easy to learn or do, but it can eliminate this problem.

  • How can we display - hide or enable - disable the Captivate objects using javascript?

    How can one show - hide or enable - disable or change the color of the Captivate objects using javascript?

    All ideas, actually I want to avoid Advance Action assisted drop programming and want to do the actions of text encoding.

    You can show/hide and activate using the following syntax.

    CP. Show ("obj." + i)

    CP. Hide ("obj." + i)

    CP. Enable ("obj." + i)

    CP. Disable ("obj." + i)

  • find sql_id using the sql statement, including the carriage return and tab...

    Hello. all.

    I wonder how to find sql_id using a sql statement, including transport retrun and tab space multiple.
    To be more precise,

    My sql is:

    Select
    col_a,
    col_b,
    ..
    ..

    I usually use the following query to find the sql_id

    Select sql_id in v$ sql where sql_text like 'MY SQL STATEMENT %.

    When MY SQL STATEMENT includes carriage return and tab space multiple, how can I do?

    Thanks in advance.
    Best regards.

    Hello

    Did you look at regular expressions? Use regexp_like instead of as.

    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10759/conditions018.htm

    Kind regards

  • How to know the DB objects using the particular storage space

    Hi all

    I have a tablespace that is used by different database objects.
    I want to know what objects use this tablespace.
    How I know this?



    Thank you

    I have a tablespace that is used by different database objects.
    I want to know what objects use this tablespace.
    How I know this?

    Select nom_segment, nom_tablespace, segment_type, owner of dba_segments where nom_tablespace ='&TBS';

  • DBT instantiation of the object using constant variables

    Hello

    I use bdb 4.7.25 on freebsd 7.

    Here is my code snippet:

    -----

    Sub
    set ( const char * pData) {}
    ...
    TODO: Paths of unnecessary duplicates should be optimized.
    size_t dataLen = strlen (pData);
    char * dataBuffer = new char [dataLen + 1];
    strcpy (dataBuffer, pData);

    DBT key (& pKey, sizeof (unsigned long long)), given (dataBuffer, dataLen + 1);

    DbTxn * txnobj = NULL;
    env_.txn_begin (NULL, & txnobj, DB_TXN_NOSYNC);
    try {}
    DB [writeIndex]-> put (txnobj, & keys and data, 0);
    txnobj-> commit (DB_TXN_NOSYNC);
    } catch (...) {
    txnobj-> abort();
    }
    Remove dataBuffer;
    }
    -----

    Since then, the rest of my application, I use string c ++, I can get data as a const char *.

    And to put the data in BDB or tree B +, I'll need object Dbt, which accepts the char * only. So, I have to copy data unnecessarily and to free the memory allocated for each investment transaction.

    How we optimize it? How can we instantiate Dbt object using variables constant to use for the operation of investment on DB. "put" operation do not object of Dbt need to get the update, so it should there have supported the API for constant variables.

    I hope my question is clear and simple.

    You can do a 'const_cast(pData);"

    DB::put will not change your data in all cases. If you need to make sure that the block of pData memory is not accessible by other threads/processes during the Db::put operation.

    David

Maybe you are looking for