An approach for quantitative analysis of cementation in sandstone based on cathodoluminescence and MATLAB algorithms