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

Home » Public Forums » archive » widen the edge
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
widen the edge [message #54390] Tue, 12 June 2007 11:57 Go to next message
Rodrigo is currently offline  Rodrigo
Messages: 3
Registered: May 2007
Junior Member
Hi,

i have a image that represents the edges of one image. It is a binary
image, 1 where the border exists. Currently the width of the border
is constant. How can i widen the edge in this case?
Re: widen the edge [message #54479 is a reply to message #54390] Wed, 13 June 2007 05:37 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rodrigo writes:

> The image is inside a rectangle, and is an irregular edge ...
>
>
> I already tried dilate, but the widen seems to be only in x
> direction ...

Probably because you used a 1D structuring element.
Why so parsimonious about the details? You do want
help, don't you?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: widen the edge [message #54480 is a reply to message #54390] Wed, 13 June 2007 05:00 Go to previous message
Rodrigo is currently offline  Rodrigo
Messages: 3
Registered: May 2007
Junior Member
The image is inside a rectangle, and is an irregular edge ...


I already tried dilate, but the widen seems to be only in x
direction ...


thanks ...
Re: widen the edge [message #54483 is a reply to message #54390] Tue, 12 June 2007 14:59 Go to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
In article <1181674655.780525.235490@a26g2000pre.googlegroups.com>,
Rodrigo <rodrigo.itajuba@gmail.com> wrote:

> Hi,
>
> i have a image that represents the edges of one image. It is a binary
> image, 1 where the border exists. Currently the width of the border
> is constant. How can i widen the edge in this case?

Brute force. For an ni x nj image and border width of w pixels:

image[*, 0:w-1] = 1
image[*,nj-w: *] = 1
image[0 :w-1,*] = 1
image[ni-w: *,*] = 1

Simple to put in a function.


Ken Bowman
Re: widen the edge [message #54487 is a reply to message #54390] Tue, 12 June 2007 14:10 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jun 12, 1:57 pm, Rodrigo <rodrigo.itaj...@gmail.com> wrote:
> Hi,
>
> i have a image that represents the edges of one image. It is a binary
> image, 1 where the border exists. Currently the width of the border
> is constant. How can i widen the edge in this case?

DILATE?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Unpacking packed BCD in Ionosonde SAO files
Next Topic: IDL plot axes - how to show "range missing" squiggle?

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

Current Time: Wed Oct 08 19:18:34 PDT 2025

Total time taken to generate the page: 0.00603 seconds