Raman averaging from WiRE
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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Raman Averaging/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
