An input Frames object is subject to subsetting. This function is useful e.g. when the trajectory of interest is presenting gaps (i.e. does not actually include a frame)

select.Frames(frames, framesToKeep = 1, ...)

Arguments

frames

A Frames object

framesToKeep

A vector containing the indexes of the frames to keep in the selection

...

Arguments to be passed to methods

Value

A Frames object, composed by the subset of frames of the input Frames

Author

Federico Marini, marinif@uni-mainz.de, 2014

Examples

data("MesenteriumSubset")
select.Frames(MesenteriumSubset, framesToKeep = c(1:10, 14:20))
#> Frames 
#>   colorMode    : Color 
#>   storage.mode : double 
#>   dim          : 271 131 3 17 
#>   frames.total : 51 
#>   frames.render: 17 
#> 
#> imageData(object)[1:5,1:6,1,1]
#>           [,1]      [,2]      [,3]      [,4]      [,5]      [,6]
#> [1,] 0.1647059 0.2117647 0.1882353 0.1803922 0.1607843 0.1333333
#> [2,] 0.2352941 0.1882353 0.1803922 0.1568627 0.1411765 0.1372549
#> [3,] 0.2352941 0.2000000 0.1764706 0.1490196 0.1333333 0.1333333
#> [4,] 0.2352941 0.2117647 0.1764706 0.1529412 0.1411765 0.1411765
#> [5,] 0.2313725 0.2078431 0.1725490 0.1411765 0.1294118 0.1411765