03-04-2010 02:39 PM
03-04-2010 04:32 PM - edited 03-04-2010 04:34 PM
From what I understand, the line profile is the template that the geometric match uses. Rather than an entire image like with the regular pattern match.
Edit: So you'll want to make a template based on the edges of one of the object, (NI Vision Assistant walks you through the steps), then when it runs it will find resized and rotated copies of the object.
03-04-2010 05:43 PM
Rhino
yes that is exactly what I want, but I am unable to get that done.
It seems Muks figured it out but I didnot explain me clearly what he
had done.
I am able to get and locate rotated patterns right now, but I am not getting scaled
images for some reason unknown to me. I mean the problem is so real time, just
in case if you move your camera backwards I have to create new templates once again
since the images get smaller.
Even in vision assistant when I tried to change settings of scale to 0 to 500 as MUks had
shown in his picture it says edit the template to adjust to scale as it wouldnot work the way it is.
I AM WILLING TO EVEN PAY ANYONE WHO HELPS ME WITH THIS PROBLEM.
03-04-2010 06:21 PM - edited 03-04-2010 06:22 PM
Arjun247 wrote:
Even in vision assistant when I tried to change settings of scale to 0 to 500 as MUks had
shown in his picture it says edit the template to adjust to scale as it wouldnot work the way it is.
Just checking, but you did tick the check box next to scaled?
If so, then it might be something to do with the line profile.
Can you show us a screenshot of your line profile? It seemed to work fine when I started from scratch with your greyscale image.
03-04-2010 08:25 PM
Rhino
Why dont you post what you did. the only thing that goes beyond my reach
how can one include line profile parameters with geometric pattern matching.
posting your code or atleast your screen shot could help me a lot.
thank you
Arjun
03-04-2010 09:36 PM
I've attached the result.
I'm using the vision assistant the same as muks is, so the code consists of
image->match geometric pattern
The template used was created by selecting the top left object, telling it to ignore some of the messy bits and using the settings shown.
03-04-2010 10:44 PM
We are suggesting the same thing. Can you post what you have tried? I am guessing you are stuck on a proper template creation. Anyway i will attch a vi and explain what i meant.
In the meantime let me again explain you what i meant. Now after pattern matching you are able to clearly extract indidual rectangles (containing colors). You can use the top,left points and subtract a some proportional pixels and keep that as finding the "line profile" and extend it to the end of the box. Now you can clearly have the color distribution.
Please confirm - Is this the thread where further discussion is going to take place?
03-05-2010 08:52 AM
Muks this is what you wrote. The discussio is going to take pklace in this thread only.
We are suggesting the same thing. Can you post what you have tried? I am guessing you are stuck on a proper template creation. Anyway i will attch a vi and explain what i meant.
In the meantime let me again explain you what i meant. Now after pattern matching you are able to clearly extract indidual rectangles (containing colors). You can use the top,left points and subtract a some proportional pixels and keep that as finding the "line profile" and extend it to the end of the box. Now you can clearly have the color distribution.
Please confirm - Is this the thread where further discussion is going to take place
See the highlighted post. u said after extracting the rectangles, Well here is clear picturte, I cannoot extract the rectangles in the first place which are smaller or bigger than the template, I can only extracting rectangles of same saize as the template. If I am able to extract the rectangles I would never make this post at all.
03-05-2010 09:29 AM
Rhino or Muks
can you please post your code beofre we continue any further posts.
That would help me understand exactly what you gus did.
03-06-2010 05:20 AM
Don't have labview on this computer (so I don't have any of the files available),but here's the code used.
In Vision Assistant the first task is aquire image (for this I just loaded your grayscale image directly).
The second item was match geometric pattern.
That was the total code in vision assistant.
I've given you the settings I used in match geometric pattern already. The only other variable is the template itself.
Interestingly enough when I tried to load the template you attached in your original post it said it was invalid.
How did you make this template?
Was it using "new template" from the match geometric patten settings in vision assistant or some other way?