prepare_to_shp: Prepare images to analyze_objects_shp()

View source: R/utils_imagem.R

prepare_to_shpR Documentation

Prepare images to analyze_objects_shp()

Description

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)
}

pliman documentation built on Aug. 21, 2025, 5:46 p.m.