scalardilate(X, f, ...)
"scalardilate"(X, f, ..., origin=NULL)
"scalardilate"(X, f, ..., origin=NULL)
"scalardilate"(X, f, ..., origin=NULL)
"scalardilate"(X, f, ..., origin=NULL)
"scalardilate"(X, f, ...)
"ppp"
),
a window (object of class "owin"
), a pixel image
(class "im"
) and so on.
"centroid"
, "midpoint"
or "bottomleft"
(partially matched).
X
by the factor f
relative to the origin specified by
origin
. The function scalardilate
is generic, with methods for
windows (class "owin"
), point patterns (class "ppp"
),
pixel images (class "im"
), line segment patterns (class "psp"
)
and a default method.
If the argument origin
is not given,
then every spatial coordinate is multiplied by the factor f
.
If origin
is given, then scalar dilation is performed
relative to the specified origin. Effectively, X
is shifted
so that origin
is moved to c(0,0)
, then scalar dilation
is performed, then the result is shifted so that c(0,0)
is
moved to origin
.
This command is a special case of an affine transformation:
see affine
.
affine
,
shift
plot(letterR)
plot(scalardilate(letterR, 0.7, origin="bot"), col="red", add=TRUE)
Run the code above in your browser using DataLab