level: Level a surface

Description Usage Arguments Value Examples

Description

Level the surface by assigning the horizontal reference based on a tilted plane regression

Usage

1
2
3
4
5
6
7
level(surf, method = "rot")

## S3 method for class 'cimg'
level(surf, method = "sub")

## S3 method for class 'imlist'
level(surf, method = "sub")

Arguments

surf

a cimg or a imlist object.

method

one of two options: 'rot' or 'sub'.

Value

a corrected cimg or a imlist object.

Examples

1
2
3
4
5
6
7
8
9
surf <- ground[[1]]
par(mfrow = c(1,2))
plot(surf)
plot(level(surf))

file <- system.file("extdata", "ground.zip", package = "surf")
surf <- read.zip(file)
plot(surf, layout = "row")
plot(level(surf), layout = "row")

coldfir3/surf documentation built on May 13, 2019, 8:49 p.m.