redusize: Reduces the dimension of a given image by removing vertical...

Description Usage Arguments Value Examples

View source: R/redusize.R

Description

A new image with the modified height and width will be created

Usage

1
redusize(input_path, output_path, height, width)

Arguments

input_path

character, the path for the input file

output_path

character, the path for the output file

height

integer, the height of the reduced image

width

integer, the width of the reduce image

Value

an array of image

Examples

1
2
input_path <- system.file("tmp_image", "mandrill.jpg", package = "rimager")
OpenImageR::imageShow(redusize(input_path, "reduced.jpg", 297, 200))

UBC-MDS/rimager documentation built on April 1, 2020, 4:36 a.m.