# Session 245: Locating every printed cell on pages 49–51

The first question is where one cell ends and the next begins. [Page 49](66.jpg) has ten grid rows following its runes, [page 50](67.jpg) has thirteen grid rows, and [page 51](68.jpg) has nine before the runes resume. Reading left to right gives 80 + 104 + 72 = **256 cells**, each containing two printed glyphs. [Inspect any cell on the original scans](grid_inspector_254.html).

The segmentation used only the three saved 2,400 × 3,600 JPEGs. At a grayscale cutoff of 128, 509 of the 512 glyphs are one connected ink shape. The three others have a detached dot; those dots were retained. The same grouping accounted for every dark pixel in the grid rectangles at five thresholds (64, 96, 128, 160 and 196). No edge of a glyph box moved by more than one pixel.

Two cells explain why a simple whitespace split can go wrong. On [page 51, row 1, column 3](grid_inspector_254.html#p51-r1-c3), the two glyph boxes overlap by three columns, although their ink never touches. On page 51, row 4, the [fourth pair](grid_inspector_254.html#p51-r4-c4) has 36 white columns between its characters, while one gap *between* cells on that row is only 30 columns. Take the sixteen glyphs in order and pair them. Do not assume the seven widest gaps are the cell boundaries.

Rows and columns in the inspector start at 1 on each LP2 page. In the data, byte offsets start at 0 over all three pages. Coordinates are original-image pixels; right and bottom edges are excluded.

[Image-only protocol](geometry_plan.txt) · [Cell and glyph boxes, compressed JSON](grid_geometry_245.json.gz) · [Threshold checks and JPEG fingerprints](geometry_quality.json) · [Segmentation code](geometry.py). To reproduce, run `python geometry.py SOURCE_DIR OUTPUT_DIR` in an existing output directory with Pillow, NumPy and SciPy; the uncompressed result is named geometry.json.
