findMaxCost: Find maximum tracking cost

Description Usage Arguments Value Author(s) Examples

Description

This function can help to find a appropriate maximum value for linking a particle to another particle (parameter L in function trackParticles)

Usage

1
findMaxCost(particles, frame = 1, colorimages = NULL)

Arguments

particles

Object of class 'particles', obtained using identifyParticles.

frame

Number specifying which frame to use. Default is frame 1.

colorimages

Array containing original color images. By default, the original color images are obtained from the global environment.

Value

Returns the number that is interactively chosen by the user. Use this value in trackParticles.

Author(s)

Marjolein Bruijning

Examples

1
2
3
4
5
6
7
## Not run: 
partIden <- identifyParticles(sbg=allImages,
                              threshold=-0.05)
maxcost <- findMaxCost(partIden,frame=1)
records <- trackParticles(partIden,L=maxcost,R=1)

## End(Not run)

trackdem documentation built on Sept. 25, 2021, 1:07 a.m.