the intersection of a line and two contour aneurysm in different angles
Show older comments
I have a medical image aneurysm I use to detect the edge contour, contour as both a disc, as I search ladistance between the two contour disc in different angles. Here is my image http://www5.picturepush.com/photo/a/12492133/100c/dicom/1.png:

Answers (1)
Image Analyst
on 24 Mar 2013
0 votes
You can use improfile(). Take a profile of your image along the blue line and examine the gray levels. The bright rings will show up as spikes in the profile. You can get the row and column coordinates by using bilinear interpolation knowing the distance of the spikes along the line and the starting and ending line coordinates.
9 Comments
zerr hamza
on 24 Mar 2013
Image Analyst
on 24 Mar 2013
Edited: Image Analyst
on 24 Mar 2013
I don't have time now, but try something like this:
[cx,cy, theProfile] = improfile([x1 x2], [y1 y2]);
spikes = theProfile > 128; % or whatever value the bright rings are.
theX = cx(spikes);
theY = cy(spikes);
I need to get going now but if you know how to program, I'm sure this will be a good start for you.
zerr hamza
on 25 Mar 2013
Image Analyst
on 25 Mar 2013
Not sure what that means. Do you have the Image Processing Toolbox, or the Signal Processing Toolbox? They will make it easy to find the peaks, with imregionmax() or findpeaks() respectively.
zerr hamza
on 25 Mar 2013
Edited: Image Analyst
on 25 Mar 2013
Image Analyst
on 25 Mar 2013
OK, so that might find the center of the circles, and plot a line in the overlay, but where are you calling improfile and thresholding it like I suggested? Do that if you want the distance between the rings for a certain angle. If you want the average distance over all angles, then you need to calculate the "EquivDiameter" with regionprops() and subtract them and divide by 2.
zerr hamza
on 25 Mar 2013
Image Analyst
on 26 Mar 2013
I don't understand what you said. Especially the words corrdonée, meme, and devoire. Can you get a native English speaker to proofread this? I don't have any ideas how your comment answered any of my questions about (1) whether you need the average distance over all angles or just a specific angle, or (2) where you used improfile() or why you chose not to use it.
zerr hamza
on 27 Mar 2013
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!