images.same.height: Extent all images to the height of the image with maximal...

View source: R/helpers_magick.R

images.same.heightR Documentation

Extent all images to the height of the image with maximal height.

Description

Extent all images to the height of the image with maximal height.

Usage

images.same.height(images, background_color = "white")

Arguments

images

a vector/stack of magick images. See magick::image_blank or other methods to get one.

background_color

hex color string, the background color to use if the images have different sizes and one needs to be extended. Do not use color names like 'gray', which differ between R and magick.

Value

a vector/stack of magick images, all with the same height.


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.