powered by
Image
drawCirlc draws circles over an Image object. This operation is destructive: it changes irreversibly the Image object and cannot be undone.
drawCirlc
drawCircle(image, x, y, radius, color = "red", thickness = 1)
An Image object.
A numeric value or vector representing the x coordinates of the centers of each circle.
A numeric value or vector representing the y coordinates of the centers of each circle.
A numeric value or vector representing the radii of each circle.
A value or vector of any kind of R color specification compatible with col2bgr representing the color of each circle's outline (default: "red").
col2bgr
A numeric value or vector representing the thickness in pixels of each circle's outline (default: 1). If negative, then a filled rectangle is drawn.
This function does not return anything. It modifies image in place.
image
Image, drawEllipse
drawEllipse
# NOT RUN { balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision")) drawCircle(balloon, 365, 245, 90, thickness = 3) # }
Run the code above in your browser using DataLab