How can i measure distance ?

i am making afire fighting robot that us camera to detect the fire i made the vi which find the fire through match pattern but now i want to measure the distance between the camera (which on th robot ) and the fire (which located in the image using match pattern) so how can i measure this distance?
khaledyr 

Ok... this is sad, I should be asleep now instead I'm here thinking about this problem.
I've worked out how to do the distance caluclation with no extra H/W and only 1 camera - as Henrik said, the standard solution is triangulation, but you just want to measure distance, so I'm going to assume you're already pointing in the right direction.
Assumptions:
1) It is usual to use triangulation to to measure intenisity, this is because light will have 2 different distances to travel from source to sink.
2) It is possible to use 1 sink if you use mirrors to increase the path of the light so you can have 2 seperate source -> sink distances.
3) having 2 cameras (sinks) next to each other, one covered with a physical filter would have the same effect as the amount of light reaching the 2 sinks from the source will be different.
... following on from 3, it can be assumed that taking 1 image and applying 2 levels of filtering to it before processing will give the same result as if we had 2 different images. Careful setting of the software filter level will then allow it to remain contstant and then the system can be calibrated just as any other system would be calibrated:
Measure the intensity of the source from sink A at distance X
Measure the intensity of the source from sink B at distance X
Measure the intensity of the source from sink A at distance Y
Measure the intensity of the source from sink B at distance Y
If Y=2X the calibration calulation is easy....
Hope this provides more food for thought.
James
P.S. Lynn - currently a firefighter and worked for the emergency services ehh? Always good to see your posts when you have something to add. (Firefighter / Software programmer - what's the difference?)
Message Edited by James W on 04-22-2010 10:56 PM
Message Edited by James W on 04-22-2010 10:56 PM

Similar Messages

  • How can I change distance units to miles in Maps?

    My Maps app consistently shows distances in meters.  How can I view distances in miles?

     menu > System Preferences... > Language & Region > Advanced... > Measurement units: US.
    Maps needs to be closed and re-opened.

  • How can I measure the hertz in a wave form?

    How can I measure the hertz in a wave form?

    As an example, this is from BBC Technical Requirements for HD material:
    3.1.1 Stereo line-up tones
    All stereo tracks must use EBU 1KHz tone (left ident). All tones must be sinusoidal, free of distortion and phase coherent between channels.
    Digital Audio Reference level is defined as 18dB below the maximum coding value (-18dBFS) as per EBU recommended practice R68.
    See also:
    http://www.bbc.co.uk/guidelines/dq/pdf/tv/tv_delivery_to_network_programmes_v1.2-2011.pdf
    for full document.
    And for BBC Radio:
    Not every Network requires tone. Check the delivery requirements with the commissioning network or click here.
    Reference tone, where used, should be at -18dBFS or PPM 4 on A, B and/or M.
    If submitting material with reference tone, tone and programme material must be have been monitored and measured through the same technical chain. The level of the tone must be equivalent to 0dBu and no less than 8dB below peak audio level for the programme material.
    THE LEVEL OF TONE MUST HAVE A KNOWN RELATIONSHIP WITH THE LEVEL OF THE PROGRAMME MATERIAL AND THIS MUST BE STATED; for example: “Tone at 8dB below peak programme level”.
    As a newcomer to digital sound (my background is camera) I confess to being somewhat confused. We are normally told to record at the highest level possible. So for voice podcasts I tend to record at about -6dB below peak for maximum volume, distributeds on MP3 files.
    But I can underatand that televison and radio especially for analogue transmission) may have limited headroom, hence the requirement for -18dB peak = 0dBM.
    I remember when we first rented out Digital Betacam cameras, some recordists were recording almost everything OVER -18dBM.
    I suspect that until we have an all-digital world, these requiremnents will still be in place.
    Many thanks to all. It's a ghreat community!
    Brian Rose

  • How can I measure the Graphics Card usage? I.e. percent load

    Hello,
    How can I measure the Graphics Card usage, like with the processor in Task Manager, but instead giving a percentage usage for the graphics card instead? Is there an easy way to do this, or would it require a lot of code? Is it even possible?

    Ah, so It's unlikely that Java3D will include anything for reading this data then? I was really aiming at measuring the GPU usage under this API which although i have limited knowledge using, I do at least have some knowledge - I wouldn't have a clue how to access any other API's!
    I'm using an NVidia TNT2 card at the moment, which is quite old.

  • How can I measure TREX server.

    Hi,
    I'm from Nakisa forum as below.
    <How can I calc sizing of TREX server
    I'd like to install minimum TREX server for Nakisa.
    A document of nakisa is written about nakisa server but it isn't written trex server.
    <https://websmp209.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000728933&_SCENARIO=01100035870000000202&>
    I found SAP note 1266024 which is written about sizing guide line of Nakisa but it's so difficult to calc.
    How can I measure TREX server and which minimun sizing is best to use Nakisa?
    Hope you can help us.
    Best regards,
    Makoto

    Hi Makoto,
    try the infos for TREX under http://service.sap.com/sizing.
    They are not made for Nakisa. But I am sure you will be able to roughly map them to your use case.
    best, Karsten

  • How can I measure memory allocation of a Java Application?

    We built a web application that enables images to be loaded into a database through a servlet running on Tomcat. We have inconsistent behaivor when more than x number of people are loading images simultaneously. No doubt a memory allocation problem, but how can I measure it?
    For example, I'd like to be able to create a graph showing the resources used against the number of people making uploads. I am using Linux and Tomcat/Apache.
    I am hoping for something like Memory counters that are available for measurine Windows applications on MS Windows - comes with the Resource Kit. Does this type of tool exist for the Java/Linux market?

    It is difficult to gauge memory usage from a Java application as the JVM handles garbage collection and even if objects are not referenced they might still be sitting in memory until the next garbage collect.
    Anyhow, a way to query available memory is:
    Runtime.getRuntime().freeMemory()
    You can run this at the begining of a process and at the end and examine the difference. You should call System.gc() before each freeMemory() call in order to try to force garbage collection.
    Another method would be to turn to the underlying OS. On linux you could use 'top' or 'ps'. With ps you could do something like:
    ps -o rss,vsz,%mem <pid>
    Where <pid> is the parent Tomcat process' id. The resulting three columns are:
    - Amount of real memory used.
    - Amount of virtual memory used.
    - Percentage of real memory used.
    'man ps' wil give you more options on how to use ps.
    There are also fancy graphical stuff like 'gtop' as well.
    Hope this helps.

  • How can I measure how much Data I am using?

    As the headline say:-
    How can I measure how much data I am using?
    Thanks in advance.

    Not a problem at all - without wishing to push the point at all, the manual really is very good and worth a read ! although I must admit I have never read it all
    http://manuals.info.apple.com/en/iphoneuserguide.pdf

  • How can i measure the speed of the fan in sound and vibration signal simulator box

    how can i measure the speed of the fan in sound and vibration signal simulator box
    provided the values  tach out:2 pulses/revolution and  maximum speed = 6000rpm

    Hi. I tried your suggestion and I could not get it to work well. In
    fact it worked better without the running average (which suprised me).
    I also played with the number of data points but still could not get it
    to work well.
    Do you have any other suggestions on how I could sort this problem out?
    I
    have attached a screen shot of the signal. To recap, I'm trying to
    measure the'y' position of the flat regions of the signal. The signal
    does not have a constant level, so this 'y' position varies with time
    in a non-unform manner.
    I am currently differentiating
    the signal and selecting the y position when the differential is equal
    to zero (within a tolerance band).
    In the screenshot, the
    signal has been zeroed using the method I have described above.
    However, it occasionally has glitches which may be caused when the code
    picks up a zero gradient at a peak or valley in the signal.
    I therefore need some kind of algorithm that only measures the position of the flat regions.
    Many thanks
     John
    Attachments:
    screenshot.gif ‏121 KB

  • How can I measure selected area of pixels using photoshop elements 12?

    how can I measure selected area of pixels using photoshop elements 12?

    Show the 'information' panel F8).
    In the middle horizontal section, select 'pixels' on the left drop-down menu.
    Use the rectangular marquee tool to select your area: the dimensions in pixels of the rectangle is shown under 'dimensions' on the right.
    I think there are other ways to measure a line segment, but you could use the above measure by adjusting the rectangular marquee tools to both extremities of the segment,
    - use the move tool to rotate the rectangle so that the diagonal measuring the segment is horizontal,
    - move the rectangle to the left, and check validate, which creates another rectangle including the first one
    - read the pixel dimension (L:) in the info panel like above.

  • How can I measure the copy speed of my compact flashcard to folder?

    how can I measure the copy speed of my compact flashcard to folder?
    I dont have a stop watch.

    Hi Steve Zavodny;
    Generally compact flash cards or basically slow because of them being flash memory and USB. What are you after here?
    Allan

  • How can I measure a 0% or 100% duty cycle signal ?

    I want to measure the duty cycle of an input signal using a counter of a 6030-E board.
    I work with a PXI Rack under Labwindows/CVI.
    My program already works properly for duty cycle between 1% and 99%, but it is not able to detect 0% duty cycle (ie : signal to ground), nor 100% duty cycle (ie : signal to power supply).
    The problem is I don't understand how the counter works in such a situation (it cannot detect any edge, as long as the signal is continuous 0V or continuous 12V).
    Please have a look on the following code :
    1- First, the counter is configured
    // Reset Compteur
    i_Status = GPCTR_Control(iDevice, iCptID, ND_RESET);
    //Definition du type de mesure du compteur (mesure temps impulsion)
    i_Status = GPCTR_Set_Application (iDevice, iCptID, ND_SIMPLE_PULSE_WIDTH_MSR);
    //Definition de la vitesse d'echantillonage (20 Mhz)
    i_Status = GPCTR_Change_Parameter(iDevice, iCptID, ND_SOURCE, ND_INTERNAL_20_MHZ);
    //Definition du signal a mesurer (defaut)
    i_Status = GPCTR_Change_Parameter (iDevice, iCptID, ND_GATE, ND_DEFAULT_PFI_LINE);
    // initialisation du compteur
    i_Status = GPCTR_Change_Parameter(iDevice, iCptID, ND_INITIAL_COUNT, 0);
    // Preparation du compteur avant de l'armer
    i_Status = GPCTR_Control (iDevice, iCptID, ND_PREPARE);
    2- Then, every 10 ms, the value of the counter is read, so that I can calculate the duty cycle...
    i_Status = GPCTR_Watch(iDevice, iCptID, ND_COUNT, ul_val_cpt);
    3- ...and the counter is armed again for the next reading
    i_Status = GPCTR_Control(iDevice, iCptID, ND_ARM);
    When duty cycle changes from x% to 0% or 100%, the counter always keep the value corresponding to x%.
    Even if I reset the counter between each measurement, it keeps this value ! I don't understand how it is possible.
    How can I know that the counter didn't see any edge, and so that duty cycle is 0% or 100% ?
    Thank you in advance for your help !
    FraB

    Hi,
    Just have a look at this link, it can be interesting for you...
    http://forums.ni.com/ni/board/message?board.id=40&message.id=2161&requireLogin=False
    Regards
    DD

  • How can i calculate distance on Image in a pictureBox ?

    This is a screenshot of what i mean:
    In the screenshot i have a cone. The cone is moving around 360 degrees.
    In the form1 top i have this:
    private float distanceFromCenterKm = 200F; //in kilometers
    private float distanceFromCenterPixels; //in pixels 183pixels = 200Km
    Now in the constructor i did:
    numericUpDown1.Value = 260.5M;
    So now the distance is 300km
    Then:
    //initialize distanceFromCenterPixels
    distanceFromCenterPixels = (float)(/*183d*/ (double)numericUpDown1.Value * (double)distanceFromCenterKm / 200d);
    The numericupdown1 in the designer set the minimum value to 50 and maximum to 300 in jumps of 50.
    But now what i don't know is how to calculate the distance for example from the center to where the shadow start you can see in the screenshot that the shadow i mean just a bit before the 300km start. So i want that the cone will get untill the start of
    the shadow border. I'm close and i could keep playing with the values but how can i make that the numericupdown1 values will jump not by 50 but by some value/s so i can calculate easy any distance to any point ?
    Or something else maybe something like i'm using my mouse cursor when i make a click on a point some where in the image the cone will get to this distance(radius).
    So if i clicked with the mouse on the 300km on the image the value of the numericupdown will change to 260.5
    And if i clicked on the shadow border(will be hard to click exactly on the border) the cone will get to this distance.
    But my main question/problem is how to calculate any distance for example to this shadow border ?

    You simply should not go this way.
    Get a Map SDK and go on. 
    Microsoft has one. Probably for you is the best one the WPF one. AFAIK has it classes which you probably also can incorporate in your Windows Forms solution to get the Geo Information.
    https://msdn.microsoft.com/en-us/library/hh750210.aspx
    Success
    Cor

  • How can we measure the time of excecution of our Java program?

    i have a java application program which runs depend upon the user input.
    I want to analyze how my application works.
    So i want to measure the time of execution.How can i do it?

    makpandian wrote:
    ..i want to measure the time of execution.
    long startTime = System.currentTimeMillis()
    doTimeConsumingTask();
    long endTime = System.currentTimeMillis()
    System.out.println(  "The task took " + (startTime-endTime)/1000 + " seconds." ); Edit 1:
    I see I was 'too slow off the mark' by 5 minutes. ;)
    Edited by: AndrewThompson64 on Jul 19, 2009 10:58 PM

  • How can i measure a voltage with the digital i/o port on my nudrive using labview?

    I am using a 4SX-411 nu drive to control my stepper motor. I need to measure an input voltage at the digital I/O port of the nudrive. How can I program LabVIEW to do that?
    Thanks

    Hello Raven24,
    Thank you for contacting National Instruments. NUDrive 4SX-411 is a value motion drive and you can connect to it using any of the ValueMotion boards. When using a ValueMotion NUDrive with steppers you have I/O ports 1-4 available for general purpose use, I/O ports 5-8 are reserved for axis inhibit output signals. Refer to section 4-7 of the ValueMotion Hardware User Manual linked below, for information about the jumper settings.
    ValueMotion Hardware User Manual:
    http://digital.ni.com/manuals.nsf/websearch/6CF7A54E0BDEA1388625665F0054FFDF?OpenDocument&node=132090_US
    Once you have setup the jumpers appropriately, you can use the VIs found on the ValueMotion I/O & Limits pallet for configuring and using the I/O channels. Search for "I/O" in the attached help file for more information about these VIs. I hope this helps you out. Have a great day!
    Regards,
    Nipun M
    Applications Engineer
    National Instruments

  • How can I measure input voltages on a 7330 board and UMI 7764 with LabView?

    Hi,
    I would like to use LabView with the Motion Card 7330 card. Since both are NI products I wondered if such is possible, rather than just use the NI Motion software. I would like the ability to use some VI's that I make.
    Also, how can set up LabView and/or NI Motion to record voltages on the inputs? And how do I tell the card that the voltages I want to record are in the 0-10V range? I understand there are different configurations such as measuring -5 to 5 V or 0 - 10V, etc, and I just want to make sure I don't damage the card by putting in 8 V on the input, for example.
    Thanks for letting me know.
    Chris

    Chris--
           Basically, a limit switch or a home switch is a physical sensor that sends a signal whenever the system reaches that point.  So if there is a default position, or "home", then you would put one of these sensors there so that when the motor or stage is in this position the system software will recieve the signal and know. Limit switches are the same and are to prevent the system from going past the limits.
          You mentioned that you were looking in the installation guide.  This is a great resource to get started but only scratches the surface.  When you install the driver, NI-Motion, it will install to the programs list (Windows Start button >> Programs >> National Instruments >> NI-Motion)  a directory for documentation.  In this folder you can find the complete manual for motion; as well as, documentation for all of the boards.  This is a default, if for some reason you don't have it these manuals can also be found online.  Cross-referencing the motion and the motion controller manuals should get you most everything you need to know.  If not, then a search at NI.com is also helpful. You could use the general search and select support or there is ni.com/kb for all of the knowledgebase articals  There are lots of tutorials on Devzone about motion basics and programming.
         If you need anything though don't hesitate to ask!
    Regards,
    John H
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Inserting filename in a document

    How do I insert a filename into a document header?  Or replace a filename with an updated, changed filename? Using new Pages on iMac.

  • Make a 1-Click short cut for Adobe Acrobat 9 Pro specific function

    How can I make a 1-Click short cut for Adobe Acrobat 9 Pro for the function "Create" > "PDF from Scanner" > "Black & White Document"?

  • HDV imported from After Effect not playing smooth

    Hi, I work with HDV footage from Sony V1E in FCP. For some reason, i need to do a few things in AE. I then export it there, work it out and rexport it from AE. There I use the HDV 1080/25fps quicktime compression. When I bring it back to FCp, it even

  • Remove "My Signature" in the signature box

    Hi, Im new to Acrobat Professional. I have created plenty of forms and these require one or multiple signatures by different people. How can I remove the option "My Signature" in the signature box and only have the "Costumer Signature" option availab

  • How to configure "permitted actions" on bpel human task

    Hi, I trying to call suspendTask at human task from bpel. I get this message "Permitted actions are: [VIEW_SUB_TASKS, VIEW_PROCESS_HISTORY, RESUME, VIEW_TASK, WITHDRAW, VIEW_TASK_HISTORY]" Where i configure this "permitted actions" ? Thanks Victor Ja