Skip to content

smoothing contours (image.smooth)

3 messages · Roger Bivand, F. De Sales

#
Hi all,
    I was wondering if anyone in here is familiar with
the command "image.smooth".
    How can set the arguments dx, dy and theta to
minimize the smoothing?
    Is there any other way to get smoother contour
maps, ie, without so many sharp corners?
    I'd appreciate any help.
    Thank you very much.




      ____________________________________________________________________________________

[[elided Yahoo spam]]
#
On Thu, 24 Apr 2008, F. De Sales wrote:

            
Read ?image.smooth in the fields package, and run the examples with 
various values until you can see what they do, with the alternative of 
reading the source code.
The function is not adding any information, so if there are sharp corners 
in the contours, then there are sharp corners in the data, and smoothing 
is not your friend. One possibility is to change the resolution of the 
image, which should remove sharp boundaries that are only artefacts of the 
resolution - for example by interpolating to a denser grid.

Roger

  
    
#
Thanks for your help.
    I tried different dx, dy and theta values,
however, the results matrix was too smooth and some of
the main feature disappeared.
    I was just looking to get the contour lines
slightly smoother.
    Thank you.
--- Roger Bivand <Roger.Bivand at nhh.no> wrote:

            
____________________________________________________________________________________
____________________________________________________________________________________

[[elided Yahoo spam]]