cancel
Showing results for 
Search instead for 
Did you mean: 

Set coordinate reference for template for pattern match

SOLVED
neelesh314
Member
Solved!

Set coordinate reference for template for pattern match

In vision assistant, we have the option of manually setting the coordinate system (the origin and the angle) while creating a template. I could not find a similar option in lab view (Learn template vi doesn't have the option of setting coordinate system). Any help will be appreciated.

6 REPLIES 6
PalanivelThiruvenkadam
Active Participant

Re: Set coordinate reference for template for pattern match

You can select the roi using mouse drag and with that selected roi you can extract the portion of image which you need to make as template. Then the extracted image can be learned to create a template with vision info
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
neelesh314
Member

Re: Set coordinate reference for template for pattern match

Hi..Thanks for the reply. I did use ROI to extract template. However I have no idea on how to set coordinate reference system to learn the template image. I can't find any such option in labview

 

PalanivelThiruvenkadam
Active Participant

Re: Set coordinate reference for template for pattern match

You need co ordinates to set roi in original image where template will be verified for matching pattern or do you need co ordinates for creating template itself.
Hope you don't need co ordinates during template creation as extracted image will be converted as an template after learning using imaq functions
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
BoKnows
Active Participant

Re: Set coordinate reference for template for pattern match

In your start menu, go to all programs -> National Instruments -> Vision -> Utilities.

 

The template editor is in that folder.  You should be able to create your template and then use it in LabVIEW similar to what you were experiencing with the Vision Assistant (I'm assuming you were using the standalone assistant?)

neelesh314
Member
Solution

Re: Set coordinate reference for template for pattern match

Thanks for the reply. I found the template editor under vision utilities and it is exactly what I want. However I wanted to do that in labview itself (without having to leave it). That's why I wasn't using vision assistant. Nevertheless, I manually created the option of setting coordinate reference system in labview and the problem is now solved.

BoKnows
Active Participant

Re: Set coordinate reference for template for pattern match

Message contains a hyperlink

The typical use case for templates requires the template to be built during edit time.  I'm not sure why it's not integrated into LabVIEW (even if just in the tools menu).  It sounds like you're set and you can move forward.

 

In case you were curious, you CAN modify your application to allow users to create a template during runtime.  Check out this KB: http://digital.ni.com/public.nsf/allkb/8E19CA81874FFDD786256BE40066C151

 

With this, you can call applications using the command prompt.  It lets you create an application that will call the Template Editor using the command prompt so your user can modify the template.  It takes a bit more work and isn't quite as common as creating the template during edit time.  But, it's a tool you may want for another day.