How to measure on depth image

I am trying to measure the area of an object that has been captured by a ToF camera. 
The object is the round "sausage" like object. I am wondering how I should measure on the depth image?
I also have an RGB image and originally I considered to detect the object there, and then detect the coordinates for the ROI, and then go and read the values on the depth image. 
However due to poor lighting conditions that is a little difficult. 
I added the VI that loads and displays this image and the file for this image (the Depth_info vi is a sub vi).
Does anyone have a lead that could nodge me in the right direction?
Thanks. 
Attachments:
Load info.vi ‏1053 KB
3.txt ‏113 KB
Depth_info.vi ‏24 KB

Hello,
the simplest way would be to detect the object on the texture image and extract the corresponding depth values (if your texture and depth images are aligned/calibrated). But you've got the problem with lighting conditions. Can you improve this to illuminate the object more? Can the countours of the object be extracted on the illuminated texture image?
On the other hand, you could perform some sort of segmentation on the depth image to separate the measured object from the background and then calculate the area. Can you attach the X,Y,Z information of your scene?
Best regards,
K
https://decibel.ni.com/content/blogs/kl3m3n
"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

Similar Messages

  • How to measure water depth in front of a tire

    How much water (depth) does a automobile tire encounter as it travels down a wet roadway? In, particular, what is the water depth encountered by a front tire compared to a following rear tire? This is an issue of safety and control analysis. Could water depths be measured under dynamic conditions by RF source and sensor? Only average values over, perhaps, one second, need be measured. A method of such measurement would be a valuable automotive research tool. Anyone have any ideas??

    Perhaps there are non-contact ranging sensors you can use to try to determine the depth of the water by mounting them immediately before each tire. You could set up one sensor to determine the distance between the chassis of the automobile and the ground. The second sensor can be used to determine the distance between the chassis and the surface of the water. This, of course, would be dependent on whether or not such sensors exist, and if so, whether or not it could be calibrated to detect the surface of the water accurately.
    Continuing on with my brainstorming, perhaps you could develop a sensor that will float or skip across the surface of the water immediately before the tire. The sensor could be mounted on a trailing-arm type apparatus, and can move
    up and down as the height of the surface of the water changes with respect to the chassis (like a waterski on the surface of the water). But you'll likely need to also measure the distance to the ground so that you can remove variation of the suspension height to get the actual depth of the water, especially as you go over bumps or irregularity in the road (assuming non-ideal conditions). Perhaps you could also get that data by measuring the location of the axles relative to the chassis, which could also provide information on how far the chassis is from the ground.
    You could also contact an NI alliance partner to see if they have application ideas on measuring the depth of the water. http://www.ni.com/alliance
    Hope this gives you some ideas!
    Regards,
    Wilbur Shen
    Applications Engineer
    National Instruments
    P.S. The Measure category is for the software product called Measure from NI, so your post would actually be more accurately posted in the "Sensors" category.

  • How to measure the shift between two resembling images using LabVIEW?

    I am running an experiment in which I use a microscope to map the surface of a laboratory sample and due to some small drift consecutive image appear displaced. In order to correct for the drift I need to first measure it, which I can do by recording two images and finding the shift between. Because of some small random noise which adds to each image, the features in two consecutive images are not completely identical, but they do resemble each other very well. Do you have any suggestions on how to measure this image shift (in both x and y) using LabVIEW (I have version 8.20)?

    Hi, thanks for the answer, I´ll try to see if a 2D cross-correlation will work. I also attached two typical images with a small shift between them (there is also some change in background between them, but I belive the shift should still be measurable).
    Attachments:
    Image1.png ‏285 KB
    Image2.png ‏267 KB

  • How to measure the performance of sql query?

    Hi Experts,
    How to measure the performance, efficiency and cpu cost of a sql query?
    What are all the measures available for an sql query?
    How to identify i am writing optimal query?
    I am using Oracle 9i...
    It ll be useful for me to write efficient query....
    Thanks & Regards

    psram wrote:
    Hi Experts,
    How to measure the performance, efficiency and cpu cost of a sql query?
    What are all the measures available for an sql query?
    How to identify i am writing optimal query?
    I am using Oracle 9i... You might want to start with a feature of SQL*Plus: The AUTOTRACE (TRACEONLY) option which executes your statement, fetches all records (if there is something to fetch) and shows you some basic statistics information, which include the number of logical I/Os performed, number of sorts etc.
    This gives you an indication of the effectiveness of your statement, so that can check how many logical I/Os (and physical reads) had to be performed.
    Note however that there are more things to consider, as you've already mentioned: The CPU bit is not included in these statistics, and the work performed by SQL workareas (e.g. by hash joins) is also credited only very limited (number of sorts), but e.g. it doesn't cover any writes to temporary segments due to sort or hash operations spilling to disk etc.
    You can use the following approach to get a deeper understanding of the operations performed by each row source:
    alter session set statistics_level=all;
    alter session set timed_statistics = true;
    select /* findme */ ... <your query here>
    SELECT
             SUBSTR(LPAD(' ',DEPTH - 1)||OPERATION||' '||OBJECT_NAME,1,40) OPERATION,
             OBJECT_NAME,
             CARDINALITY,
             LAST_OUTPUT_ROWS,
             LAST_CR_BUFFER_GETS,
             LAST_DISK_READS,
             LAST_DISK_WRITES,
    FROM     V$SQL_PLAN_STATISTICS_ALL P,
             (SELECT *
              FROM   (SELECT   *
                      FROM     V$SQL
                      WHERE    SQL_TEXT LIKE '%findme%'
                               AND SQL_TEXT NOT LIKE '%V$SQL%'
                               AND PARSING_USER_ID = SYS_CONTEXT('USERENV','CURRENT_USERID')
                      ORDER BY LAST_LOAD_TIME DESC)
              WHERE  ROWNUM < 2) S
    WHERE    S.HASH_VALUE = P.HASH_VALUE
             AND S.CHILD_NUMBER = P.CHILD_NUMBER
    ORDER BY ID
    /Check the V$SQL_PLAN_STATISTICS_ALL view for more statistics available. In 10g there is a convenient function DBMS_XPLAN.DISPLAY_CURSOR which can show this information with a single call, but in 9i you need to do it yourself.
    Note that "statistics_level=all" adds a significant overhead to the processing, so use with care and only when required:
    http://jonathanlewis.wordpress.com/2007/11/25/gather_plan_statistics/
    http://jonathanlewis.wordpress.com/2007/04/26/heisenberg/
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to display multi-channel image in the 'proxy'?

    There're many examples to show how to display composite channels in the 'proxy'. But I don't find any example to show how to display multi-channel image in the 'proxy'. I found that I can use PSPixelOverlay to display alpha channel data like this:
    int nSpotChannel = gChannelCount - 4;
    PSPixelOverlay* overlay = new PSPixelOverlay[nSpotChannel];
    for(int i = 0; i < nSpotChannel; i++){
           if( i != (nSpotChannel - 1) )
                 overlay[i].next = overlay + i + 1;
           else
           overlay[i].next = NULL;
           overlay[i].data = gChannelData + (4 + i) * nPlaneBytes;
           overlay[i].rowBytes = gProxyRect.Width() * gDocDesc->depth / 8;
           overlay[i].colBytes = 1;
           overlay[i].r  = 230;
           overlay[i].g = 161;
           overlay[i].b = 174;
           overlay[i].opacity = 255;
           overlay[i].overlayAlgorithm = kStandardAlphaOverlay;
    pixels.pixelOverlays = overlay;
    Then, Seeing red part, it will trigger a new problem, that is how to get the color value of the alpha channel by plung-in itself? It seems that no channel color value info is in FilterRecord.
    If you have other solution, please tell me. Many thanks!

    This is what I've been doing - was just curious if there was a way to see a more cohesive image.
    If the individual EQ plugins are in fact the answer, is there any way to smooth how the Analyzer displays? The image I posted above, all of the tonal curves are very smooth. The analyzer tool shows a lot of peaks and valleys within the overall curve and it's hard to pinpoint each instrument's "sweet spot." Vocals for example are very hard to spot.
    - Morgan

  • How do I get an image from Picasa and transfer it to photoshop to work on it.?

    how do I obtain an image from picasa and bring it to ps to work on it?

    Are you using a Windows system, and do you have File Explore set to show extensions?  I am wondering if the file name might look like:
    'Starbirds Picture.jpg.tiff'  ?
    The fact that you say the image looks different after reducing its bit depth makes me think you are right about it being 32 bit, but as Chris said, it can't be a JPG.
    Your computer monitor is not capable of displaying the full tonal range of a 32bit image produced by an HDR program like Photomatix or Photoshop, so it has to make compromises.  You have to chose what process to use to reduce its bit depth to give it the look you are after.  I prefer Photomatix for HDR.  If you install a trial version and open your 32 bit image in it, you can then chose one of the options to convert it to 16 or 8 bit.  These might be Tone Mapping, Exposure Fusion, or Tone Compression.   Tone Mapping is the option that produces the typical HDR look.
    But you are using Photoshop.  I haven't noticed what version you are using, but Google Photoshop (your version) HDR processing, and you'll see how to control the end look of the image.

  • How do you set an image into the background of a JPanel or JFrame?

    How do you set an image into the background of a JPanel or JFrame?

    Something like this, Ive thrown in an ImageIcon on a
    button too for good measure.
    import java.awt.*;
    import javax.swing.*;
    public class JFrameImage extends JFrame {
    public JFrameImage() {
    Container c    = getContentPane();
    JPanel panel = new JPanel(){
                 public void paintComponent(Graphics g)     {
    ImageIcon img = new
    = new ImageIcon("background.jpg");
                      g.drawImage(img.getImage(), 0, 0, null);
                      super.paintComponent(g);
            panel.setOpaque(false);
    ImageIcon icon = new ImageIcon("onButton.jpg");
    JButton button = new JButton(icon);
    panel.add(button);
    c.add(panel);
    public static void main(String[] args) {
    JFrameImage frame = new JFrameImage();
    frame.setSize(200,200);
    frame.setVisible(true);
    Going totally fancy pants
    ImageIcon bigImage = new ImageIcon(bgImage.getImage().getScaledInstance(getWidth(), getHeight(),Image.SCALE_REPLICATE));
    g.drawImage(bigImage.getImage(), 0, 0, this); Will scale the image to the size of the panel
    whereas
    for (int y = 0; y  < getHeight(); y = y + image.getHeight(null))
    for (int x = 0; x< getWidth(); x = x + image.getWidth(null))
    g.drawImage(image, x, y, this); Will give a tiled effect
    Try tiling with an animated gif and bring your processor to a standstill.

  • How to measure frequency

    hi i have made FM Jamer circuit in multisim 13 , my circuit image you can see below , now i want to measure the Measure Frequency which is Generated it L1 Inductor , so i do not know how to measure frequency in multsim , please help me , or also it would be good to use Antena instead of inductor or not , i have not see any Antena component in multsim 13 

    Hi Zahis,
    The measuring probe measures frequency, this video shows how you can use a probe in Multisim:
     http://www.youtube.com/watch?v=xKEQ3EXEaP8
    Tien P.
    National Instruments

  • How to load a tif image in flex

    Hi All,
    Is it possible to load a tif image in flex. If it's possible
    anyone guide me or send me some code snippets regarding how to
    display a tif image in flex.
    Regards,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:ga2d96$p8h$[email protected]..
    >
    Hi All,
    > Is it possible to load a tif image in flex. If it's
    possible anyone guide
    > me or send me some code snippets regarding how to
    display a tif image in
    > flex.
    Convert it to the much more web-friendly png format.

  • How do I use copyprofile, image manager and create a wim file to Sysprep a reference Windows 8 computer.

    Im trying to deploy a reference machine (configured) to other machines (exact or close image) with different hardware.
    I have successfully used sysprep in out of the box, generalise, shutdown mode although i havent tried to deploy this to another device.  Unfortunately it doesnt copy the profile to default.
    I understand that I have to create an answer file using image manager based on that image, save it to a usb drive and attach this in the sysprep command line when sysprepping it.
    My problem is I dont know how to easily capture an image of windows 8 into a wim file so that i can add this into image manager to create a answer file.  Im also not sure what I have to do in image manager, is it a simple matter of creating and saving
    the answer file or do i have to configure it to copy the profile specifically (theres only one account anyhow).
    I also want to know if i have to attach the drivers or are all the standard drivers put into the sysprep image as standard.  I would like the machine to be an exactly replica, same as doing a clone (but with the drivers for the new machine installed
    so it will boot) same as doing a clone and then repair? If thats possible.
    Any specific instructions on this would be helpful.  I have read the microsft links but they are somewhat confusing.

    I know this is a very late response but I thought I'd post for others who search.
    The easiest way to create the .wim file is via WinPE, this guy's two YouTube videos explain the entire process in detail - 
    Windows 8 ADK Part 1: Capture an OS image - https://www.youtube.com/watch?v=XJ8zKX_8E9w
    Windows 8 ADK Part 2: Windows Image Deployment - https://www.youtube.com/watch?v=HHIvoqSw_FI
    Here's a quick rundown from my notes:
    WINPE
    Create WinPE via imaging tools command prompt
    copype amd64 c:\winpe
    makewinpemedia /iso "c:\winpe" "c:\winpe\winpe64.iso"
    UNATTEND
    Open Windows System Image Manager
    Configure unattend.xml
    Save unattend.xml to sysprep folder
    Create script and save it to sysprep folder to launch sysprep with unattend
    @echo off
    cd C:\Windows\System32\sysprep
    Sysprep /oob /generalize /unattend:C:\Windows\System32\sysprep\unattend.xml
    SYSPREP
    C:\Windows\System32\Sysprep
    Run as administrator
    OOBE/Generalize
    Shutdown
    CONFIGURATION of WINPE
    Set IP - netsh int ip set address "Local Area Connection" static 192.168.1.2 255.255.255.0 192.168.1.1
    Set DNS - netsh int ip set dns name = "Local Area Connection" source = static addr = 192.168.1.4 validate = no
    Map Network Name - net use z:
    \\WindowsADK\reflex\images password /USER:domain.local\username
    DISKPART
    diskpart
    list disk
    select disk zero
    list partition
    select partition 2 (OS partition #)
    Assign letter=S (assigns drive letter to partition)
    Exit
    DISM
    dism /capture-image /imagefile:z:\image.wim /capturedir:s:\ /name:"Windows 8.1 Custom"
    Verify image is saved in the image share (z:)
    http://www.microsoftfanboys.com

  • How do i make an image pause in a flash movie clip

    Please can someone help me. I am trying to find out how to pause or stop an image in a basic flash movie clip,  after it has entered from one side and before it exits the other side.
    I have been trying to work it out myself for three days but no joy. I am practicing  for a test with a training agency which gave me a disk to use but nowhere in it does it say how this is done. I am also having a lot of difficulty making stop start buttons work with this movie clip. I am using a trial cs5.5 version of Flash which expires in 7 days so i need to know this soon. I am up to speed on most of the features, its just this one thing that has me stumped. A lot of the tutorials or examples  i have found on the net are very long winded and hard to follow exactly. Could someone let me know, step by step the sequence i should follow after i have created an object  and made it go from one side of the stage to the other.

    Hi
    Thank you for getting back to me. Yes i am using a timeline tween. I have an image on my stage which moves in from one side and out the other side. I am trying to stop or pause the image. The effect i will be asked to reproduce in my exam will be something very much like the banner on the website http://www,iactweb.com. If you go to this website you will see images arrive on the banner and pause before exiting the other side. I am fairly up to speed on all the aspects of getting this effect but i have forgotten what i learned during the course on how stop or pause the images. I am using the trial cs5.5 version of flash . Thanks again for getting back to me.

  • How do I substract an image at the time t with an image at t-1 to detect move in a grab acquisition

    After the VI acquire in a grab acquisition, how do I substract an image at the time t with an image at t-1 to detect the movement in the scene?

    Hello,
    One way of doing that is to do a ring acquisition with two buffers. At anytime one of your buffers will be the most current frame and the other will be one before the most current. Having both buffers available at anytime in your code you can call IMAQ Subtract.
    Hope this helps!
    Yusuf C.
    Applications Engineering
    National Instruments

  • How to make an icon image using Photoshop

    I found out how to do this recently so I decided that I wanted to make a tut for those who don't know how to make an icon image. This icon image is for the libraries tab on your computer. Under the libararies tab there is Music, Pictures, Documents, and Photos
    First you will need the ICO (Icon image format) Format extension for photoshop which can be downloaded here:
    http://www.telegraphics.com.au/svn/icoformat/trunk/dist/README.html
    The download link and tutorial on how to install it is all in the link above.
    Once you have that all set you can now launch photoshop to create your icon image. Once you have launched it, create a new document with the size as in the image below.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/256x256_zpsbf3dcf8e.png~original[/IMG]
    Create the image you want. I used a simple one by using the custom shape tool by pressing "U" on your keyboard and with the
    basic blending options.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/IconImage_zpsd788c709.png~original[/IMG]
    The reason why the image is pixelated is because it is an icon image. Since the image is only 256x256 pixels when you zoom in on it that will get you the pixely result. The reason why I zoomed  in is so you can see it. But don't worry this is no the end result. Just continue reading and you will see.
    So once you have created the icon go ahead and press
    file>save as>(under format choose the ICO)>and choose the name that you want to name it. And save it in your C: drive. You will see why to save it in your C: drive in a sec.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/SampleicoPic_zpsd252bfba.png~original[/IMG]
    So now that you have created the icon and saved it now you can create the new library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/NewLibrary_zps8ca703b2.png~original[/IMG]
    Name the library whatever you want I named it "Sample" for tutorial purposes. Notice how it gives you a default boring icon image for your library.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Sample1_zpsb5472840.png~original[/IMG]
    So now once you have created and named your library now it is time to get the icon image into place.
    Go to computer/c: Drive/users/YOU/ And now once you have reached this area you will need to access a hidden folder named "appdata" to do so press "Alt" then a menu bar will show. Click
    tools>folder options>and view. Find the option to view hidden folders then press apply then ok. Now we shall continue so AppData>Roaming>Microsoft>Windows>Libraries
    Now you should see all the libraries including the one you just created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/showhiddenfolder_zpsad4a3c94.png~orig inal[/IMG]
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Libraries_zpsf6243bc0.png~original[/IMG]
    Once you have reached your destination then open a new text document with notepad and drag the library you just created in notepad. The result should look like this:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Notepad_zps251a86f0.png~original[/IMG]
    once you have reached this point click at the end of the second to last line down then press enter and enter in this information
    <iconReference>c:\"NAME OF ICO FILE YOU CREATED IN PS".ico</iconReference>
    Example:
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/iconreference_zps1c1a3eca.png~origina l[/IMG]
    Once you have entered that information go to file>save and the icon image should appear on the library you created.
    [IMG]http://i1297.photobucket.com/albums/ag25/dusty951512/Finished_zps267f893a.png~original[/IMG]
    Now you are officially finished. Go and spread the news and joy. Bye for now
    -Dusty951512

    It is Windows only because all those screen shots are exclusively Windows, the file structure and paths do not resemble those of the Mac in the least.  As a Mac user, there's nothing I could take from your tutorial.  Sorry, 
    No drives named with letters like C: on the Mac, for instance.  No backward slashes either, ever.  No such paths either.  No "Notepad" on the Mac, we use TextEdit; but such a text editor is not remotely needed on the Mac to make and/or edit icons.  Etc.
    Those folders are not even called "Libraries" on the Mac…  Nothing resembling your tutorial at all.
    The icons in the Finder's Sidebar are not customizable at all in recent version of OS X.
    =  =  =
    You can edit any post of yours only until someone replies to it.  At this time your post is not editable by you any longer.

  • How do I copy an image from pdf file using preview?

    I've done this before from the same pdf file but can't remember how I did it.  Does anyone know?

    I tried that and heard the camera shutter go off now how do I retrieve the image?  Where is it on my computer?
    Where did you check?
    Screen shots are suppose to be saved on your desktop.  See KB Article:  http://support.apple.com/kb/PH11229
    If that is not where there are going, do a manual search.  Check inside your Download folder for starters.

  • Java Application [Java Bundler]: how I can use an image? Which path?

    Hi,
    how I can use an image in my Java Application when I create the jar bundle with Jar Bundler? Which is the path of the file? I don't know if I got it across...

    By image, do you mean an icon for your program?
    If so, then you need to create the image you want using any graphical drawing program, then use a utility such as Img2icns to put the image into the correct format (.icns). Once you have this, you can drag it into Jar Bundler and IIRC it just works.
    Bob

Maybe you are looking for

  • Colors using Apple TV versus a DVI to Video Adapter

    Apple TV does not generate identical colors on my Panasonic flat screen (even when I adjust the screen's tint and/or colors) when I view iPhotos or videos (trailers, rented movies, homemade movies, etc.). However, Apple's DVI to Video Adapter (which

  • Problem with access rights by using UTL_FILE

    Hi all, Could you please help me with the following problem. A search on this forum did not result in the final solution: - We are using an Oracle XE database on an Oracle VM instance - I want to export a lot of data to the filesystem, by using UTL_F

  • Can't delete songs & ipod appears twice under "devices" in itunes

    I have two problems that started at the same time and are probably related. [Note - The problems described here occur on two different machines with this particular ipod (mine) & does not with my other one (my wife's).] Problem #1 I can not delete an

  • How to implement single sign-on using java?

    I need your help regarding the following task, please go through it and tell me if you have a solution to it. DSOWeb is a portal which has links to all the reports generated from Microstrategy8.0.1 (MSTR) [it is another tool which generates the BI Re

  • G5 starts keeps asking for restart after 1st. application is started

    I have a three year old G5 that has always worked fine, suddenly this week the fan started racing at high speed and locked up, the only way I could stop it was to unplug it. Since that time it starts normally including fully loading up all programs a