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

Home » Public Forums » archive » Interpolation question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Interpolation question [message #25895] Wed, 25 July 2001 11:18 Go to previous message
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
I have an image containg some bad values. I would like
to replace these points with the average value of their
neighbors. Is there an easy way to do this without loops?

For instance, a 3x3 array as follows:

1 1 1
1 0 1
1 1 1

would become

1 1 1
1 1 1
1 1 1.

I can't get the boundary conditions to work correctly when
I use CONVOL. It either zeros the edges or does not process
them.

For instance,

1 1 1
0 1 1
1 1 0

should be

1 1 1
1 1 1
1 1 1

as well.


Kyle J.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Length of command line input
Next Topic: ellipsoid 3D

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

Current Time: Wed Oct 08 19:11:58 PDT 2025

Total time taken to generate the page: 0.00548 seconds