line_sections: Extract line sections from annotations

View source: R/line_sections.R

line_sectionsR Documentation

Extract line sections from annotations

Description

This is the main routine used in the extraction of data from the Zooniverse data frame (converted JSON or nested list). The input consist of all classifications for a particular subset, the bounding box associated with these classications (based upon the original image) and the size of the image along the y-axis for referencing and scaling of the data.

Usage

line_sections(subset, bb, img_y)

Arguments

subset

subset of annotations

bb

bounding box coordinates from bounding_box()

img_y

image height

Details

NOTE: This might be a bit less unwieldy in tidyverse syntax but it isn't worth the effort to rewrite it. Plenty of exceptions might also get in the way of holding true.

Value

returns a matrix of line section locations (empty 0 if nothing returned)


khufkens/junglerhythms documentation built on Jan. 4, 2024, 4:59 p.m.