Where the line sits: reading horizon and vertical-line position in photographs, checked against human marks
Russell Parrish, Parallax Metrology. Note, 20 November 2026. Not peer reviewed. · Code and data · Lab book
Photographers describe composition by where things sit: a horizon in the middle or on a third of the frame, a vertical line at the centre or on a third, a subject on a power point. We built plain, named measurements of the strongest horizontal and vertical lines in a photograph, with no model trained on photographs, and checked them against people in two ways. They agree with where annotators drew lines, and they separate expert-labelled categories that whole-image methods could not. The same approach did not work for subject placement, and this note says so.
1. Background
The datasets. PICD (Zhao et al., CVPR 2025) labels each of its photographs with one of 24 composition categories, for example "Horizontal Middle Part" and "Horizontal Third Part". CADB (Zhang, Niu and Zhang, BMVC 2021) labels each photograph with one or more of 13 classes and includes the annotators' own drawn marks (lines, boxes). The problem. In an earlier benchmark study five PICD category pairs stayed near coin-flip accuracy for every method we tried, including three well-known learned models, and the data could not say whether the categories overlap or the methods are too coarse. Those methods each reduce a picture to one summary vector with no record of where things sit; we call them whole-image methods. A reading is a named number computed from an image with no training, such as "the strongest horizontal line sits at 0.37 of the height". Each reading has a written definition and can be inspected on the picture.
How to read the numbers. AUC (one-vs-rest or pairwise) is the chance that a random image of the target category scores higher than a random image of the other category or categories: 0.5 means no separation and 1 means perfect. Intervals are 95% bootstrap intervals. A fitted layer is a logistic regression trained on labelled images and is called one wherever it appears; the readings themselves are training-free (two detection thresholds were calibrated on synthetic images). Discipline: a written plan fixed the definitions and the predictions before each real-photograph test; the PICD readings were designed on one half of a held-out pool, confirmed once on the other half, and tested once on 960 fresh images; CADB was read once.
2. What is measured
Reading. One measurement (the profile) serves every horizontal template; the thirds, centre, phi and fifths scores differ only in which positions they read. Here the strongest line sits at 0.37 of the height and phi_h scores highest (z 4.2); a line near the lower or upper third can sit nearer the phi position than the thirds one, which are only 4.9% of the frame apart.
A real photograph (PICD, credit at the end) beside its row profile: the mean vertical gradient of each row. The strongest horizontal line sets y*. Shaded bands are the tolerance around 1/3, 1/2 and 2/3.
Data table for figure 1
| template / reading | z score | rank score |
|---|---|---|
| thirds_h | 0.81 | 0.92 |
| centre_h | 0.14 | 0.43 |
| phi_h | 4.16 | 1.98 |
| fifths_h | 1.70 | 0.74 |
| y* (dominant horizontal line) | 0.369 |
Strongest horizontal line at 0.40 of the height: 0.07 from the upper third.
Strongest horizontal line at 0.28 of the height: 0.05 from the upper third.
Strongest vertical line at 0.50 of the width: 0.00 from the middle.
Strongest vertical line at 0.41 of the width: 0.07 from the left third.
Reading. The measured line is not always where the category name suggests; the reading is a measurement of the picture, not a copy of its label.
One image drawn at random (seeded) from each of four PICD categories. White dashed lines mark 1/3, 1/2 and 2/3; the solid line is the measured position. Images from PICD (Zhao et al., CVPR 2025), the part released for redistribution, shown reduced and uncropped under CC BY-NC-SA 4.0 and the dataset's Terms of Use; the dataset does not record photographer or platform per image; ids shown.
Data table for figure 2
| category | image id | reading |
|---|---|---|
| LS-Hori2 | 000217 | Strongest horizontal line at 0.40 of the height: 0.07 from the upper third. |
| LS-Hori3 | 034445 | Strongest horizontal line at 0.28 of the height: 0.05 from the upper third. |
| L-Ver2 | 014341 | Strongest vertical line at 0.50 of the width: 0.00 from the middle. |
| L-Ver3 | 028027 | Strongest vertical line at 0.41 of the width: 0.07 from the left third. |
3. Result: it agrees with where people drew the line
CADB annotators drew the elements they saw for each composition class, in each photograph's own pixel frame. For photographs with exactly one marked horizontal segment, we compared its height with the reading's y*. The comparison is a direct check against human marks, not against a category label. Shuffling the marks across photographs gives the null: errors four to six times larger.
Reading. Horizontal: median error 0.040 of the image height against 0.226 when the marks are shuffled across images; vertical 0.069 against 0.287.
CADB, all 9,497 photographs: images with exactly one annotated horizontal (n = 2117) or vertical (n = 377) segment. Each dot is one photograph; the dashed line is perfect agreement. The reading was fixed and hashed before CADB was read once.
Data table for figure 3
| class | images with one mark | median error | within 0.05 | median error, permuted marks |
|---|---|---|---|---|
| horizontal | 2117 | 0.040 | 53% | 0.226 |
| vertical | 377 | 0.069 | 47% | 0.287 |
On the official test split alone the numbers are the same in kind (horizontal n = 159, median error 0.026; vertical n = 29, median 0.084). About half of the photographs fall within 0.05 of the image height; the rest scatter. We have not analysed why; a likely cause is photographs with no single dominant line.
4. Result: it separates categories that whole-image methods could not
In the earlier benchmark, "horizontal middle" vs "horizontal third" and "vertical middle line" vs "vertical third line" scored 0.49 to 0.55 pair accuracy for every method. The category definitions are about position, and the line readings report position.
Reading. Middle categories cluster at 1/2; third categories sit at 1/3 and 2/3.
40 images per category, LockboxB, read once.
Data table for figure 4
| reading | category 1 | median | category 2 | median |
|---|---|---|---|---|
| Strongest horizontal line: height | LS-Hori2 | 0.528 | LS-Hori3 | 0.653 |
| Strongest vertical line: position | L-Ver2 | 0.496 | L-Ver3 | 0.584 |
Reading. Both pairs separate on all three sets. A pooled whole-image embedding trained on about 69 images per category stays at 0.54 and 0.64 on the confirmation half; trained on 138 per category and tested on fresh images it reaches 0.74 and 0.64 (see the text).
AUC of the line-position reading: the chance that a random image of the thirds category scores higher than one of the middle category (0.5 is no separation). The pooled DINOv3 probe is a trained model plus a fitted layer, trained on about 69 images per category.
Data table for figure 5
| pair | score | DevA | DevB [95% interval] | LockboxB [95% interval] | pooled DINOv3 probe, DevB | detection rate, LockboxB |
|---|---|---|---|---|---|---|
| LS-Hori3 vs LS-Hori2 | |y*-0.5| | 0.846 | 0.863 [0.789, 0.923] | 0.776 [0.665, 0.876] | 0.543 | 98% |
| L-Ver3 vs L-Ver2 | |x*-0.5| | 0.766 | 0.816 [0.738, 0.888] | 0.794 [0.682, 0.901] | 0.639 | 95% |
A fair question is whether the reading beats learned models or only beats a pooled embedding that is built to discard position. We gave learned probes position-aware features (a map of where DINOv3's features are strong, or a plain 16 x 16 grid of edge strength) and up to 138 labelled images per category. They match or pass the reading from about 20 to 40 labelled images for the vertical pair, and are level with it for the horizon pair on fresh images (edge grid 0.82 against the reading's 0.78; vertical 0.85 against 0.79), while the pooled embedding stays at 0.74 and 0.64. So the categories do differ in position as defined, and the reading's advantage is that it needs no labelled image, not a higher ceiling.
Reading. The reading's advantage is that it needs no labelled images, not a higher ceiling.
Lines: mean of 10 random splits on the PICD pool; diamonds: trained on the whole pool, tested on fresh images. The dashed line is the reading, which uses no labelled image.
Data table for figure 6
| pair | method | 10 | 20 | 40 | 70 | 100 | LockboxB (train 138) |
|---|---|---|---|---|---|---|---|
| LS-Hori3 vs LS-Hori2 | D-pool | 0.555 +/- 0.074 | 0.550 +/- 0.089 | 0.596 +/- 0.064 | 0.602 +/- 0.057 | 0.630 +/- 0.077 | 0.740 |
| LS-Hori3 vs LS-Hori2 | D-grid | 0.590 +/- 0.071 | 0.631 +/- 0.063 | 0.693 +/- 0.048 | 0.738 +/- 0.045 | 0.770 +/- 0.037 | 0.668 |
| LS-Hori3 vs LS-Hori2 | D-norm | 0.586 +/- 0.065 | 0.584 +/- 0.070 | 0.623 +/- 0.050 | 0.629 +/- 0.032 | 0.641 +/- 0.027 | 0.653 |
| LS-Hori3 vs LS-Hori2 | G-bright | 0.621 +/- 0.070 | 0.678 +/- 0.038 | 0.742 +/- 0.042 | 0.777 +/- 0.039 | 0.787 +/- 0.057 | 0.802 |
| LS-Hori3 vs LS-Hori2 | G-edge | 0.643 +/- 0.104 | 0.720 +/- 0.076 | 0.768 +/- 0.054 | 0.797 +/- 0.041 | 0.814 +/- 0.038 | 0.818 |
| LS-Hori3 vs LS-Hori2 | position reading | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.849 +/- 0.043 | 0.776 |
| L-Ver3 vs L-Ver2 | D-pool | 0.575 +/- 0.045 | 0.604 +/- 0.057 | 0.626 +/- 0.049 | 0.659 +/- 0.044 | 0.680 +/- 0.049 | 0.642 |
| L-Ver3 vs L-Ver2 | D-grid | 0.597 +/- 0.057 | 0.618 +/- 0.065 | 0.642 +/- 0.038 | 0.667 +/- 0.047 | 0.698 +/- 0.045 | 0.637 |
| L-Ver3 vs L-Ver2 | D-norm | 0.721 +/- 0.076 | 0.781 +/- 0.072 | 0.820 +/- 0.058 | 0.842 +/- 0.048 | 0.844 +/- 0.052 | 0.844 |
| L-Ver3 vs L-Ver2 | G-bright | 0.563 +/- 0.062 | 0.579 +/- 0.048 | 0.618 +/- 0.053 | 0.638 +/- 0.042 | 0.656 +/- 0.044 | 0.676 |
| L-Ver3 vs L-Ver2 | G-edge | 0.702 +/- 0.092 | 0.774 +/- 0.048 | 0.807 +/- 0.040 | 0.842 +/- 0.041 | 0.849 +/- 0.043 | 0.848 |
| L-Ver3 vs L-Ver2 | position reading | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.776 +/- 0.037 | 0.794 |
5. Where else it works on CADB, and where it does not
Zero-shot, the line coverage scores (how much of the frame's width or height the strongest line's edge spans) rank CADB's horizontal and vertical classes above the rest (AUC 0.77 and 0.63). The thirds and centre scores, which depend on where a subject sits, are barely above chance (0.57 and 0.55); diagonal (0.53), golden ratio (0.54), triangle (0.51), spiral (0.47) and perspective (0.60, interval crossing 0.5) are not supported. A fitted DINOv3 probe is ahead of every zero-shot score on every class, so as a classifier the readings are weaker; their value is that they are named and checkable.
Reading. The line coverage scores carry the result; thirds and centre are barely above chance; a fitted probe on DINOv3 is ahead on every class.
CADB test split (950 images); multi-label images count as positives for each of their classes. Bold labels are classes whose lens score does not clear 0.5 with its interval (diagonal was a pre-stated prediction; golden ratio, triangle and curved had none; vanishing point was predicted not to).
Data table for figure 7
| class | positives (test) | lens score | lens AUC test [95% interval] | lens AUC all 9,497 | Facet-style | fitted lens probe | fitted DINOv3 probe |
|---|---|---|---|---|---|---|---|
| center | 451 | max centre_h/v/pt | 0.550 [0.513, 0.587] | 0.537 | 0.512 | 0.658 | 0.810 |
| horizontal | 246 | line coverage (h) | 0.774 [0.740, 0.806] | 0.737 | - | 0.814 | 0.876 |
| diagonal | 201 | max of two diagonals | 0.535 [0.488, 0.582] | 0.522 | - | 0.661 | 0.810 |
| vertical | 182 | line coverage (v) | 0.632 [0.586, 0.675] | 0.617 | - | 0.710 | 0.862 |
| rule_of_thirds | 113 | max thirds_h/v/pts | 0.565 [0.510, 0.619] | 0.535 | 0.594 | 0.619 | 0.736 |
| triangle | 48 | max golden triangle | 0.513 [0.428, 0.601] | 0.505 | - | 0.638 | 0.675 |
| symmetric | 54 | - | - | - | - | 0.597 | 0.885 |
| golden_ratio | 39 | max phi_h/v/pts | 0.545 [0.442, 0.644] | 0.556 | - | 0.580 | 0.591 |
| curved | 57 | golden spiral | 0.473 [0.397, 0.546] | 0.510 | - | 0.537 | 0.828 |
| fill_the_frame | 66 | - | - | - | - | 0.710 | 0.848 |
| vanishing_point | 27 | finite VP support | 0.597 [0.491, 0.704] | 0.559 | - | 0.770 | 0.979 |
| pattern | 21 | - | - | - | - | 0.770 | 0.984 |
| radial | 6 | - | - | - | - | 0.704 | 0.930 |
6. What is open, and what this does not show
- Subject placement is not solved. The compact-object reading separated a "subject at the centre" from a "subject at a power point" category on PICD (AUC 0.83 on fresh images), but on CADB its location does not follow the annotated subject boxes (median distance 0.28 against 0.28 for shuffled boxes), and a patch-norm probe separates the same PICD pair far better (0.93). We hold that pair back. A better subject reading would probably need a trained saliency model, labelled as such, and CADB's boxes give it a ground truth.
- Other named templates (golden triangle, golden spiral, phi and fifths grids, rabatment, vanishing-point counts) were built and tested on exact synthetic layouts only, where they pass, but have no real-photograph support here.
- Two of the five hard PICD pairs (arrangements of several points) have no reading yet. We have no annotator-agreement data, so the partial separation (AUC 0.78 to 0.79 on fresh images) is not interpreted as label noise or as overlap.
- The evidence is two web-photograph datasets at a 384-pixel working size, with 40 images per category on the fresh set (intervals of about +/- 0.1). The line readings assume a dominant line; scenes without one are read less well.
Method and records
Readings: lens/ (profiles of mean gradient across rows and columns; tolerance 1.5% of the frame; PLAN.md fixes every definition). Specifications hashed before the confirmation, fresh and CADB runs: 570a8351… (PICD confirmation), 88f4193d… (PICD fresh), 0fc784df… (CADB); each real-photograph run was read once and the guards refuse a second run (the first CADB extraction hung without producing any output; the script was made crash-safe and the specification re-frozen before the rerun, a change logged as amendment A6). Comparators: a fitted logistic probe on DINOv3 (timm weights, offline), probes on patch-token maps and on brightness and edge-strength grids, and a reimplementation of Facet's thirds and centre heuristic. Full lab book with synthetic tests, claims ledger, amendments, fallen ideas and reproduction commands: the lab book. Code, derived results and a script that recomputes the real-photograph numbers: github.com/parallaxmetrology/composition-lens. The five-pair question comes from an earlier benchmark study of PICD (not published).
Image credit
Example images are from PICD (Zhao et al., CVPR 2025), the part of the dataset released for redistribution, shown at reduced size and uncropped. The dataset is released under CC BY-NC-SA 4.0 and its Terms of Use (non-commercial academic and educational use); it comes from open platforms (Unsplash, Pexels, Flickr) and redistributable datasets and does not record the photographer or platform per image, so credit is to the dataset and the image ids are given. CADB (built on AADB Flickr images, research use only) was used locally and none of its images are shown. Please see the PICD page for the terms before reusing any image.