Learn R Programming

Rvision (version 0.6.0)

plot.blob: Plot Blobs

Description

Plotting method for objects inheriting from class blob.

Usage

# S3 method for blob
plot(x, col = "red", asp = 1, ...)

Arguments

x

A blob object.

col

The color of the blob center and box (default: "red").

asp

The y/x aspect ratio of the plotting window (default: 1).

...

Additional arguments to be passed to plot.

See Also

isBlob, simpleBlobDetector

Examples

Run this code
# NOT RUN {
dots <- image(system.file("sample_img/dots.jpg", package = "Rvision"))
blobs <- simpleBlobDetector(invert(dots), min_threshold = 25, max_threshold = 220,
                            filter_by_area = TRUE, min_area = 200, max_area = Inf,
                            filter_by_color = FALSE)
plot(dots)
plot(blobs, pch = 20)

# }

Run the code above in your browser using DataLab