comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Average outline of several contours
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Average outline of several contours [message #37020] Thu, 20 November 2003 22:08 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Beat Schmutz writes:

> I have combined 8 contours of bone cross-sections into one image
> (individual ROIs in a IDLgrROIGroup). Now I like to determine the
> path/outline which represents the average of these 8 contours. Is
> anyone aware of a program/code/method that enables me to achieve this?
> Any help would be greatly appreciated.

The Matlab folks probably have a better idea, but
how about a purely graphical approach?

Assign the pixels inside each ROI a value. Say 10.
Draw each filled ROI on a clean image, as you draw
the ROIs add their pixel values. Do this with all
eight ROIs. When you are finished, divide the pixel
values by the number of ROIs. Pixels that were in
all eight ROIs now have a value of 10, pixels that
appear in some ROIs, but not others, have lesser
values. Now just contour the "blob" you have there
with the average value of all the pixels in the
image.

Wouldn't that be the "average" ROI path?

I don't know what I am doing answering IDL questions.
It is VERY late. (I'm getting to be as bad as Reimar,
working night and day.) Your mileage may vary with
this answer. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: read data from several files
Next Topic: Re: iTool Redeux

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:33:11 PDT 2025

Total time taken to generate the page: 1.04032 seconds