plotPoints {imageUtilities}R Documentation

plot points onto an image with lines around them (NOT YET WORKING)

Description

plot points onto an image with lines around them (NOT YET WORKING)

Usage

  plotPoints(img, ipts,
    radius = min(imgetnx(img, 1), imgetny(img, 1))/100,
    lines = FALSE, transparency = 0, col = "red",
    one.based = TRUE)

Arguments

img

the image to draw on to.

ipts

an nx2 matrix with points to be drawn on the image. Column names "X" and "Y".

radius

the radius of points to draw (pixels). CURRENTLY NOT RESPECTED.

lines

boolean,whether to draw lines in between the points

transparency

The transparency of the points. 0 for opaque, 1 for transparent.

col

The colour to draw the overlay in. Either a string of a colour recognised by R, or a numeric vector c(R,G,B) with red/green/blue values the desired colour, from 0 to 255.

one.based

whether the input points are one-based or not.

Value

image with the lines and points drawn on.

See Also

Other draw: drawImage, imdisp, imdrawabline, imdrawline, pointPicker


[Package imageUtilities version 1.0.3 Index]