Description Usage Arguments Value Examples
Removes least energy vertical and/or horizontal pixel seams to reduce the size of a given image with respect to its contents.
1 | sc_reduce(imgPath, ncols = 0, nrows = 0)
|
imgPath |
Path to a RGB image. (.PNG / .JPG / .TIF) |
ncols |
Number by which the width has to be decreased |
nrows |
Number by which the height has to be decreased |
SC-Image <Resized Image>
1 2 3 4 5 | library(EBImage)
filePath <- system.file("images", "sample-color.png", package="EBImage")
reducedImage <- sc_reduce(filePath, ncols = 1, nrows = 1)
display(reducedImage$img_reduced)
class(reducedImage)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.