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

View source: R/overlap_plotter.R

point.overlapR Documentation

Diagnostic tool for looking at point sampling density

Description

Diagnostic tool for looking at point sampling density

Usage

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


#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 Nov. 23, 2024, 6:10 p.m.