Re: Dilating at image boundaries [message #46058] |
Thu, 03 November 2005 08:59  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Peter Albert writes:
> So the problem seems to be the structuring element extending outside
> the vector. Is this a bug or a feature? I don't know.
I guess it depends on whether you are selling the software
or trying to build something with it. :-)
For the programmer it certainly is a pain in the neck.
Typically, you have to add a "border" of pixels around your
image before you do the operation, then remove the border
when you are finished. A quick read of the Dimensional
Juggling Tutorial and the Array Concatenation Tutorial
will give you some clues on how to add the border efficiently.
Cheers,
David
---
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|