Raman averaging from WiRE

Averages the spectra associated with a particular region of a bmp Raman map image
84 Downloads
Updated 30 Jan 2018

View License

Raman spectrum Averaging script
Takes a directory of tab seperated variable text files and an image
corresponding to a map produced by WiRE raman software. It will average
all spectra corresponding to pixels above a set intensity value in the
map image (set with thresh variable).
To use:
1.export your map image from WiRE using right click->export image,
this should be a bmp with the same number of pixels as you have spectra
in the map
2. use file->multidataset save to export the full list of spectra as txt
files
dirvar is the path to the directory containing the text files, Im is the
bmp image which has been imported to matlab as a variable
3. Set thresh such that it is is below the pixel value of the areas that
you want to average, but above those of the area you want to ignore
4.Finally, modify the for loop on line 46 such that the '%u' falls in line
with the spectrum number on each text file.
e.g. 'Test_A_1_X_11243_Y_414_Z_312_Time_0' would be
'%*s %*s %u %*s %*s %*s %*s %*s %*s %*s %*s'

Cite As

George Rowley (2025). Raman averaging from WiRE (https://www.mathworks.com/matlabcentral/fileexchange/65909-raman-averaging-from-wire), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0