I need to measure a "blob" in an image...

Ok, here's the deal. I have an experiment setup where a blob of colored liquid spreads under a clear plastic sheet. I am using a normal digital camera to record the process. I'd like to use labview to automate the measurement of the blob. So... I need labview to take a standard AVI file, grab each frame and give back the maximum height and width (bounding rectangle?) of "circular" blob in that frame, and do so through the whole video clip. Can anyone tell me exactly what software I need.. (Labview and Vision Develop. Module?) and maybe some hints on how to do that in Labview...?

It sounds like you will have pretty good contrast between the blob and the background, so that shouldn't be a problem.
LabVIEW and the Vision toolkit should take care of your problem. You can use the AVI routines that come with IMAQ to read each image from the AVI file. You can do automatic thresholding to convert the image to a binary image, and use the blob analysis functions to measure almost any quantity you want - width, height, area, equivalent circle diameter, etc.
If you have any control over the creation of the AVI, set the quality as high as possible. Loss of detail due to compression is most likely to be your biggest problem.
Bruce
Bruce Ammons
Ammons Engineering

Similar Messages

  • I need to measure the frequency of a signal on Pin 39 (PFI 15) of a PXIe-6361 module.

    I need to measure the frequency of a signal on pin 39 (PFI 15) of a PXIe-6361 module.  All of the digital I/O pins are already assigned and in use.  The signal frequency range is 50KHz to 500KHz.  I have tried all of the sample programs for DAQmx Counter/Timer frequency measurement.  If I modify them to use my hardware, I get run-time errors with conflicts with resources already assigned.

    Hi Julia,
    Thanks for the response.  As I stated before, I have tried all of the examples available that apply.  There are only three and one of those uses two counters.  The two I have tried are:
      Examples/Hardware Input and Output/Counter Measurements/Digital Frequency/
          DigFreq-Buff-Cont-ExtClk-ArmStart.prj     and
          DigFreq-LowFreq1Ctr.prj
    These examples default to using what appears to be traditional DAQ hardware (Dev1/ctr0 and /Dev1/PFI0).  I changed the counter to mine (/PXI1Slot3/ctr3) and directed my signal source (PFI15 on pin 39) to the counter.  No matter what I tried would not run.  They would always compile but gave run-time errors ranging from resources already in use to “external trigger required”.  I have no external trigger source and, if I did, there is no indication of how to assign it to the counter.  NI has a very good X Series Users Manual that tells all of the great things you can do with the hardware, but there is NO CLUE how to do any of those things!!!!  I know that some NI DAQmx functions use hardware resources that they never tell you about.  I discovered that when trying to produce a single output pulse from a timer using counter #0.  (Which, by the way, no one at NI could tell me how to do it.)
    Measuring frequency should be very simple.  The unknown signal is routed through a precise gate to a counter, and then the counter is read.  NI DAQmx uses the opposite approach of using my signal as the gate and counting their internal source.  However, the examples would not let me use the internal reference sources.
    To answer your other questions, I am not performing any other measurements at the same time and the counter is not being used for anything else, period.
    Any help would be greatly appreciated.  Thanks again.
    Wayne K.

  • [svn:fx-trunk] 8531: If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.

    Revision: 8531
    Author:   [email protected]
    Date:     2009-07-13 12:25:57 -0700 (Mon, 13 Jul 2009)
    Log Message:
    If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.
    QA Notes:
    Doc Notes: SDK-22205.
    Reviewers: will be Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22205
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Revision: 8531
    Author:   [email protected]
    Date:     2009-07-13 12:25:57 -0700 (Mon, 13 Jul 2009)
    Log Message:
    If using an embedded font, need to measure the text with it so that if auto-sizing, the correct amount of space is allocated.
    QA Notes:
    Doc Notes: SDK-22205.
    Reviewers: will be Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22205
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

  • Regarding Need to measure the rotation count of the Compass either by clockwise and anti clock wise from 0 to 360 degree

    Dear All,
    Since I am new bee for labview, I want to count the no. of rotations that the compass will be rotating. I just did for one count, but I need to measure the count continuosly. Please some one to help me as soon as possible. Attached is me code. Please do the needful.
    Thanks and Regards,
    Dinsulpri
    Attachments:
    Compass Count.vi ‏10 KB

    The event structure reads the value and, depending on its last state and current state, makes a decision.  You should try to look at the logic in the different states and follow what it happening.
    Example -
    1> Start at low state and 10 degrees
    2> Control moves to 30 degrees.  Old state = low. New state = low (no change in count)
    3> Control moves to 15 degrees.  Old state = low. New state = low (no change in count)
    4> Control moves to 100 degrees.  Old state = low.  New state = medium (no change in count)
    4> Control moves to 330 degrees.  Old state = medium.  New state = high (no change in count)
    5> Control moves to 20 degrees.  Old state = high.  New state = low (going straight from high to low means we made a positive rotation. Increase count by 1)
    The limits determine the zones of the low, medium, and high states.  While the values I choose to use were arbitrary, you would not want to set them too low (or high) to minimize errors.  Try it yourself.  Set the low limit to 2 and high limit to 358 (this would make the medium zone from 3 -> 357).  If you were quick (or the mouse jumped) it might be possible to move from 356 degrees (medium zone) to 4 degrees (also medium zone).  So if set improperly you could complete a rotation but not know you changed zones.
    On retrospect though the best values would likely be in thirds (I.E., 120 and 240) to make the zones even?  I did not do too much testing.

  • Simple in line frequency counter? Need to measure 48hz variable resistor

    Confused.
    Been searching all day. Is there a simple way to measure if I've correctly adjusted a variable resistor from 50hz to 48hz?
    Below is the email to me from Russia, explaining how to adjust the variable resistor.
    This is variable resistor adjust a speed of motor.
    But, you need frequency measuring device for check a value of speed.
    You can connect measuring device to Pilot signal socket .
    50 hz signal = 25 fps.
    48 Hz signal = 24 fps.
    Other idea, you can take frequency from resistor R6 on PCb.
    25 fps = 500 Hz
    24 fps = 480 Hz.
    Attachments:
    image005.jpg ‏23 KB

    Hi Djwerk,
    This question might be better answered in the specific hardware forums if you are using an NI Data Acquisition Device or in the LabVIEW forums if this is strictly a software question. Could you give me some more information about the harware you are using/want to use to make this measurement?
    As a general solution, you could use a multimeter to simply measure the resistance as you change it. If you are applying a known current, you could measure the voltage across the resistor and calculate the resistance. If you want to directly measure the frequency, you could input an analog voltage signal into a DAQ card and use a Fast Fourier Transform in software to calculate the frequency of the signal.
    Zach P.
    Product Support Engineer | LabVIEW R&D | National Instruments

  • What do i need to measure muscle activity

    Can some body explain what i need to  measure muscle activity?
    i have a 6210  
    so  i have to buy emg sensors  but   ,do i need amplifier for this signal ?   can i use amplifier that i use for strain gauge's?
    what elso on hardware side do i need?

    You can buy low-cost bioamplifiers that have battery power (these are also safer to use) such as this: http://www.grasstechnologies.com/products/amplifiers/p55.html
    The AC line noise (50/60Hz) is not just from AC powered instruments - it is also radiated EMI that comes from lighting, wall wiring, etc. - it is very hard to avoid.  A good bioamplifier will reject this noise since it is common-mode (appears in both electrodes more or less equally) and only the difference signal is amplified and passed to the DAQ device for digitizing.
    Visit the NI Biomedical User Group at:
    www.ni.com/biomedusers

  • I need to measure analog signal

    I am using a Multifunction I/O 6052E card (PXI bus). I need to measure analog voltage and display it on the waveform chart of my block diagram using labview. How do I connect the analog voltage and what precautions need to be taken?

    Kumar2,
    This would be the typical LAbVIEW application and we have many examples and documentation on it:
    1) Read the User Manual for your board. (ni.com -> Support - Search for: +6052 +user +manual) This will let you know about the precautions that need to be taken to connect your signal, configuration modes and wiring considerations.
    2) Read the LabVIEW Measurements Manual. Start -> Programs -> National Instruments -> LabVIEW -> Search The LabVIEW BookShelf -> LabVIEW Measurements Manual. This is a great tutorial on how to perform data acquisition (DAQ) in LabVIEW.
    3) Use the DAQ shipping examples included in LabVIEW (Help -> Find Examples). These examples already show how to perform the acuisition of signals and display them to graphs or other indi
    cators.
    I hope this helps,
    Alejandro Asenjo
    National Instruments
    Applications Engineer

  • Why a container with a percentWidth need be measure while it's children size changing?

    hello my friends
    i was wondering why a container with a percentWidth need be measure while it's children size changing.
    i thought this container can only be measured again when its parent container resize.why it care about its children size chinging?
    what u think?

    Containers with % set their minWidth/Height to the measurements of their children.

  • How to display a blob as an image

    I am working on an application which stores images in a database as blobs. I need to extract these images and display them from a web page. How do I go about this using JSP or JSF?
    Werner

    Thanks for the quick response, matlas. I should have included more info in my original post. I am familiar with reading/writing blobs from the database. The part I am stuck on is how does the java servlet return the blob (dPhoto below), to the web page?
    i.e. from <img src="employeePhoto.jsp&empId=123">
    ImageIcon dPhoto = null;
    // open connection
    Connection photoConnection = startup.openSQLConnection(SQLDriver, SQLConnectionString);
    // setup select string
    String sqlStatement = "select Binary_Photo from employeephoto where Employee_ID = '"+employeeID+"'";
    try {
    // perform select
    ResultSet rs = photoConnection.createStatement().executeQuery(sqlStatement);
    // if record found process blob
    if (rs.next()) {
    // get blob
    Blob image = rs.getBlob("Binary_Photo");
    // setup the streams to process blob
    InputStream input = image.getBinaryStream();
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    // set read buffer size
    byte[] rb = new byte[1024];
    int ch = 0;
    // process blob
    while ((ch=input.read(rb)) != -1) {
    output.write(rb, 0, ch);
    // transfer to byte buffer
    byte[] b = output.toByteArray();
    input.close();
    output.close();
    // load final buffer to image icon
    dPhoto = new ImageIcon(b);
    catch (Exception exc) {/ do your exception processing}
    // close connection
    startup.closeSQLConnection(photoConnection);
    // dPhoto holds image or is null at this point.

  • Need guidance in displaying graphics shapes on image

    I would like some help drawing a circle over an image which is displayed in JScrollpane through JLabel, The goal is, whe we click over the image, the image apperas with a small circle in the place we have clicked. I have used JLabel for displaying image in JScrollpane by using imageLabel.setIcon(new ImageIcon("default.jpg"));
    I need to draw circle/rectangle when i click on image by this i need to select different points in the image by drawing circles/rectangles over the image.
    If you understand my problem than please guide me for the same.
    Thank you

    Don't post the same question multiple times. It's rude, as it leads to people wasting their time duplicating each others' answers.
    http://forums.oracle.com/forums/message.jspa?messageID=9385315#9385315
    http://forums.oracle.com/forums/message.jspa?messageID=9385314#9385314
    Need guidance in displaying graphics shapes on image

  • -Why when I open same PDF in Photoshop in opens as blank page (all the graphic info disappears)??? -And why when I'm trying to measure a page in the "image size" (in order to send to client, for example) the graphic info disappears as well??

    -Why when I open same PDF in Photoshop in opens as blank page (all the graphic info disappears)???
    -And why when I'm trying to measure a page in the "image size" (in order to send to client, for example) the graphic info disappears as well??

    Hi Mac Attack,
    My computer will not disconnect from the internet.  It seems to find a clone router and continues even when I shut down and unplug my my own home iy
    Your main question was 'chopped' in the title. Please reply in the body of a reply box with the full question and anything you have tried. And no, the long report was not helpful .
    If the same website is opening each time you launch a browser (Safari?) hold down the shift key as you launch to prevent previous pages from opening.
    Have a look at your settings in Safari > Preferences. Especially General and Privacy.
    Reset Safari to remove cookies and other stored data.
    System Preferences > General
    Have a look at your settings in System Preferences >  Security & Privacy.
    Call back with more questions.
    Regards,
    Ian

  • I have the f4500 all in one printer need to know how to mirror my image

    i have the f4500 all in one printer need to know how to mirror the image in easy terms

    Hi bbfoot,
    If you are having issues setting up your HP printer on your Mavericks machine, you may find the following article helpful:
    OS X Mavericks: Solve printing problems
    http://support.apple.com/kb/PH14142
    Regards,
    - Brenden

  • Need to know how to save printed image settings

    Photo printing setups; when printing a picture you have to make the following settings;
    (1) Select printer.
    (2) Printer Settings.
    (3) Select paper size.
    (4) Select Type of Prints.
    (5) Select print size.
    After doing this printing a draft copy or coming back a few day later wanting another copy printed.
    You go to edit load the file for picture to print, select create and you have to redefine the print all over again, this even after printing a draft copy and its OK and want to print 10 copies, you have to go back to Create and completely reset up to duplicate the draft picture you just printed.
    When save an edited and formatted picture all that is saved is the edited and format digital image file.
    I may want to print the image different sizes, on different types of paper, but Photo Shop doesn’t allow save the printed image files setup perimeter’s and tying the different print image setup to image file.
    So I have to maintain a file folder Excel files that list all the setup parameter’s need to print that uses this the image file as is primary image.
    Have I missed a Photo Shop function, that does this? 

    I thank everyone for the inputs, most if not all has been helpful.  If for no other reason than I am not used to this type photo printing. When most printing I did over my career has been mostly l technical drawings and there most if not all, were black and white and if you got the size printed right it was fine and nobody noticed.  But, now that I have retired I have more problems than before as I am now working more in not just color, but Photo graphs.  Then of course there is the ten years of technology I messed.  How I wish for the days when a program didn’t do what you wanted it too, you write your own code to add the function.  But, now security walls and the complexity of programs today you need a team of 10 programmers’ to do that.
      But, this not being able to sale the values of that print size, let alone color/shading, type paper, manufacture of paper and last but not lest printer and even its model. All of those effect color/shading of a print.  Just to day I have learned that the Application Program, OS driver and the printer can have color correction processingbuilt-n.  It’s no wonder what is on the screen doesn’t match what is printed.  And most of these color “correction” routines can't be enabled and disabled.  It is no wonder printing for one computer running the same Application and printing to two printers on that computer the prints are totally different.  At least now I know about them and know that every time I print the same image file I am go to have start all over  and work up all new printing parameters.  Use to be editing and formatting the image was 80% of the work, now it 20% of the work and printing is 80% of the work.

  • Powerpoint Mac 11.3.2 version converting to Google Docs Presentation, I'm told I need Quicktime and a compressor to view images. What does this mean?

    Starting with files in
    Powerpoint Mac 11.3.2 version converting to Google Docs Presentation, I'm told I need Quicktime and a compressor to view images. What does this mean?

    Were you using third-party software when the panic occurred? Is the panic repetitive or it just happened once? IN the latter case it could simply be a software glitch. But if it's repetitive then there's some other problem either hardware or software. Use the Console application in the Utilities folder and review the console log around the time of the panic to see if there are additional clues to the cause of the panic.
    The error indicates that the problem was a failure to respond to an interrupt by the CPU. Now this could simply be caused by a software glitch, but it could be a hardware problem related to the CPU. In the latter case the panic would probably become repetitive, in which case you would want to take the computer in for service to be sure the CPU isn't failing.

  • Comic project part 1:Need to pop. an array with 100 images(001.jpg-100.jpg)

    Hi guys. I am trying to break down my project logically. In the first part, I need to populate an array with 100 images, named 001.jpg through 100.jpg. Any takers?

    Well, I dont think its quite as complicated as it might seem. I dont want to build a comic reader that lets you download new titles. I want to build a page flipper that lets me flip back and forth between 100 images. Back button, forward button, website button in middle on the bottom.
    My goal is to post the completed code online for artists to use. I will see my comic start to finish to make sure it works. Then I will do another and finish the documentation (which goes from signing up as a developer, signing up the itunes connect banking information, and finishes with submitting the app). I want to provide artists with an easily customizable framework upon they can drop their comic images appropriately named into the project folder, and compile.
    Its a glorified slideshow, only one that requires a button push to advance. This way artists can be artists, not programmers. I had swiping as the interface (I have a 90% functional app, but there are changes that need to be made. Not a lot, but enough that I have to keep asking questions) until I realized that the comic can be read one handed, so I am moving to buttons! Doh!
    There wont be any updating. Each issue is self contained.
    Another issue with my sample code: it is set up now where I can name the images "image001.jpg" "image002.jpg" etc. This is a little cumbersome. I am hoping the array method will allow for the code to pull the images, and no one will have to trouble shoot 100 image names to find problems. I hope I am not being unclear in my explanation. Thanks for your kind words. My app works as is. But artists will immediately see the shortcomings. If I can fix only one or 2 small issues, it will be good enough for thousands of artists to pick up and use to sell comics. I have the source code for anyone that wants to take a look.

Maybe you are looking for

  • My ipod touch color won't turn on

    I've done everything I could and my ipod touch will not turn on.

  • Cannot install updates for CS5 photoshop on Mac, including Camera Raw 6.7

    I have been trying to use the update function on CS5 so that I can update Photoshop and Camera Raw so that I can work with RAW files from my camera.  Though the files appear to download, I keep receiving error messages that they failed to install and

  • Capitalization date from GRN date

    Dear All, i need a requirement to be configured in the system. when we are doing a GRN in MIGO  TC for a particular PO with asset ID 100200, the GRN date should pick up as the capitalization date in the Asset master of 100200. How to configure this.

  • WAIT = 'direct path read temp' in session

    Hi; select * from v$version Oracle Database 11g Release 11.2.0.1.0 - 64bit Production In our development system, a query "insert into X" using a couple of session global temporary tables, was running under 5 minuts, is now taking 40 minuts! Sql Devel

  • Manual Webservice -  TechnicalException: IO Exception while parsing wsdl

    Hi Gurus, I have been following the tutorial [Generating Webservice Manually for a Rule project (XSD)|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c082390a-035f-2b10-dc9d-befec4aff998?quicklink=index&overridelayout=true]. Steps