Learn R Programming

Momocs (version 0.1-01)

get.cont: Extract $(x; y)$ coordinates and create a Coo-object.

Description

Extracts from a set of black and white images or a list of coordinates written in a set of 2-columns ("x" and "y") .txt files.

Usage

get.cont(path)

Arguments

path
a path to indicate where are the images or the .txt files to use

Value

  • a Coo-object is returned.

Details

If no path is provided, the user is interactively asked to choose a folder. get.cont uses the Conte algorithm that starts on the center of every outline in the Coo-object provided (or the imagematrix provided if Conte() is directly used). If this point does not correspond to a black pixel, i.e. not contained within the shape, the user is interactively asked to select interactively a point within the shape.

Examples

Run this code
data(bottles.cont)
get.cont()

Run the code above in your browser using DataLab