Reconstruct polygon from point pattern density
Source:R/reconstructShapePPP.R
reconstructShapeDensity.Rd
This function estimates the density of a spatial point pattern (ppp
),
thresholds the density to create a binary image, and then converts it
to a valid sf
object (polygons).
Examples
data("sostaSPE")
ppp <- SPE2ppp(sostaSPE, marks = "cellType", imageCol = "imageName", imageId = "image1")
thres <- findIntensityThreshold(ppp, markSelect = "A", dim = 500)
struct <- reconstructShapeDensity(ppp, markSelect = "A", thres = thres, dim = 500)
plot(struct)