Published October 22, 2018 | Version 0.9.9
Software Open

bnasr/xROI: Delineate Region of Interests (ROI's) and Extract Time-Series Data from Digital Repeat Photography Images

  • 1. Harvard University

Description

 

xROI: Delineate Region of Interests (ROI's) and Extract Time-Series Data from Digital Repeat Photography Images

Here, we present an interactive open-source toolkit, called xROI, that facilitate the process of time-series extraction and improve the quality of the final data. xROI provides a responsive environment for scientists to interactively a) delineate regions of interest (ROI), b) handle field of view (FOV) shifts, and c) extract and export time series data characterizing color-based metrics (i.e. red, green and blue channel digital numbers for the defined ROI). Using xROI, user can detect FOV shifts with minimal difficulty. The software gives user the opportunity to re-adjust mask files or redraw new ones every time an FOV shift occurs.

Design

R language and Shiny package were used as the main development tool for xROI, while Markdown, HTML, CSS and JavaScript languages were used to smoothen the interactivity. While Shiny apps are primarily used for web-based applications to be used online, we used Shiny for its graphical user interface capabilities. In other words, both UI and server modules are run locally from the same machine and hence no internet connection is required. The xROI's UI element presents a side-panel for data entry and three main tab-pages, each responsible for a specific task. The server-side element consists of R and shell scripts. Image processing and geospatial features were performed using the Geospatial Data Abstraction Library (GDAL) and the rgdal and raster R packages.

Installation

The xROI R package has been published on The Comprehensive R Archive Network (CRAN). The latest tested xROI package can be installed from the CRAN packages repository by running the following command in an R environment:

utils::install.packages('xROI', repos = "http://cran.us.r-project.org")

Alternatively, the latest beta release of xROI can be directly downloaded and installed from the GitHub repository:

devtools::install_github("bnasr/xROI")

xROI depends on many R packages including: raster, rgdal, sp, jpeg, tiff, shiny, shinyjs, shinyBS, shinyAce, shinyTime, shinyFiles, shinydashboard, shinythemes, colourpicker, rjson, stringr, data.table, lubridate, plotly, moments, and RCurl. All the required libraries and packages will be automatically installed with installation of xROI. The package offers a fully interactive high-level interface as well as a set of low-level functions for ROI processing.

Launch

A comprehensive user manual for low-level image processing using xROI is available from xROI.pdf. While the user manual includes a set of examples for each function; here we explain the graphical interactive mode. The interactive mode can be launched from an interactive R environment by:

library(xROI)
Launch()

or form the command line (e.g. shell in Linux, Terminal in macOS and Command Prompt in Windows machines) where an R engine is already installed by:


Rscript -e "xROI::Launch(Interactive = TRUE)"

Calling the Launch function opens up the app in the system's default web browser, offering an example dataset to explore different modules or upload a new dataset of images.

The R package is developed and maintained by Bijan Seyednarollah.

Most recent release is available from: https://github.com/bnasr/xROI

Files

bnasr/xROI-0.9.9.zip

Files (11.1 MB)

Name Size Download all
md5:032390036125b0a1ebb8fa3d153cbf67
11.1 MB Preview Download

Additional details

Related works