Learn R Programming

⚠️There's a newer version (0.1.4) of this package.Take me there.

uFTIR

THE BRANCH hcl HAS MODIFICATIONS TO ADAPT THE PACKAGE TO THE HIGH-PERFORMANCE CLUSTER

An R package to read and process Agilent Cary 620 FTIR microscope -hyperspectral- images. As it is, the package performs image classification to look for microplastics in environmental samples.

When I wrote the package I took some ideas from:

  1. The implementation of the Spectal Angle Mapper algorithm in RcppArmadillo was copied from RStoolbox. I modified the function to do the two for-loops in C++, instead of only one as in Leutner, B. et al.’s version.
  2. I’m using the R raster package to plot. This is not efficient -I need to coerce every object to a RasterLayer-, and it makes the package huge -I need to import the raster methods-. But it is enough for now.
  3. The spectral library included as reference comes from Primpke et al (2018).
  4. The function read_tile is based on the Octave/Matlab code of Alex Henderson, published here. He solved the Agilent-provides-binary-files problem.

Installation

Install the current development from github via:

remotes::install_github("fcorra/uFTIR")

Copy Link

Version

Install

install.packages('uFTIR')

Monthly Downloads

6

Version

0.1.2

License

GPL-3

Maintainer

Fabio Corradini

Last Published

May 11th, 2020

Functions in uFTIR (0.1.2)

SpectralReference-class

Spectral Reference Class
mosaic_compose

Mosaic compose
Tile-class

Tile
highlight_substance

Highlight a selected substance
Smooth-class

Smooth
mask_sam

Mask SAM
mosaic_info

Mosaic Info
rgdal_polygonize

GDALPolygonize in R
sam_load

Sam load
toClip

Visual clipper
uFTIR

Process and analyze Agilent Cary 620 FTIR Microscope images
wavealign

Methods to resample the wavenumbers
SpectralPack-class

Spectral Pack
SpectralInfo-class

Spectral info
matrix_sam

Perform SAM between to matrices
clipper

Clipper
get_profile

Get profile
mosaic_chunk

Mosaic chunk
mosaic_sam

Mosaic SAM
tile_read

Single tile read
plot,plot.uFTIR,missing-method

Plotting Objects
summary,summary_sam-method

tile_base_corr

Baseline correction
tile_sam

Spectral Angle Mapper
SAM-class

Sam Prediction
preprocess

Tile Preprocess
primpke

Example library
sam_write

Write a sam object to disk
smooth_sam

Smooth a Spectral Angle Mapper output
as.clipper

As Clipper
clipmask-class

Class holding info for the clipper