View source: R/overlap_plotter.R
point.overlap | R Documentation |
Diagnostic tool for looking at point sampling density
point.overlap(delaunay.map, px.radius, style = "points")
delaunay.map |
delaunay triangulation object |
px.radius |
The size of the circular neighborhood (in pixels) to sample color around each triangulated point. |
style |
What kind of plot to show overlapping points with. Options are "points" and "triangulation". |
An index of points pairs that will have overlapping (and redundant) pixel information. Only for the interior points of a delaunay triangulation (not the perimeter)
#create delaunay map
consensus <- tps2array(system.file("extdata", "consensus_LM_coords.TPS", package = "Colormesh"))
test.image <- image_reader(paste0(path.package("Colormesh"),"/extdata/unwarped_images/"), "GPLP_unw_001.jpg")
delaunay.map <- tri.surf(consensus, point.map = c(1,8:17,2, 18:19,3,20:27,4, 28:42,5,43:52,6,53:54,7,55:62), 3, test.image)
#plot overlapping points
point.overlap(delaunay.map, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.