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

Home » Public Forums » archive » dilate
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
dilate [message #8313] Wed, 26 February 1997 00:00 Go to previous message
Achim Hein is currently offline  Achim Hein
Messages: 42
Registered: February 1996
Member
Some days ago, we spoke about ERODE and DILATE-Routines. To offer our
routines, we have to export them to 'C' - so the dilating routine too.
While testing the DILATE routine, we find a little difference between
the IDL/WAVE and the C-routines.

As I understand it till now it seems to be a problem in IDL or - there
is truly the possibility - I do not understand it right.

First of all, the dilation looks if only one pixel of an interesting
area (field) is equal to the structuring element before setting the
resulting pixel (middle of the structuring element) to one. The
resulting image has the same size as the incoming array.

So let us look the following example:

the field is given by:
..............
0 0 0 1 1 ... second row
0 0 0 1 1 ... first row

dilated with the structuring element:

0 1 0
1 1 1
0 1 1

I expect the result like this:
...
0 0 1 1 ... second row
0 0 1 1 ... first row

But IDL gives:

...
0 0 1 1 1 ... second row
0 0 0 1 1 ... first row

Can anybody explain this? Borderproblems?

Thanks

Achim
--
_______________________________________________

Dipl.-Ing. A. Hein
PB2 / ZESS - Uni-GH-Siegen
Paul-Bonatz Str. 9-11
57068 Siegen
Phone: 0271/740-3362
Fax: 0271/740-2336
Mail: Hein@nv.et-inf.uni-siegen.de
_______________________________________________

Please have a look at our Web-Sites:

http://www.nv.et-inf.uni-siegen.de/pb2/www_pb2
_______________________________________________
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Unsigned Integer Math Problem
Next Topic: GridData Conundrum

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

Current Time: Wed Oct 08 15:31:55 PDT 2025

Total time taken to generate the page: 0.00423 seconds