plot_image_class: plot_image_class

View source: R/plot_image_class.R

plot_image_classR Documentation

plot_image_class

Description

Helper function to corral data for plotting in the app.

Usage

plot_image_class(
  dat1,
  dat2,
  dat3,
  dat4,
  conf.thresh,
  over1,
  over2,
  image,
  class
)

Arguments

dat1

List. The list of sf files that contain annotation polygons for the selected image and class

dat2

Vector of polygon IDs for all false positive predictions.

dat3

Data frame listing object classes ('CLASS') and arbitrary numeric code ('INDEX')

dat4

Vector containing image names

conf.thresh

A numeric value from 0 to 0.99 that specifies the minimum value for including model predictions in the analysis. Predictions with confidence levels below the threshold will be eliminated from the analysis.

over1

A numeric value from 0 to 1 that specifies the minimum proportion of a truth annotation that must be covered by a model prediction. Predictions that do not meet this threshold will be assigned a status of 'false positive'

over2

A numeric value from 0 to 1 that specifies the minimum proportion of a prediction area that must overlap with a truth annotation. Predictions that do not meet this threshold will be assigned a status of 'false positive'. Note that predictions that fail to meet the 'over1' threshold, but do meet the 'over2

image

Integer. The numeric value for the selected image to plot.

class

Character. The name of the object class to plot.

Value

List of length 2. The first component is a list containing a list of length 3 with the geometries for truth annotations, false positive, and true positive predictions. THe second component is a bounding box for proper plot X and Y limits.


jthinke/vvipr documentation built on Nov. 3, 2023, 8:39 p.m.