View Single Post
  #2   Spotlight this post!  
Unread 22-08-2009, 08:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview: Template Recogntion

As I was reading, I was wondering if you were really doing a color threshold on a grayscale image. I can't get vision asst to let me do that immediately following a plane extraction. If you have the original script and/or any idea of how you got it to do that, could you send that to technical support?

I'm also curious what the ultimate code looked like as doing a color threshold on a monochrome image will produce a runtime error. If it doesn't change the image, perhaps that would explain some of what you saw.

You shouldn't need to reload the template image. You may want to check that the operations downstream don't modify the image. If an image VI takes the template in as source and you don't wire up a fresh destination image, most blocks will modify the source. Another way this can happen is if the image names are not unique. IMAQ in LV is one of those old odd birds that aren't really dataflow. The image must be created, and the name makes it unique. I'm pretty sure that multiple creates named "fred" will then reference the same image and will affect each other.

If you go back to image asst and build the simpler script with just the plane extraction and template finding and generate code, do things work? I wonder if most of the issues aren't from an invalid script in the first place.

Greg McKaskle
Reply With Quote