IMAGing engINE, Tools for Application of Image Filters to Data Matrices

Provides fast application of image filters to data matrices, using R and C++ algorithms.


imagine ======= Imaging Engine, Tools for Application of Image Filters to Data Matrices

This package was built to take numeric data matrices and apply image-filtering algoriths.

Get the development version from github:

Install from CRAN

install.packages("imagine")

For all functions, the main input data must be a numaric matrix object. Depending on each funtion, user must indicate some extra arguments for the filter.

Next, we show the utility of quantileFilter, one of the six functions that imagine performs.

# Load imagine
library(imagine)
 
# Build an example matrix
n <- 1e3
origMatrix <- matrix(seq(n^2), nrow = n)
 
# Add some NAs
origMatrix_withNA <- origMatrix
origMatrix_withNA[sample(seq(n^2), 0.7*n^2, replace = FALSE)] <- NA
 
# Apply filter
newMatrix <- quantileFilter(dataMatrix = origMatrix_withNA, radius = 3, x = 0.1, times = 1)
 
# Plot matrices for compare
cols <- colorRampPalette(c("green3", "red4"))(n)
 
par(mar = c(0, 2, 0, 0), mfrow = c(3, 1))
 
image(origMatrix, col = cols, axes = FALSE)
mtext(text = "Original", side = 2, line = 0.5, font = 2)
 
image(origMatrix_withNA, col = cols, axes = FALSE)
mtext(text = "Original with NAs", side = 2, line = 0.5, font = 2)
 
image(newMatrix, col = cols, axes = FALSE)
mtext(text = "Filtered", side = 2, line = 0.5, font = 2)

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("imagine")

1.3.1 by Wencheng Lau-Medrano, 5 months ago


https://github.com/LuisLauM/imagine


Report a bug at https://github.com/LuisLauM/imagine/issues


Browse source code at https://github.com/cran/imagine


Authors: Wencheng Lau-Medrano [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp

Suggests knitr, rmarkdown

Linking to Rcpp


Imported by oXim.

Depended on by grec.


See at CRAN