write.image.with.outline: Write outlines on top of the original images for quality...

Description Usage Arguments Author(s) References Examples

Description

A function which writes the outlines which were extracted from the images in the folder "Fixed" on top of the corresponding images in the "Original" folder. Viewing the resulted images in the folder "Original_with_outlines" is a good quality check to ensure the correct outline has been extracted. If the outline is not correct, then the image can be fixed in an image software, such as GIMP (www.gimp.org), placed in the "Fixed" folder and then the detect.outline step is repeated. The function detect.outline calls this function if the parameter write.outline.w.org is set to TRUE.

Usage

1
write.image.with.outline(object, folder = NA, fname = NA, doProgress = T)

Arguments

object

A shapeR object

folder

The folder name where the image is stored

fname

Image file name. Not including the extension ".jpg"

doProgress

If TRUE, a progressbar is shown

Author(s)

Lisa Anne Libungan

References

Libungan LA and Palsson S (2015) ShapeR: An R Package to Study Otolith Shape Variation among Fish Populations. PLoS ONE 10(3): e0121102. http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0121102

Examples

1
2
3
4
5
6
## Not run: 
#Use test data from Libungan and Palsson (2015) and run the following lines:
shape = shapeR("ShapeAnalysis/","FISH.csv")
shape = detect.outline(shape,write.outline.w.org = FALSE)
write.image.with.outline(shape)
## End(Not run)

shapeR documentation built on May 1, 2019, 7:28 p.m.