objectInBox: Connect detected objects to detected cell meshes; turn all...

View source: R/objectInBox.R

objectInBoxR Documentation

Connect detected objects to detected cell meshes; turn all objects & cells in the same orientation for relative comparison.

Description

ObjectInBox is a function based on spotsInBox - it returns a dataframe which has the same variables as the "object_relative" dataframe.

Usage

objectInBox(objectdata, meshdata, mag = "No_PixelCorrection")

Arguments

objectdata

Object dataframe with at least the variables: "ob_x" & "ob_y" (object outline coordinates), "frame" and "obID" (object identifier).

meshdata

Mesh dataframe.

mag

Magnification converter (see pixels2um).

Value

An object_relative dataframe (see object).

Author(s)

Renske van Raaphorst

Examples

## Not run: 
#example data:

#download example datasets from https://veeninglab.com/f/example_datasets.zip

load("vanFL_meshWT.rda")

load("vanFL_objWT")

#these objects are already connected to cells. but no harm in re-doing:

WTbox <- objectInBox(vanFL_objWT, vanFL_meshWT, mag="100x_DVMolgen")

## End(Not run)

vrrenske/shinyspots documentation built on Oct. 28, 2023, 12:26 p.m.