Select part of image according to greyscale (or color) value.
mask.create(img,
range1 = c(0, 1), range2 = c(0, 1), range3 = c(0, 1),
locate = TRUE)
logical matrix of image dimension.
Image object of class "adimpro", usually the result
returned from read.image
, read.raw
, or make.image
.
Range of gray values or values in the
first color channel. mask
is set to FALSE
for all
pixel with values outside this range. Defaults to c(0,1)
.
Range of values in the second color
channel. mask
is set to FALSE
for all pixel with
values outside this range. Defaults to c(0,1)
.
Range of values in the third color
channel. mask
is set to FALSE
for all pixel with
values outside this range. Defaults to c(0,1)
.
(logical). If TRUE
(default), the image is displayed and
two opposite corners of a rectangular region can be selected using the
mouse (call of locator(2)
).
Karsten Tabelow tabelow@wias-berlin.de and Joerg Polzehl polzehl@wias-berlin.de
Function to create a mask. The returned object mask
can
be used to restrict computations in function awsimage
to
a region characterized by mask==TRUE
.
Polzehl, J., and Tabelow, K. (2007). Adaptive smoothing of digital images, Journal of Statistical Software 19 (1).
awsimage