image_scale: Scale an image (nearest-neighbour)

View source: R/image_export.R

image_scaleR Documentation

Scale an image (nearest-neighbour)

Description

Resizes the image to the given dimensions using nearest-neighbour interpolation.

Usage

image_scale(image, new_width, new_height)

Arguments

image

An image list.

new_width

Target width in pixels.

new_height

Target height in pixels.

Value

A new image list with the new dimensions.


scimesh documentation built on Aug. 9, 2026, 9:07 a.m.