Skip to contents

Recale the rectangular image to unit square

Usage

scale2unitarea(im, length.x, length.y, return.fun = TRUE)

Arguments

im

Pixel image object of class "im" or function of spatial location of class "funxy" from spatstat package.

length.x, length.y

Numeric. Side lengths.

return.fun

Logical. If TRUE, convert the scaled image to function. Otherwise, return the image itself.