highspeed-masks-docs.Rmd 747 B

1234567891011121314151617181920212223
  1. ```{r, echo=FALSE, message=FALSE, include=FALSE}
  2. if (!requireNamespace("pacman")) install.packages("pacman")
  3. packages_cran <- c("here")
  4. pacman::p_load(char = packages_cran)
  5. if (basename(here::here()) == "highspeed"){
  6. path_root = here::here("highspeed-masks")
  7. } else {
  8. path_root = here::here()
  9. }
  10. ```
  11. ## Feature selection: Anatomical masks
  12. #### Creating binary masks using `highspeed-masks.py`
  13. ```{python, echo=TRUE, code=readLines(file.path(path_root, "code", "masks", "highspeed-masks.py")), eval=FALSE, python.reticulate=FALSE}
  14. ```
  15. #### Plotting masked data using `highspeed-masks-plot.py`
  16. ```{python, echo=TRUE, code=readLines(file.path(path_root, "code", "masks", "highspeed-masks-plot.py")), eval=FALSE, python.reticulate=FALSE}
  17. ```