Jump to content

How to keep the first edge coordinate as reference?


Recommended Posts

Hi..

My program is to detect movement of an object using a webcam and Labview 8.5.1.

I used an IMAQ RAKE with 'top to bottom' scan direction to find the first edge of my object and I want to keep the coordinate of this first edge (X1,Y1). Then when the object moves, the IMAQ RAKE will find the first edge with same scan direction and the coordinates (Xi,Yi) are needed to calculate the distance of the movement (X1-Xi,Y1-Yi). And this calculation is running in real-time.

My problem is, when the IMAQ RAKE detect the very first edge (X1,Y1), how can I store this as a reference coordinate that I'm going to use in the calculation? Because in my current program, the coordinate will follow the current first edge detection, thus the distance will always be 0.

Many thanks.

Link to comment

QUOTE (Antoine Châlons @ Feb 26 2009, 05:09 PM)

Thanks Antoine.. Sorry for the late reply because I've to solve some errors before I can start using this shift register. This question may sound silly -> where do you get the cluster on the left of the image (containing location pixel, location real-world, etc)? Do I need to build it or it comes from specific VI?

Please refer to my image. I want to calculate the distance using the shift register. Can I just put a MathScript and wire the shift register from both sides?

Many thanks.

Amila

Link to comment

I think you will help yourself greatly by going through some example programs and a few chapters of an introductory text on LabVIEW; maybe a little tutorial on LabVIEW before you wade into trying to detect motion in an image.

Try looking up clusters, shift registers, and maybe a few image examples after you feel comfortable with LabVIEW.

We are all here to help, and I am not trying to discourage you, but your questions seem to indicate a lack of very basic labview knowledge.

Neville.

PS A mathscript node is the last thing you want to use in an image application. It is extremely slow and its main benefit is being able to run matlab scripts in a LabVIEW environment.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.