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 
Return to the default flat view Create a new topic Submit Reply
Re: widen the edge [message #54483 is a reply to message #54390] Tue, 12 June 2007 14:59 Go to previous messageGo 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
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: Tue Dec 02 11:57:00 PST 2025

Total time taken to generate the page: 2.95858 seconds