How to use the Digital Hand Lens – Focus-Stacking Macro Camera
Free · works offline · no sign-up
Use your phone camera as a hand lens: full-resolution close-ups, focus stacking with alignment, grain size measured against a coin, and a reading of the close-up. Free.
What it does
A phone magnifying glass: sharp close-ups of a stone, the size of its grains measured against a coin, the sorting, skewness and kurtosis of those grains by Folk & Ward (1957), and a roundness count on the Powers (1953) classes.
What you need
Your phone and a coin (or a bank card, or a ruler) to lay beside the stone. A clip-on 10×–15× lens helps.
How to use it
- Lay a coin beside the stone and tap "TAKE CLOSE-UPS", or use "Guided series"; take 2 to 12 shots, focusing a little deeper each time.
- Tap "STACK THE FRAMES" to join the sharp parts into one picture.
- Tap "Tap two points across the coin", tap its two opposite edges and choose the coin, then tap "MEASURE".
- For a hand count, tick "Keep measuring" and tap across one grain after another with "Measure a length". Or, in the size statistics card, type or paste sizes (a pebble count with a ruler), or open a CSV file.
- In "Sorting, skewness and the size curve", pick which grains to use: found in the picture, tapped, or typed.
- For roundness, look at grains one at a time and tap the drawing each looks most like; count fifty or more.
- Tap "READ THE CLOSE-UP" for what the stone may be.
Reading the answer
- Median
- Half the grains are bigger, half smaller; with its Wentworth (1922) class (sand 0.0625–2 mm).
- Phi
- phi = −log₂(size in mm): 0 is 1 mm, 1 is 0.5 mm, 2 is 0.25 mm, −1 is 2 mm.
- Mz, σI
- Folk & Ward graphic mean and sorting, in phi, with the words from very well sorted (under 0.35) to extremely poorly sorted (over 4).
- SkI, KG
- Skewness (−0.1 to +0.1 symmetrical) and kurtosis (0.90–1.11 mesokurtic).
- K′G
- Transformed kurtosis, KG/(1+KG): 0.50 for a normal curve. Deep-sea drilling reports list it beside KG.
- Moments
- Mean, standard deviation (divided by n, as GRADISTAT does), skewness and kurtosis (3 for a normal curve) on every grain, for comparison with laser or sieve software, with the words of Blott & Pye (2001) Table II(c) for the logarithmic method of moments (for example sorting 0.50–0.70 φ is moderately well sorted; kurtosis 2.55–3.70 is mesokurtic).
- Sieve weights
- The "Sieve weights" card takes a laboratory sieve sheet (opening of each sieve, weight retained, a pan) and gives the Folk & Ward measures, D10/D50/D90, the logarithmic moments of Blott & Pye (2001), the gravel, sand and mud percentages and the Folk (1954) name such as "slightly gravelly muddy sand". Percentiles that fall in the pan are marked as estimates.
- Roundness
- Mean Wadell roundness from the Powers classes (0.14 very angular to 0.84 well rounded) and the Folk ρ class.
Grains finer than about 0.06 mm need a microscope. Counts here are by number of grains; sieve curves are by weight, so compare like with like. Grains found automatically are the ones resolved in the picture, so the finest are missing.
Files
- Grain list (CSV): one row per grain (size in mm, phi, class, how it was measured, roundness), with the scale in the header lines. It opens again in the loupe, in a spreadsheet, ImageJ or R.
- Class table (CSV): grains per ½-phi class, laid out like a sieve sheet (passes / retained on, mm and µm, %, cumulative %).
- Roundness tally (CSV): count per Powers class, with the class limits and Folk ρ classes.
- Sieve sheet (CSV): opening in µm in the first column (0 = pan), one weight column per sample; the layout of the R package G2Sd and of GRADISTAT. In R,
granstat(read.csv("file.csv", row.names = 1))reads it. Headings with mm or phi, semicolons and decimal commas are read too. - Sieve results (CSV): per-sieve percent and cumulative percent, the nine percentiles, Folk & Ward and moment measures with their words, gravel/sand/mud and the Folk (1954) name.
- Opening files: any CSV or TSV whose header names a size column (size_mm, diameter, b-axis, Feret (µm), phi …), a single column with a title line, or a bare list of numbers.
Methods
Wentworth 1922; Krumbein 1934, 1938; Folk & Ward 1957, J. Sed. Petrol. 27:3–26; Folk 1968; Krumbein & Pettijohn 1938; Powers 1953, J. Sed. Petrol. 23:117–119; Wadell 1935; Folk 1955. Checked against the SFWMD Naples Bay substrate report (sample NB-01), Powers' own table, the Wentworth class limits, the normal curve (KG = 1.00, K′G = 0.50) and the NIST Statistical Reference Datasets NumAcc1–3 for the moments. Press "Run the checks" under "Methods and sources" on the page to run them on your phone.
Sieve weights are checked against the reference program G2Sd 2.2 (CRAN; Fournier, Gallon & Paris 2014) on its 21 published samples (data(granulo), Godet et al. 2009): percentiles, mean, kurtosis, gravel/sand/mud and the sediment name agree to 1e-9, and G2Sd reads the sheet the loupe saves with the same results. G2Sd 2.2 prints phi sorting and skewness with the opposite sign; the loupe follows Folk & Ward. The moments agree with the CRAN package moments on the same class mid-points.
Open the Digital Hand Lens – Focus-Stacking Macro Camera — free →