Frames
object Creates a Frames
object containing raw information, combined with the segmented images and the relative trajectory under analysisR/postprocessing.R
add.contours.Rd
If a TrajectorySet
is provided and mode is set to trajectories
, returns
a Frames
with all trajectories included in the IDs
vector painted accordingly.
If the mode is set to particles
, it will just plot the particles (all) on all frames.
If no TrajectorySet
is provided, it will be computed with default parameters.
If no binary.frames
is provided, it will be computed also with default parameters
add.contours(
raw.frames,
binary.frames = NULL,
trajectoryset = NULL,
trajIDs = NULL,
mode = "particles",
col = NULL,
channel = NULL
)
A Frames
object with raw images
A Frames
object with preprocessed frames
A TrajectorySet
object
Numeric vector, the ID(s) of the trajectory.
A character string, can assume the values particles
or trajectories
.
Defaults to particles
A vector of color strings
A character string, to select which channel to process
A new Frames
object with contours of the objects added
data("MesenteriumSubset")
if (FALSE) {
paintedTrajectories <- add.contours(raw.frames = MesenteriumSubset,
mode = "trajectories",channel="red")
paintedParticles <- add.contours(raw.frames = MesenteriumSubset,
mode = "particles",channel="red")
inspect.Frames(paintedTrajectories)
inspect.Frames(paintedParticles)
}