convert_image: Convert image to jpeg or png

Description Usage Arguments Value Examples

Description

Convert image to jpeg or png

Usage

1
convert_image(inputFolder, outputFolder, type = ".jpeg")

Arguments

inputFolder

Folder that content the subfolders of images with other extension that jpeg and png. Each subfolder corresponds to one class.

outputFolder

The folder where will save cponverted images.

type

the type of extension jpeg, png all supported extesion by imager package

Value

save images as jpeg (default) or png. Each folder corresponds to a classe.

Examples

1
2
3
4
## Not run: 
convert_image("/extdata/img_data/")

## End(Not run)

kmezhoud/papSmear documentation built on May 25, 2019, 8:32 p.m.