Learn R Programming

retistruct (version 0.5.9)

Outline: Outline constructor

Description

Construct an outline object. This sanitises the input points P, as described below.

Usage

Outline(P, scale = NA, im = NULL)

Arguments

P
The points of the outline. The last point is not repeated.
scale
The length of one unit of P in micrometres. When images are present, this is the length of the side of a pixel in the image.
im
An image as a raster object

Value

  • An Outline object containing the following:
  • PA N-by-2 matrix of points of the Outline arranged in anticlockwise order
  • gfFor each row of P, the index of P that is next in the outline travelling anticlockwise (forwards)
  • gbFor each row of P, the index of P that is next in the outline travelling clockwise (backwards)
  • imThe image as a raster object
  • scaleThe length of one unit of P in micrometres