point.overlap: Diagnostic tool for looking at point sampling density

Description Usage Arguments Value Examples

View source: R/overlap_plotter.R

Description

Diagnostic tool for looking at point sampling density

Usage

1
point.overlap(delaunay.map, px.radius, style = "points")

Arguments

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".

Value

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)

Examples

1
2
3
4
5
6
7
#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)

J0vid/Colormesh documentation built on Feb. 4, 2022, 1:33 a.m.