jaccardSimilarity | R Documentation |
Function for determinining the Jaccard or iou (intersection over union) similarity measure between two sets of boxes.
jaccardSimilarity(boxes1, boxes2)
boxes1 |
A 2-D array where each row corresponds to a single box consisting of the format (xmin,xmax,ymin,ymax) or (xmin,xmax,ymin,ymax,zmin,zmax) |
boxes2 |
A 2-D array where each row corresponds to a single box consisting of the format (xmin,xmax,ymin,ymax) or (xmin,xmax,ymin,ymax,zmin,zmax) |
the Jaccard simliarity
Tustison NJ
vec2d = c(1, 10, 1, 10)
vec2d_2 = c(1, 8, 1, 5)
jaccardSimilarity(vec2d, vec2d_2)
vec3d = c(1, 10, 1, 10, 1, 10)
vec3d_2 = c(1, 8, 1, 5, 1, 10)
jaccardSimilarity(vec3d, vec3d_2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.