Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

scale invariant geometric pattern matching error

Solved!
Go to solution
Does anyone understand what MUKS is saying in this post. I have no clue and been dying to get this done. I didnot understand how he we are going to correlate line porofile and patterh matching.
0 Kudos
Message 11 of 29
(2,207 Views)

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.

Message Edited by Hornless.Rhino on 05-03-2010 09:34 AM
0 Kudos
Message 12 of 29
(2,193 Views)

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.

 

0 Kudos
Message 13 of 29
(2,184 Views)

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.

Message Edited by Hornless.Rhino on 05-03-2010 11:21 AM
Message Edited by Hornless.Rhino on 05-03-2010 11:22 AM
0 Kudos
Message 14 of 29
(2,178 Views)

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

0 Kudos
Message 15 of 29
(2,162 Views)

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.

Download All
0 Kudos
Message 16 of 29
(2,154 Views)

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?

0 Kudos
Message 17 of 29
(2,141 Views)

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.  

 

 

0 Kudos
Message 18 of 29
(2,111 Views)

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.

0 Kudos
Message 19 of 29
(2,102 Views)

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?

 

0 Kudos
Message 20 of 29
(2,082 Views)