# L15 · Estimate orientation without a full mask

## Synthetic stress test · 2026-11-30

**Hypothesis.** A rough axis through a marked valve might support instance separation or retrieval even when its mask is imperfect. A cheap candidate estimates local line orientation from the image's structure tensor around the point. This is not a trained model and requires a supplied location.

**Experiment.** Reuse L4's two provisional foreground masks, two arrangements and two blending methods on one real background. For each inserted instance, derive an oracle point from the thickest portion of its synthetic mask outside the other instance (the prior L4 experiment). Compute a global PCA major axis of the *complete inserted source mask* as a geometric reference. Estimate the direction of weakest local image gradient within radius 32 and 64 pixels of the point. Compare axes modulo 180 degrees. [View all comparisons](/results/l15/) and [download data](/results/l15/axis-probe.json).

**Findings.** For the separated arrangements, differences from source-mask PCA axes range from 0.3° to 3.8°. For the crossing with opaque replacement, the hidden object's difference is 38.0° at radius 32 and 40.7° at radius 64, while the foreground object's differences are 2.3° and 0.8°. For the multiply-blended crossing, errors are 43.7° and 57.8° at radius 32, or 33.5° and 31.0° at radius 64. This is a useful failure case: a local gradient axis can follow mixed structure rather than either source object when specimens overlap.

**Limits.** Only two objects, one background and four constructions were used. The points depend on source masks unavailable in a real automatic pipeline. Source masks are themselves provisional; their PCA direction is a geometric proxy, not an expert measurement. Opaque blending hides part of the first object, and multiplying intensity ratios is not a validated brightfield optical simulation. A larger radius captures more surrounding structure. Results do not estimate orientation accuracy on real diatoms and do not establish that a single axis suffices for curved, centric, broken or nearly round valves.

**Decision.** Do not use this single gradient direction as an unqualified automatic orientation under overlap. Worth testing multiple plausible directions, confidence/anisotropy gating, or an analyst-drawn short axis against expert-verified real crossing groups. Compare the extra orientation cue with the same point alone and report whether it recovers distinct instances or merely reinforces an incorrect guess. Avoid choosing the true axis after seeing a label.

Reproduce with `/tmp/diatom-research-venv/bin/python research/l15_axis_probe.py`; requires the existing L4 blended images, source masks, and `prompt-instances.json`.

## Real-image rectangle-axis audit · 2026-12-01

The 61 public UDE cutouts recovered from an incomplete local archive prefix have annotations, but these are **57 rotated rectangles and four circles, not traced valve masks**. For each rectangle with a long-to-short side ratio ≥ 1.4 (54 eligible), use the human annotation's long edge as an approximate orientation reference. Estimate a local gradient axis at the annotated rectangle center, with radii 32 and 64 native cutout pixels, using the same tensor rule as above. [Inspect the 54 comparisons](/results/l15/ude-axes.html); [download errors and annotation geometry](/results/l15/ude-axis-audit.json). The human rectangle supplies the point and a direction reference; it does not establish the exact biological long axis or segmentation boundary.

Both windows have a median angular difference of 6.1° from the rectangle's long edge. The differences are at most 15° for 36/54 with radius 32 and 40/54 with radius 64. This is a descriptive summary of a nonrandom archive prefix from **one** source-slide identifier; the 54 observations are not independent biological samples. The center is supplied using the annotation, so this does not test automatic localization. Crop dimensions, field of view and object sizes vary substantially, the radius is in pixels rather than micrometres, and source annotations may include nearby material. No reviewed crossing labels are available, so this does not quantify overlap performance. Near-round rectangles and circles were excluded because a single long axis is poorly defined.

This real-image diagnostic supports keeping an orientation cue as a candidate for expert-reviewed thin valves, while the L4 synthetic crossing failures show that it cannot be trusted blindly in crowded images. Compare multiple axis hypotheses and confidence gating against independent expert-drawn axes and separate overlap/partial strata; examine uncertainty rather than treating a low disagreement on isolated selected cutouts as proof of reliable separation. Reproduce with `/tmp/diatom-research-venv/bin/python research/l15_ude_axes.py` using the R14 prefix cutouts and `/tmp/ude-metadata.csv`.
