Skip to content

Commit

Permalink
Merge pull request #81 from swarm-lab/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sjmgarnier authored Feb 7, 2023
2 parents 5f106cb + 58da801 commit 1ad0f19
Show file tree
Hide file tree
Showing 194 changed files with 872 additions and 35 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## New features

* Introducing video stacks.
* Introduces video stacks.
* Adds frame setters for Video and VideoStack objects.

## Minor improvements and fixes

Expand Down
18 changes: 9 additions & 9 deletions R/VideoStackClass.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ setClass("VideoStack",
#' @param ... Character strings (separately or in a vector or list), each
#' corresponding to the path to a video file, or \code{\link{Video}} objects
#' (separately or in a vector or list). All videos must have the same
#' dimensions and frame rate. If left empty, an empty \code{\link{VideoStack}}
#' object will be created and videos can be added to it later.
#' dimensions. If left empty, an empty \code{\link{VideoStack}} object will be
#' created and videos can be added to it later.
#'
#' @param api A character string corresponding to the API to use for reading the
#' video from a file (see Note; default: "ANY").
Expand Down Expand Up @@ -94,8 +94,8 @@ videoStack <- function(..., api = "ANY") {
}
})

if (length(unique(lapply(stack, fps))) > 1)
stop("All videos should have the same frame rate.")
# if (length(unique(lapply(stack, fps))) > 1)
# stop("All videos should have the same frame rate.")

if (length(unique(lapply(stack, nrow))) > 1)
stop("All videos should have the dimensions.")
Expand Down Expand Up @@ -166,8 +166,8 @@ videoStack <- function(..., api = "ANY") {

x@.Data[[i]] <- value

if (length(unique(lapply(x, fps))) > 1)
stop("All videos should have the same frame rate.")
# if (length(unique(lapply(x, fps))) > 1)
# stop("All videos should have the same frame rate.")

if (length(unique(lapply(x, nrow))) > 1)
stop("All videos should have the dimensions.")
Expand Down Expand Up @@ -234,8 +234,8 @@ videoStack <- function(..., api = "ANY") {
}
}

if (length(unique(lapply(x, fps))) > 1)
stop("All videos should have the same frame rate.")
# if (length(unique(lapply(x, fps))) > 1)
# stop("All videos should have the same frame rate.")

if (length(unique(lapply(x, nrow))) > 1)
stop("All videos should have the dimensions.")
Expand Down Expand Up @@ -380,7 +380,7 @@ frame.VideoStack <- function(x) {
#' @export
#' @rdname fps
fps.VideoStack <- function(x) {
x[[1]]$fps()
sapply(x, function(x) x$fps())
}


Expand Down
1 change: 1 addition & 0 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/articles/z1_install.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/articles/z2_io.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/articles/z3_basic.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/articles/z4_inplace.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/articles/z5_gpu.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/articles/z6_queue.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ articles:
z4_inplace: z4_inplace.html
z5_gpu: z5_gpu.html
z6_queue: z6_queue.html
last_built: 2023-02-05T15:10Z
z7_stack: z7_stack.html
last_built: 2023-02-06T22:33Z
urls:
reference: https://swarm-lab.github.io/Rvision/reference
article: https://swarm-lab.github.io/Rvision/articles
Expand Down
1 change: 1 addition & 0 deletions docs/reference/CLAHE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/Image-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/LUT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/Queue-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/Rvision.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/RvisionAck.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/Stream-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/Video-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/VideoWriter-class.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/adaptiveThreshold.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/addWeighted.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/anisotropicDiffusion.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/api.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/arcLength.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/as.array.Rcpp_Image.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/autothreshold.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/bilateralFilter.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/bitdepth.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/blur.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/border.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/boxFilter.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/canny.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/capacity.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/cartToPolar.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/cc_table.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/changeBitDepth.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1ad0f19

Please sign in to comment.