makeGifImages: makeGifImages

Description Usage Arguments Value Examples

View source: R/JunctionDetection.R

Description

Saves a collection of plots, which sequentially display paths in a list, to the provided file path. Also prints some suggested code for imagemagick gif creation. Can be useful for visualizing path lists or grapheme path lists.

Usage

1
makeGifImages(img, img_thin, allPaths, file_path, filenames)

Arguments

allPaths

List of paths (probably from processHandwriting returned list).

file_path

Where the plots created should be saved to. Directory path, relative to current working directory.

filenames

Identifying prefix for saved plots. Will be appended with numeric suffixes.

image

Binary image.

image_thin

Thinned binary image.

Value

Nothing. Will print out a terminal command for creating your gif. Just navigate to the directory and copy and paste.

Examples

1
2
3
4
5
#### Not Run
# Make csafe_pathList the resulting object from the pathList
# item in the processHandwriting returned list

# makeGifImages(csafe, csafe_thin, csafe_pathList, "../GifPlots/", "csafePaths")

CSAFE-ISU/handwriter documentation built on May 13, 2018, 12:15 p.m.