set_functions {segmetric} | R Documentation |
Set functions
Description
These functions compute subsets required to calculate segmentation metrics as described in Clinton et al. (2010) and Costa et al. (2017).
-
sm_ref()
returns the set ofn
polygons of reference, represented byX = \{x_{i}: i = 1, ....., n\}
-
sm_seg()
returns the set ofm
segmentation polygons, represented byY = \{y_{j}: j = 1, ....., m\}
-
sm_ytilde()
returns\tilde{Y}_{i}
, a subset ofY
, where\tilde{Y}_{i} = \{y_{j}: \rm{area}(x_{i} \cap y_{j}) \neq 0\}
-
sm_xtilde()
returns\tilde{X}_{j}
, a subset ofX
, where\tilde{X}_{j} = \{x_{i}: \rm{area}(y_{j} \cap x_{i}) \neq 0\}
-
sm_yprime()
returnsY'_{i}
, a subset ofY
, whereY'_{i} = \{y_{j}: max(\rm{area}(x_{i} \cap y_{j}))\}
-
sm_xprime()
returnsX'_{j}
, a subset ofX
, whereX'_{j} = \{x_{i}: max(\rm{area}(y_{j} \cap x_{i}))\}
-
sm_ya()
returnsY\!a_{i}
, a subset of\tilde{Y}_{i}
, whereY\!a_{i} = \{y_{j}: \rm{centroid}(x_{i}) \:\rm{in}\: y_{j}\}
-
sm_yb()
returnsY\!b_{i}
, a subset of\tilde{Y}_{i}
, whereY\!b_{i} = \{y_{j}: \rm{centroid}(y_{j}) \:\rm{in}\: x_{i}\}
-
sm_yc()
returnsY\!c_{i}
, a subset of\tilde{Y}_{i}
, whereY\!c_{i} = \{y_{j}: \rm{area}(x_{i} \cap y_{j}) / \rm{area}(y_{j}) > 0.5\}
-
sm_yd()
returnsY\!d_{i}
, a subset of\tilde{Y}_{i}
, whereY\!d_{i} = \{y_{j}: \rm{area}(x_{i} \cap y_{j}) / \rm{area}(x_{i}) > 0.5\}
-
sm_ystar()
returns{Y}^{*}_{i}
, where{Y}^{*}_{i} = Y\!a_{i} \cup Y\!b_{i} \cup Y\!c_{i} \cup Y\!c_{i}
-
sm_ycd()
returnsY\!cd_{i}
, whereY\!cd_{i} = Y\!c_{i} \cup Y\!d_{i}
-
sm_ye()
returnsY\!e_{i}
, a subset of\tilde{Y}_{i}
, whereY\!e_{i} = \{y_{j}: \rm{area}(x_{i} \cap y_{j}) / \rm{area}(y_{j}) = 1\}
-
sm_yf()
returnsY\!f_{i}
, a subset of\tilde{Y}_{i}
, whereY\!f_{i} = \{y_{j}: \rm{area}(x_{i} \cap y_{j}) / \rm{area}(y_{j}) > 0.55\}
-
sm_yg()
returnsY\!g_{i}
, a subset of\tilde{Y}_{i}
, whereY\!g_{i} = \{y_{j}: \rm{area}(x_{i} \cap y_{j}) / \rm{area}(y_{j}) > 0.75\}
Usage
sm_ytilde(m)
sm_xtilde(m)
sm_yprime(m)
sm_xprime(m)
sm_ya(m)
sm_yb(m)
sm_yc(m)
sm_yd(m)
sm_ystar(m)
sm_ycd(m)
sm_ye(m)
sm_yf(m)
sm_yg(m)
Arguments
m |
A |
Value
-
sm_ref()
: Return an object of classref_sf
(inherited fromsf
) containing identification (ref_id
) and geometry (geometry
) columns. -
sm_seg()
: Return an object of classseg_sf
(inherited fromsf
) containing identification (seg_id
) and geometry (geometry
) columns. -
sm_ytilde()
,sm_xtilde()
,sm_yprime()
,sm_xprime()
,sm_ya()
,sm_yb()
,sm_yc()
,sm_yd()
,sm_ystar()
,sm_ycd()
,sm_ye()
,sm_yf()
, andsm_yg()
: Return an object of classsubset_sf
(inherited fromsf
) containing identification (ref_id
andseg_id
), and geometry (geometry
) columns.
References
Clinton, N., Holt, A., Scarborough, J., Yan, L., & Gong, P. (2010). Accuracy Assessment Measures for Object-based Image Segmentation Goodness. Photogrammetric Engineering & Remote Sensing, 76(3), 289–299. doi: 10.14358/PERS.76.3.289.
Costa, H., Foody, G. M., & Boyd, D. S. (2018). Supervised methods of image segmentation accuracy assessment in land cover mapping. Remote Sensing of Environment, 205(December 2017), 338–351. doi: 10.1016/j.rse.2017.11.024.