rescale.im(spatstat)
rescale.im()所属R语言包:spatstat
Convert Pixel Image to Another Unit of Length
图像像素转换成另一种长度单位,
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Converts a pixel image to another unit of length.
转换另一种长度单位,一个像素的图像。
用法----------Usage----------
## S3 method for class 'im'
rescale(X, s)
参数----------Arguments----------
参数:X
Pixel image (object of class "im").
像素的图像(类的对象"im"“)。
参数:s
Conversion factor: the new units are s times the old units.
转换系数:新的单位s倍的旧单位。
Details
详细信息----------Details----------
This is a method for the generic function rescale.
这是一个方法的通用函数rescale。
The spatial coordinates of the pixels in X will be re-expressed in terms of a new unit of length that is s times the current unit of length given in X. (Thus, the coordinate values are divided by s, while the unit value is multiplied by s).
的空间坐标中的像素X将被重新表达的在一个新的单元的长度是s倍的电流给定的长度单位在X。 (因此,坐标值除以s,而单位价值乘以s,)。
The result is a pixel image representing the same data but re-expressed in a different unit.
其结果是一个像素的图像,表示相同的数据,但在不同的单元中重新表达。
Pixel values are unchanged.
像素值是不变的。
值----------Value----------
Another pixel image (of class "im"), containing the same pixel values, but with pixel coordinates expressed in the new units.
另一个像素的图像(类"im"),含有相同的像素值,但与像素坐标表示在新的单位。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
参见----------See Also----------
im, rescale, unitname, eval.im
im,rescale,unitname,eval.im
实例----------Examples----------
# Bramble Canes data: 1 unit = 9 metres[布兰布尔的手杖数据:1单位= 9米]
data(bramblecanes)
# distance transform[距离变换]
Z <- distmap(bramblecanes)
# convert to metres[转换为米]
# first alter the pixel values[第一改变的像素值]
Zm <- eval.im(9 * Z)
# now rescale the pixel coordinates[现在重新调整的像素坐标]
Zm <- rescale(Zm, 1/9)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|