plot_samples {bwimage} | R Documentation |
Plot samples from denseness_sample
Description
Plot samples from denseness_sample.
Usage
plot_samples(imagematrix, central_lines, central_collumns, width_size,
height_size, sample_width, sample_height, sample_shape)
Arguments
imagematrix |
The matrix to be analysed. |
central_lines |
Lines data (i.e. "Matrix(line)") provided by denseness_sample |
central_collumns |
Collumns data (i.e. "Matrix(column)") provided by denseness_sample |
width_size |
Real size of image width (in mm, cm, m, etc..). |
height_size |
Real size of image height (in mm, cm, m, etc..). |
sample_width |
Width of sample area. |
sample_height |
Height of sample area. |
sample_shape |
Inform the shape of sample unity used ("rectangle" or "ellipse"). See denseness_sample function. |
Value
Plot of the analysed matrix (black and white) and sample locations (red).
Author(s)
Carlos Biagolini-Jr.
See Also
denseness_sample
Examples
# Get a matrix from your image. Here examples provided by bwimage package.
bush<-system.file("extdata/bush.JPG",package ="bwimage")
bush<-threshold_color(bush, "jpeg", "proportional",compress_rate = 0.1)
a<-denseness_sample(bush, width_size=100, height_size=100, sample_width=5, sample_height=5)
plot_samples(bush, a[,4],a[,5], 100,100, 5, 5,"rectangle")
[Package bwimage version 1.3 Index]