Skip to contents

Draws the bounding boxes for each object computed with image_shp().

Usage

# S3 method for image_shp
plot(
  x,
  img = NULL,
  col_line = "black",
  size_line = 2,
  col_text = "black",
  size_text = 0.75,
  ...
)

Arguments

x

An object computed with image_shp().

img

The image that was used to compute the shapefile (optional)

col_line, col_text

The color of the line/text in the grid. Defaults to "red".

size_line, size_text

The size of the line/text in the grid. Defaults to 2.5.

...

Currently not used.

Value

A NULL object

Examples

library(pliman)
flax <- image_pliman("flax_leaves.jpg")
shape <- image_shp(flax, nrow = 3, ncol = 5)


# grid on the existing image
plot(flax)
plot(shape)