Skip to content
Prev 10223 / 398503 Next

Clip contour or image

Pierre Kleiber wrote:
Hello Pierre,

as a first approach I have used a script similar to your antipiolygon.
However, the problem is that this will affect the graphics on
screen only (or in the graphics file) but not the image data.
If one needs the data to make additional computations (e.g. compute
areas 
and volumes of geostatistical data) a manipulation of the (1) image
matrix 
or the (2) contour lines is required. 

My approach uses method (1) but method (2), getting and
manipulating contour lines as vector data, would have some advantages.
Unfortunately,  method (2) would require a modification of the contour
source code plot3d.c which will exceed my knowledge about graphic
algorithms and R internals (see discussion "get vector data from
contour" in february).

Thomas Petzoldt