Description Usage Arguments Value Author(s) See Also Examples
View source: R/ImageAnalysis.R
Plot samples from denseness_sample.
1 2 | plot_samples(imagematrix, central_lines, central_collumns, width_size,
height_size, sample_width, sample_height, sample_shape)
|
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. |
Plot of the analysed matrix (black and white) and sample locations (red).
Carlos Biagolini-Jr.
denseness_sample
1 2 3 4 5 6 | # 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.