Skip to contents

It is a simple wrapper around image_align() and image_crop(). In this case, only the option viewer = "base" is used. To use viewer = "mapview", please, use such functions separately.

Usage

prepare_to_shp(img, align = "vertical")

Arguments

img

A Image object

align

The desired alignment. Either "vertical" (default) or "horizontal".

Value

An aligned and cropped Image object.

Examples

if (interactive() && requireNamespace("EBImage")) {
img <- image_pliman("flax_leaves.jpg")
prepare_to_shp(img)
}
#> Select 2 points drawing a line of desired aligment along the y axis.

#> Error in do.call(rbind, cord): second argument must be a list