12-06-2007 11:02 PM
12-10-2007 08:42 AM
Hi wuliao,
This could be easily accomplished in NI-Vision Assistant. You can open an image and then add the Edge Detector step. Every Edge Detector step lets you draw a virtual line on the image and then detects edges on it. Since you can draw only one virtual line per Edge Detector step, you will need to add two such steps for your application. Since you can always distinguish between the outputs of the two steps, you will always know where a certain edge was detected.
Once you have the algorithm ready in Vision Assistant, you can export it to LabVIEW.
Please let me know if you need any more details.
Jaidev
12-10-2007 09:20 AM
12-11-2007 07:40 PM
Hi wuliao,
When you export Vision Asst code, you will have two edge detector steps. If they take only the ROI decriptor as input, try using the IMAQ Select Line.vi. It gives you a prompt (new window) to draw lines on the image and returns an ROI descriptor.
Jaidev
12-11-2007 07:43 PM
12-12-2007 10:49 PM
12-14-2007 12:06 PM
Hi wuliao,
You can use the IMAQ Convert Line to ROI.vi for this. You can find this in the Vision and Motion>>Vision Utilities>>Region of Interest>>Region of Interest Conversion palette.
Jaidev
12-15-2007 02:05 AM
12-18-2007 08:42 PM
12-18-2007 10:20 PM