Learn R Programming

uFTIR

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.

Copy Link

Version

Install

install.packages('uFTIR')

Monthly Downloads

36

Version

0.1.4

License

GPL-3

Maintainer

Fabio Corradini

Last Published

October 25th, 2021

Functions in uFTIR (0.1.4)

SpectralInfo-class

Spectral info
matrix_sam

Perform SAM between to matrices
preprocess

Tile Preprocess
primpke

Example library
mosaic_sam

Mosaic SAM
tile_sam

Spectral Angle Mapper
SpectralPack-class

Spectral Pack
plot,plot.uFTIR,missing-method

Plotting Objects
SAM-class

Sam Prediction
Smooth-class

Smooth
get_profile

Get profile
as.clipper

As Clipper
mask_sam

Mask SAM
highlight_substance

Highlight a selected substance
mosaic_chunk

Mosaic chunk
summary,summary_sam-method

smooth_sam

Smooth a Spectral Angle Mapper output
clipmask-class

Class holding info for the clipper
mosaic_compose

Mosaic compose
mosaic_info

Mosaic Info
tile_base_corr

Baseline correction
tile_read

Single tile read
sam_load

Sam load
sam_write

Write a sam object to disk
uFTIR

Process and analyze Agilent Cary 620 FTIR Microscope images
wavealign

Methods to resample the wavenumbers
toClip

Visual clipper
SpectralReference-class

Spectral Reference Class
clipper

Clipper
Tile-class

Tile