Sets trajectories in the correct slot.

setTrajectory(object, trajectory, align = TRUE, overwrite = FALSE)

setTrajectories(object, trajectories, align = TRUE, overwrite = FALSE)

Arguments

object

An object of class spata2.

trajectory

An object of class Trajectory.

align

Logical value. If TRUE, trajectories of class SpatialTrajectory are aligned with image justification changes of the image of the SPATA2 object.

overwrite

Logical value. Must be TRUE to allow overwriting.

trajectories

List of objects of class Trajectory.

Value

The input spata2 object containing the added or computed results.