dsc: Dice Similarity Coefficient of two window objects

View source: R/helping-functions.R

dscR Documentation

Dice Similarity Coefficient of two window objects

Description

This function Calculates the Dice similarity coefficient of two window objects of type 'owin' (see '?spatstat.geom::owin').

Usage

dsc(win0, win1, winBackground = NULL, plot = FALSE)

Arguments

win0:

a reference image object of type 'owin'.

win1:

a second image object of type 'owin'.

winBackground:

an optional bounding window of type 'owin' which acts as the background window for both 'win0' and 'win1'. This is only used for visualization.

plot:

whether to plot the result.

Value

A numeric, the calculated Dice similarity coefficient.


CeMOS-Mannheim/moleculaR documentation built on April 14, 2025, 8:27 a.m.