Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

measure diameter (tickhness) from binairy picture

Solved!
Go to solution

Yes I've tried that, if I do a normal threshold the little vains will disapeare,

so I added a Sobel and Prewit filter, than I could see the vains but than

there is extra noise.

 

In the attachment there is a colored picture and a green picture.

with the green pictures I work!

 

The green picture I load in the program, than it turns into a gray picture

and take out only the vains (as good as it can)

 

Hmm the coloured picture is to big, so I can only attach the green picture

if you want the coloured picture you could give me you email 🙂

 

0 Kudos
Message 51 of 64
(1,669 Views)
Did you try canny edge detection?
0 Kudos
Message 52 of 64
(1,667 Views)
Tried it, but couldn't fixed te program.. 🙂
0 Kudos
Message 53 of 64
(1,665 Views)

The inverse Danielsson as you describe it would be interesting, but is not possible directly.  The current version starts at the known outer edges and works its way in until it finds the center.  There isn't an easy way to start at the center since it isn't known until after the Danielsson is complete.

 

If you AND your skeleton function with the Danielsson results, you should have all the width measurements along the center line of the vein.  I don't know if that would do you any good.

 

What is your final goal with this measurement?  Mean width?  Median width?  It is kind of difficult to get a vein network down to a single value.  If you had the option of measuring manually, what exactly would you measure?

 

Bruce

Bruce Ammons
Ammons Engineering
Message 54 of 64
(1,649 Views)

My final goal is that I have a vain network with a thickness of one,

those lines I will color and the must show how thick the vain is.

this has to be accured to +/- 2 pixels.

 

Than I have to count all colors and say how many percent falls in

certain range, that I will have to save in an excel sheet.

 

Chantal

0 Kudos
Message 55 of 64
(1,632 Views)

Try Skeleton M if at all it is going to help

 

mskel.JPG

 

 

 

 

 You can also use the circle detection and use "Overlay oval" to overlay the diameter you want. You can also use different colors to overlay different range of diameters. You can also deduce the bounding box data from x,y,radius and overlay rectangle if you want.

 

 

 

Message 56 of 64
(1,623 Views)

Turning out to be a pretty long thread...:smileywink:

 

any update?

0 Kudos
Message 57 of 64
(1,591 Views)

Hello,

 

So far not real updates,

I'm trying to write an algorithem but that takes time 🙂

 

I think the danielson functies is the solution for this problem, but I will also use the circle detection.

 

When my program is ready I will updat again!

 

Chantal

0 Kudos
Message 58 of 64
(1,565 Views)
Best of luck!!!!:smileywink:
0 Kudos
Message 59 of 64
(1,563 Views)

Hello,

 

I'm almost fineshed with my program,

but there only one ting I wanted to add,

it's probably verry simpel, but I dont't know how to do it.

 

If the users starts the VI, I want the user to pick a photo,

but how do I make a VI wich atomaticly asks the user to pick a picture?

 

Thanks!

 

Chantal

0 Kudos
Message 60 of 64
(1,410 Views)