Professional Documents
Culture Documents
Short note
University of Massachusetts, Department of Geosciences, Climate System Research Center, Amherst, MA 01003, USA
Institut National de la Recherche Scientique, Centre Eau, Terre et Environnement, Quebec, Canada G1K 9A9
a r t i c l e in fo
abstract
Article history:
Received 28 July 2009
Received in revised form
26 February 2010
Accepted 26 March 2010
A macro has been developed that allows for automated statistical analyses of particles. It can be used
with binary images from any source, and is developed for use with lacustrine, marine, Aeolian, and
marine sediments. The macro code is freely available, and runs on open-source software. It has been
specially designed to accommodate very small regions of interest relative to particle size, and to
produce continuous downcore stratigraphies. The macro runs quickly, requires no user-interaction, is
easily modiable, saves raw data for algorithm checking and further analyses, and can run in a mode
that quanties cracks and other disturbances on images. The macro allows for rapid analyses of
relatively long sedimentary sequences, and provides relevant sedimentary interpretations of transport
and depositional processes. Examples of output from two lacustrine sediment records and one marine
record are shown.
& 2010 Elsevier Ltd. All rights reserved.
Keywords:
Image analysis
Sediment
Particle size
ImageJ
Macro
1. Introduction
High-resolution records of particle texture and structure are
useful for interpreting sub-annual paleoenvironmental data, and
for deciphering short-term sedimentary processes from cores and
sediment traps. One way to obtain these records is to acquire
images of particles, threshold the image to contain only black and
white pixels, and then use software to analyze sediment texture
and structure. The user currently has two choices for image
analysis of sediment. The rst choice is to use freely available, but
non-specialized software. Since this type of software is not
tailored to the sedimentologist, many image processing and data
analysis steps need to be manually implemented. This labor
intensive approach has led to analyses focusing on short sections
of core (Francus, 1998; Francus and Karabanov, 2000;Francus
et al., 2002; Naruse and Masuda, 2006; Lewis et al., 2007), longer,
relatively easily measured indices, such as grayscale (Ojala and
Francus, 2002), or longer qualitative analyses (Dean et al., 1999).
The second choice is to use software that is not freely available,
either because it is a commercial product, or because it has not
$
Code available from server at http://www.geo.umass.edu/climate/lewis/
analysis/or at http://www.iamg.org/CGEditor/index.htm.
n
Corresponding author. Tel.: +1 613 533 6000x75926; fax: + 1 613 533 6122.
E-mail address: limno.ted@gmail.com (T. Lewis).
1
Present address: Department of Geography, Queens University,
Mackintosh-Corry Hall Room D201, Kingston, Ontario, Canada K7L 3N6.
been widely distributed (ex. van den Berg et al., 2003; Selmaoui
et al., 2004; Seelos and Sirocko, 2005).
Here we present a freely available2 macro called binary_traverser. It is specically designed for image analysis of sedimentary particles. The macro runs with the image analysis software
ImageJ (Rasband, 2010), which is available for Windows,
Macintosh, and Unix-based operating systems with no additional
hardware requirements. The macro is designed to automate much
of the image analysis process, and can be used with lacustrine,
marine, glacial, and aeolian sediments.
Binary traverser calculates a suite of statistics that describe
the texture and structure of sediment for a series of user-dened
regions of interest (ROI) within images. Parameters that can be
measured include area, major and minor axes, aspect ratio,
circularity, and angle. It currently contains over 600 lines of code.
Specic counting rules are implemented that allow each particle
to be counted only once, allowing very small ROI, and ROI with
touching edges to be analyzed (Russ, 2002). The system can also
run in a mode that quanties the area of disturbed sections of ROI.
When disturbance in an ROI exceeds a user-dened threshold,
statistics from that ROI can be rejected.
The rst part of this manuscript is a general description of
binary_traverser. Also included in this section is a description of
2
An automated system for the statistical analysis of sediment at the micro
scale is licensed under a Creative Commons Attribution-Noncommercial-Share
Alike 3.0 Unported License.
0098-3004/$ - see front matter & 2010 Elsevier Ltd. All rights reserved.
doi:10.1016/j.cageo.2010.03.018
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
four other smaller macros that help the user prepare images for
binary_traverser. The second section provides results from two
lakes and a silled ord. These examples use images from
backscattered electron images (BSEI) from scanning electron
microscopes (SEM). Use of BSEI eliminates cutting effects inherent
with transmitted light microscopy (Seelos and Sirocko, 2005);
however, the macro can be used with binary images from any
source. As binary_traverser allows extremely small ROI to be
analyzed, issues related to small sample sizes are briey
addressed in the discussion.
2. General description
ImageJ is an image analysis package that is open, free, widely
used, multi-platform, well-documented, and well-supported
(Rasband, 2010). Five ImageJ macros are presented here. They
are small uncompiled ASCII text les, and users with minimal
programming experience can rapidly make their own modications, verify the algorithms, and run them.
Four of the macros, enhancement, threshold_pause, watershed_llholes, and ROI_imager are small tools for efciently
preparing images for analysis by the main macro, binary_traverser (Fig. 1). These four small macros are designed to quickly and
semi-automatically process large numbers of images, since they
process all les within a directory.
The macro enhancement prepares images for thresholding by
running median lters, enhancing contrast, and the ImageJ
sharpen algorithm (Nederbragt et al, 2004; Rasband, 2010).
Threshold_pause opens a grayscale image, pauses while the user
selects appropriate upper and lower graylevel histogram limits
(Nederbragt et al, 2004), automatically creates a binary image
based on the chosen histogram limits, and saves the image. It
produces uncompressed binary (1-bit) images, with particles as
black (graylevel255), and matrix and background as white
(graylevel0; Fig. 1 C, D, H).
Watershed_llholes sequentially opens all binary images in a
directory, separates touching particles using the ImageJ watershedding algorithm, and lls in holes in particles (white pixels
completely surrounded by black pixels; Nederbragt et al, 2004;
Fig. 2). The accuracy of particle separation needs to be carefully
monitored by the user. Several alternatives are available to the
watershedding algorithm used here, both within ImageJ and in
separate software packages (van den Berg et al., 2002; Barraud,
2006; Faessel and Courtois, 2009). Since no segmentation
algorithm is perfect, manual editing of improperly segmented
grains is necessary (Fig. 2).
ROI_imager opens a binary image and a text le containing
ROI coordinates, and draws the ROI on the image. This is useful to
verify that ROI coordinates are appropriate before running
binary_traverser. The macro can be used on a large image mosaic
(Fig. 1H).
The remainder of this manuscript provides a description and
examples of binary_traverser. The macro produces a suite of
statistics for parameters that describe sediment texture and
structure for user-dened ROI. A step-by-step description of
binary_traverser is shown in Fig. 3. For input, the macro uses a
binary image of particles (Fig. 1G and H) and a text le containing
a sequence of coordinates of box-shaped areas on the image.
These are the ROI, and subsequent analyses are performed on
particles that fall within the ROI. In its normal running mode, the
macro can produce two types of output. The rst type is a single
le containing summary statistics, with each row containing
statistics for each ROI in its columns. The second output type is a
series of text les, one for each ROI. Each text le contains the
raw measurements for each particle within that ROI. This is
http://www.geo.umass.edu/climate/lewis/analysis/.
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Fig. 1. Steps for producing results from binary_traverser. (A) Flatbed scan of a thin section under cross-polarized light containing a sequence of varves from Lake Tuborg,
Ellesmere Island. Image is 6.4 cm long along its left edge. Fifty-four backscattered electron images (BSEI) were obtained in a continuous transect with overlapping tops and
bottoms (dotted line). (B) Examples of BSEI from two locations of thin section. Upper image is a typical zone of light gray clastic grains surrounded by dark gray and black
matrix. Lower image shows where a crack formed near a clay cap. Images are 1.4 mm high. Enhancement macro ran ImageJ enhance contrast, sharpen, and median lter
algorithms on BSEI. (C) Binary images from BSEI in B. Threshold_pause and watershed_llholes were used to produce binary images. (D) A close-up of clastic grains in a
binary image. Image is 315 mm high. (E) A binary image of a crack, produced with threshold_pause macro, suitable for analysis by binary_traverser (see left branch of
Fig. 3). Image is 1.4 mm high. (F) Mosaic of 54 binary crack images and (G) mosaic of clastic grains. (H) An image of ve ROI produced with ROI_imager. ROI are 75 mm
high, and coordinates were carefully chosen to not extend beyond borders of BSEI. (I) Results from binary_traverser for ROI shown here. Statistics from bottommost ROI
were excluded because of disturbance associated with a crack. Equivalent disc diameter is diameter calculated using cross-sectional area, assuming a perfect sphere
(Francus, 1998). See Fig. 6 for complete results from this thin section.
3. Examples
Results are presented from Lake Tuborg and South Sawtooth
Lake on Ellesmere Island in the Canadian High Arctic, and
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Fig. 2. Effects of image enhancement, thresholding, watershedding, and lling holes. Each image is 315 mm high. Statistics are in units of microns squared. Image is rst
enhanced (ImageJ algorithms median lter, enhance contrast, and sharpen), then thresholded, then watershedded and enclosed holes within a particle are automatically
lled. Watershedding increases number of particles and decreases mean particle size by breaking apart touching grains. Finally, grains that were improperly thresholded and
watershedded are manually joined, which slightly decreases number of measured particles, and slightly increases mean particle size. Macro names are italicized.
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Fig. 3. Flowchart summarizing input and output of binary_traverser. Macro runs in a mode that quanties disturbed areas of a thin section, and in a mode that calculates
user-dened statistics for regions of interest. Output from both branches can be merged, and statistics calculated from disturbed sections can be discarded or agged.
processes: jokulhlaups
and supraglacial lake drainage (Braun
et al., 2000; Lewis et al., 2007). These deposits have been
extensively studied; however, in this paper we focus on the
characteristics the annual sedimentary cycle, which is the more
typical style of sedimentation in the lake.
The images in Fig. 6 are atbed scans of a thin section under
cross-polarized light. Dark laminae are either layers of clay-sized
particles or cracks. Binary_traverser was rst run in the mode
that quanties disturbed sections (Fig. 1E and F; Fig. 2, left
branch), and data were excluded if an ROI contained more than
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Coring technique
Coring depth (m)
SEM
Working distance (mm)
Beam strength (kV)
Image size (pixels; w h)
Lake Tuborg
S. Sawtooth Lake
Saanich Inlet
Ekman dredge
74
JEOL JSM-5410
20
20
1923 2650
Vibracore
82
JEOL JSM-5410
20
20
2048 1536
Piston Core
224
Zeiss Evo 50
17.5
15
1506 2048
Fig. 5. (A) Map of Canadian High Arctic, showing Lake Tuborg T, and South Sawtooth Lake S on Ellesmere Island. Also shown are military bases at Eureka E and Alert A,
and Resolute Bay R, Cornwallis Island. Resolute Bay and Eureka are 630 km apart. (B) Saanich Inlet S, southern Vancouver Island. Victoria Vi and Vancouver V are
marked.
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Fig. 6. Varves from freshwater basin of Lake Tuborg. (A) A 60 mm section showing ve varves (V1V5). Image is a atbed scan of a thin section under cross-polarized light.
A series of 54 backscattered electron images were stitched together to produce a mosaic (Fig. 1G). Measurements were performed on 121 ROI. Measurements were
obtained every 750 mm, and there are 122 measurements over 61 mm. Red lines mark clay caps. Equivalent disc diameter measurements from ROI containing greater than
20% cracks were excluded. Red dashed box in thin section image is expanded in B. (B) A 20 mm close-up of one varve. Measurements were obtained every 75 mm, and ROI
were 3.75 104 mm2. There are 41 measurements over 20 mm. Dashed lines and red arrows mark clay caps. (For interpretation of the references to colour in this gure
legend, the reader is referred to the web version of this article.)
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Fig. 7. A graded sequence from a vibracore obtained in South Sawtooth Lake, distal basin, showing statistics based on particle area. Image is a mosaic of backscattered
scanning electron microscope images, with a crack introduced by freeze drying process at around 6.5 mm depth. Measurements were obtained every 75 mm, ROI are
2.3 105 mm2, and there are 81 ROI over 6.5 mm. EDD is equivalent disc diameter (Francus, 1998). Surface plot shows histograms for each sample (Beierle et al., 2002).
Z-scale is weight per histogram bin, calculated using density of quartz and EDD. Histogram bin spacing progresses log10. White arrow on image points to an isolated large
grain separated by ne-grained matrix.
4. Discussion
Binary_traverser allows the use of extremely small ROI
relative to particle size. This necessitates a discussion of what
the minimum number of particles within an ROI should be.
Several authors have cited minimum numbers of particles; for
example, Cheetham et al. (2008) cite 300 grains, Naruse and
Masuda (2006) indicate 2501100 grains, and Van Den Berg et al.
(2003) cite 10001200 grains. We see no statistical reason for a
constant minimum number of grains, so long as two caveats are
met. First, a given measurement of a small area cannot be scaled
up to describe an area larger than itself. This is called a sample
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
Fig. 8. A sequence of ve varves from Saanich Inlet. Image is a atbed scan under cross-polarized light. Winter (W) and summer (S) deposits are marked. Blue lines mark
boundaries between underlying terrigenous-dominated laminae and overlying biogenic-dominated laminae. Red lines mark boundaries between underlying biogenicdominated laminae and overlying terrigenous-dominated laminae. Measurements are every 220 mm, ROI area is 3.8 105 mm2, and there are 102 measurements over
2.3 mm. (For interpretation of the references to colour in this gure legend, the reader is referred to the web version of this article.)
5. Conclusion
A system has been presented that can produce extremely highresolution records of particle texture. Results have been shown
from clastic and biogenic-dominated sedimentary environments,
and from inter- and intra-annual sedimentary sequences. Its key
advantages are its ability to produce accurate results on very
small ROI, to quantify the silt-sized fraction, to run unattended,
and its open and free source code and parent program, ImageJ.
Acknowledgements
Wayne Rasband and the National Institute of Health maintain
and support ImageJ. Mark Besonen selessly provided expertise
on scanning electron microscopy and the ImageJ macro language.
The Polar Continental Shelf project (PCSP) provided the logistics
that made collecting sediments at South Sawtooth Lake and Lake
Tuborg possible. This research was supported by National Science
Foundation (NSF) Grant ATM-9708071, ATM-0402421, ARC0454959, NSF Doctoral Dissertation Research Improvement
Award 0221376, Geological Society of America graduate student
grants, an Arctic Institute of North America grant-in-aid, and the
Gloria A. Radke prize from the University of Massachusetts. This is
PCSP contribution number 01010.
References
Anguy, Y., Ehrlich, R., Prince, C.M., Riggert, V.L., Bernard, D., 1994. The sample
support problem for permeability assessment is sandstone reservoirs. In:
Yarus, J.M., Chambers, R.L. (Eds.), Stochastic Modelling and Geostatistics;
Principles, Methods and Case Studies: Computer Applications in Geology.
American Association of Petroleum Geologists, Tusla, OK, pp. 3754.
Barraud, J., 2006. The use of watershed segmentation and GIS software for textural
analysis of thin sections. Journal of Volcanology and Geothermal Research 154,
1733.
Beierle, B.D., Lamoureux, S.F., Cockburm, J.M.H., Spooner, I., 2002. A new method
for visualizing sediment particle size distributions. Journal of Paleolimnology
27, 279283.
Best, J.L., Kostaschuk, R.A., Peakall, J., Villard, P.V., Franklin, M., 2005. Whole ow
eld dynamics and velocity pulsing within natural sediment-laden underows. Geology 33, 765768.
Braun, C., Hardy, D.R., Bradley, R.S., 2000. Hydrological and meteorological
observations at Lake Tuborg, Ellesmere Island, Nunavut, Canada. Polar
Geography 24, 8397.
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018
10
Cheetham, M.D., Keene, A.F., Bush, R.T., Sullivan, L.A., 2008. A comparison of grainsize analysis methods for sand-dominated uvial sediments. Sedimentology
55 (6), 10051913. doi:10.1111/j.1365-3091.2008.00972.x.
Dean, J.M., Kemp, A.E.S., Bull, D., Pike, J., Patterson, G., Zolitschka, B., 1999. Taking
varves to bits: scanning electron microscopy in the study of laminated
sediments and varves. Journal of Paleolimnology 22, 121136.
Faessel, M., Courtois, F., 2009. Touching grain kernels separation by gap-lling.
Image Analysis & Stereology 28, 195203.
Francus, P., 1998. An image analysis technique to measure grain-size variation in
thin sections of soft clastic sediments. Sedimentary Geology 121, 289298.
Francus, P., Asikainen, C.A., 2001. Sub-sampling unconsolidated sediments: a
solution for the preparation of undisturbed thin-sections from clay-rich
sediments. Journal of Paleolimnology 26, 323326.
Francus, P., Bradley, R.S., Abbott, M.B., Patridge, W., Keimig, F., 2002. Paleoclimate
studies of minerogenic sediments using annually resolved textural patterns.
Geophysical Research Letters 29 (20), 1998. doi:10.1029/2002GL015082.
Francus, P., Bradley, R.S., Lewis, T., Abbott, M.B., Retelle, M.J., Stoner, J.S., 2008.
Limnological and sedimentary processes at Sawtooth Lake, Canadian High
Arctic, and their inuence on varve formation. Journal of Paleolimnology 40
(3), 963985. doi:10.1007/s10933-008-9210-x.
Francus, P., Karabanov, E., 2000. A computer-assisted thin-section study of Lake Baikal
sediments: a tool for understanding sedimentary processes and deciphering their
climatic signal International. Journal of Earth Sciences 89, 260267.
Francus, P., Pirard, E., 2004. Testing for sources of errors in quantitative image
analysis. In: Francus, P. (Ed.), Image Analysis, Sediments and Paleoenvironments. Springer, Dordrecht, pp. 87104.
Hambley, G.W., Lamoureux, S.F., 2006. Recent summer climate recorded in
complex varved sediments, Nicolay Lake, Cornwall Island, Nunavut. Journal of
Paleolimnology 35, 629640.
Hodder, K.R., Gilbert, R., Desloges, J.R., 2007. Glaciolacustrine varved sediment as
an alpine hydroclimatic proxy. Journal of Paleolimnology 38, 365394.
Lamoureux, S.F., Bollmann, J., 2004. Image acquisition. In: Francus, P. (Ed.), Image
Analysis, Sediments and Paleoenvironments. Springer, Dordrecht, pp. 1134.
Lewis, T., Braun, C., Hardy, D.R., Francus, P., Bradley, R.S., 2005. An extreme
sediment transfer event in a Canadian High Arctic stream. Arctic, Antarctic,
and Alpine Research 37, 477482.
Lewis, T., Francus, P., Bradley, R.S., 2007. Limnology, sedimentology, and hydrology
of a jokulhlaup
into a meromictic high arctic lake. Canadian Journal of Earth
Sciences 44, 791806.
Lewis, T., Francus, P., Bradley, R.S., 2009. Recent occurrence of large jokulhlaups
at
Lake Tuborg, Ellesmere Island, Nunavut. Journal of Paleolimnology 41).
doi:10.1007/s10933-008-9240-4 491-5-6.
Lewis, T., Gilbert, R., Lamoureux, S.F., 2002. Spatial and temporal changes in
sedimentary processes at proglacial Bear Lake, Devon Island, Nunavut. Arctic,
Antarctic, and Alpine Research 34, 119129.
Naruse, H., Masuda, F., 2006. Visualization of the internal structure of the massive
division in experimental sediment-gravity-ow deposits by mapping of grain
fabric. Journal of Sedimentary Research 76, 854865.
Nederbragt, A.J., Francus, P., Bollmann, J., Soreghan, M.J., 2004. Image calibration,
ltering and processing. In: Francus, P. (Ed.), Image Analysis, Sediments and
Paleoenvironments. Springer, Dordrecht, pp. 3558.
Ojala, A.E., Francus, P., 2002. Comparing X-ray densiometry and BSE-image
analysis of thin section in varved sediments. Boreas 31, 5764.
Prowse, T.D., 1990. Northern hydrology: an overview. In: Prowse, T.D., Ommanney,
C.S.L. (Eds.), Northern Hydrology, Canadian Perspectives. NRHI Science Report
No. 1, National Hydrology Research Institute, Saskatoon, pp. 136.
Rasband, W.S., 2010. ImageJ., US National Institutes of Health, Bethesda, MD, USA.
http://rsb.info.nih.gov/ij/download.html.
Reading, H.G., 1996. Sedimentary Environments: Processes, Facies and Stratigraphy. Blackwell Publishing, Oxford 704pp.
Russ, J.C., 2002. The Image Processing Handbook. CRC Press, Boca Raton 744pp.
Seelos, K., Sirocko, F., 2005. RADIUSrapid particle analysis of digital images by
ultra-high-resolution scanning of thin sections. Sedimentology 52, 662681.
Selmaoui, N., Repetti, B., Laporte-Magoni, C., Allenbach, M., 2004. Coupled strata
and granulometry detection on indurated cores by gray-level image analysis.
Geo-Marine Letters 24, 241251.
Smith, S.V., Bradley, R.S., Abbott, M.B., 2004. A 300 year record of environmental
change from Lake Tuborg, Ellesmere Island, Nunavut, Canada. Journal of
Paleolimnology 32, 137148.
Soreghan, M.J., Francus, P., 2004. Processing backscattered electron digital images
of thin sections. In: Francus, P. (Ed.), Image Analysis, Sediments and
Paleoenvironments. Springer, Dordrecht, pp. 203228.
van den Berg, E.H., Meesters, A.G.C.A., Kenter, J.A.M., Schlager, W., 2002.
Automated separation of touching grains in digital images of thin sections.
Computers & Geosciences 28, 179190.
van den Berg, E.H., Bense, V.F., Schlager, W., 2003. Assessing textural variation in
laminated sands using digital image analysis of thin sections. Journal of
Sedimentary Research 73, 133143.
Please cite this article as: Lewis, T., et al., An automated system for the statistical analysis of sediment texture and structure at the
micro scale. Computers and Geosciences (2010), doi:10.1016/j.cageo.2010.03.018