sc_increase: sc_increase

Description Usage Arguments Value Examples

View source: R/sc_increase.R

Description

Increases the dimensions of an image by duplicating a given number of least cost seams

Usage

1
sc_increase(imgPath, ncols = 0, nrows = 0)

Arguments

imgPath

Path to a RGB image. (.PNG / .JPG / .TIF)

ncols

Number by which the width has to be increased

nrows

Number by which the height has to be increased

Value

SC-Image <Resized Image>

Examples

1
2
3
4
5
library(EBImage)
filePath <- system.file("images", "sample-color.png", package="EBImage")
increased_image <- sc_increase(filePath, 10, 10)
display(increased_image$increased_img)
class(increased_image)

vgorte/R-Seam-Carving documentation built on Aug. 5, 2019, 12:15 p.m.