# NIDVUE laser calibration datasets — 2.3.0

Original synthetic laser acquisitions at **1920 × 1080 pixels**: two ChArUco
calibration sets of 50 representative images each, and five object scenes acquired separately
for each calibration method with 192 validation images per scene. The release
contains **2,020 distinct acquisition JPEGs**. Images are rendered at native Full
HD resolution; they are not enlargements of the earlier release. No photographs
or notebook output from the legacy laser-calibration source are distributed.

## Calibration references

The moving-board calibration was reframed in 2.0.1 so its entire rigid backing
stays at least 64 pixels inside the image. The camera, intrinsics, board size
and laser plane are unchanged; the target is physically moved farther from
the camera when needed. The box and rail sequences remain version 2.0.0; references are version 2.1.0, water bottles are version 2.1.2, the rough-fleece plush toy is version 2.2.1, and the fractured bridge is version 2.3.0. Calibration
previews show the unmodified JPEG colours, without a detected-stripe overlay.

Both methods use a true 8 × 6 ChArUco board with 40 mm squares, 29 mm markers,
and OpenCV's `DICT_5X5_100` dictionary.

| Method | 50 reference exposures | Independent validation motion |
|---|---|---|
| Moving board · fixed laser | Board translates and rotates through the stationary laser plane | Rigid camera and laser head translate together on a known vertical stage; the object stays stationary |
| Fixed board · moving laser | Board clamped to a table; laser covers the board at random orientations | Horizontal sweep commands evaluated by the fitted two-axis encoder map |

The minimum stripe span over all reference images is 85.7% of projected board
width for the moving board and 73.4% for the fixed board. All 35 internal
ChArUco corners are detected in every reference image of both methods. These
figures describe this generated acquisition, not a guarantee of physical accuracy.

Each set selects 50 exposures from 100 candidates. Selection retains every
feature extremum, then uses farthest-point sampling in normalized feature space.
For the fixed board, features are the two encoder positions. For the moving
board, features are board-normal components, projected position and scale.
This preserves broad pose and command coverage instead of retaining every other
frame. Internal acquisition metadata records the selected candidate indices.

## Validation objects

Calibration and validation contain different objects and have independent
manifests and ZIP downloads. Each of these five scenes has a 192-frame acquisition
for each of the two calibrated rigs:

| Application | Object represented by both the images and reconstructed cloud |
|---|---|
| Soft-toy shape inspection | Original teddy bear with uneven cloth, dense curled fleece, sewn patches and embroidered face |
| Robot bin picking | Three cartons with tape in a component tote |
| Bridge-surface inspection | Bright concrete patch with an irregular broken-out section, dark fractured floor and exposed aggregate |
| Rail inspection | Rail foot, web, crowned head, wear groove and fasteners |
| Transparent packaging | Three glass bottles with water, air space, closures and softly scattered blue laser light |

The plush toy replaces the production-line component. Its original geometry
includes uneven closed cloth surfaces and dense, curled fleece fibres, plus sewn patches and
embroidered features. The same geometry is used for the photographed appearance
and independent front-depth evaluation. Both rigs provide 192 Full HD exposures
and JPEG-only downloads. Fibre-scale light transport and deformation remain
approximate.

The bridge has a genuine geometric recess with irregular edges, a rough floor
and small exposed aggregate meshes. The backing slab is cut away beneath the
scanned patch, so it cannot visually fill the damaged area. The same geometry
supplies acquisition depth and independent evaluation. The dark interior has
low specular response and a source-image laser amplitude of approximately
25–39% of the intact deck response. Actual sampled blue-excess stripe peaks
are 54–71% of adjacent intact-concrete peaks (the near-normal beam brightens
the cavity floor more than the already-bright deck). Default thresholding can miss
these weak returns; the browser retains those gaps. This is approximate
synthetic material response, not a measured concrete BRDF.

Bottle geometry includes refractive glass and water in the Cycles appearance
render. A blue glow follows the laser sheet through the actual liquid meshes,
with softer scattered light above and below the visible stripe. A diffuse lobe
uses the emitter-to-surface direction and local bottle-surface tangents to
weight both sides: a head-on strike is balanced, while a grazing strike favours
the direction of travel. Curvature and the moving laser origin change that
balance during the scan. Ray intersections with the liquid volume
keep the glow inside the water and leave the neck air space clear. Each image
integrates its current laser position independently: the water brightens near
the beam and returns to ambient brightness when it moves away.

The browser extracts the stripe from these combined glowing pixels. It receives
neither a clean replacement image nor a supplied stripe mask. Scattering can
bias the detected line and produce a less accurate point cloud; no point noise
or error penalty is added. Reconstruction estimates the outer front surface,
not the liquid interior. Evaluation depth is unchanged and comes from a separate
opaque pass over the same geometry, loaded only after reconstruction.

This is an approximate volume and diffuse scattering model with straight
camera rays, depth attenuation and finite laser-sheet widths. It does not trace
refracted laser paths or claim calibrated liquid optical properties.

The camera and laser head are one rigid mount with a fixed baseline, so they
translate together during each moving-board validation sequence; the object
stays fixed. The laser sheet therefore keeps the same pose in camera coordinates
while the stage moves it across the object, and each frame records the rig
displacement so every camera-frame point returns to the stationary object frame.
The horizontal sheet sweeps from top to bottom across the front-visible geometry;
its observed stripe bends across depth changes. There are **eight times as many
scan lines** as in the previous 24-frame release. End positions cover the central
98% of the rendered object's scan-coordinate range. This avoids mostly empty
edge exposures; it does not imply complete surface coverage.

All scenes use the same pinhole camera and physical unit scale (100 mm per
model unit). The triangulation head is **symmetric about the scanned surface
normal**: the camera sits 17.6° from the floor normal and the laser beam 17.6°
on the other side, so the laser strikes the surface near-orthogonally (a bright,
sharp line) with a **35° triangulation angle** and a **248 mm baseline**. They
are controlled local inspection patches illustrating the applications, not
simulations of a complete factory, robot trajectory or drone flight. The
interface automatically loads the acquisition for the calibrated rig.

## Wizard and files

1. In **Calibrate laser**, select the ChArUco board images, optionally adjust the three controls, and
   run calibration. Inspect residual, board reprojection error, stripe span,
   detected corners and recovered plane parameters.
2. Continue to **Scan**, select an object, and process its independent
   images using the completed fit. Choosing another object preserves calibration.
3. In **View 3D**, inspect the dense point cloud, compare the actual Full HD scan exposures,
   and export PLY points or a JSON report.

Changing calibration inputs invalidates both the fit and any later result.
Future steps remain disabled until their prerequisites complete. Each processing
frame is decoded and displayed. Both steps start with no added observation delay.
The preview resets to the first image and progress starts at 0 / 50 for calibration
or 0 / 192 for validation. Slower observation modes remain optional. Fullscreen
includes the image, progress and controls, preserving the entire sensor frame.
Both 2D previews support zoom, drag-to-pan, 90-degree rotation, pinch zoom,
keyboard navigation and reset. At 100% the image fits completely, including
after rotation. View changes persist through scan frames and do not alter any
acquisition pixels, calibration coordinates or reconstructed points. A live
browser-calculation notice stays beside each scan's progress, even in fullscreen.
Calibration completion exits fullscreen, focuses the metrics and briefly
highlights the Continue action. Reduced-motion users get the static cue.

Dataset choices sit above previews that fill the content column. Calibration
reports export as matching Markdown and editable PowerPoint presentations from
the completed run. JSON remains available inside the fitted-parameter details.

File layout:

- `hd/calibration/<calibration-id>/`: 50 reference JPEGs, manifest, preview and calibration-only ZIP.
- `hd/validation/<calibration-id>/<scene>/`: 192 object JPEGs, one evaluation depth per frame, manifest, preview and validation-only ZIP.

Downloads contain JPEG images only, at native 1920 × 1080, quality 96 and
4:4:4 chroma sampling. Calibration archives contain 50 JPEGs; validation archives
contain 192. The page displays each archive size. The served frames and the
archive entries are the same quality-96 4:4:4 JPEGs; the renderer keeps only
transient PNG buffers. The preview reuses the worker's current image Blob.
Internal manifests supply acquisition positions and image hashes to the worker;
the interface does not expose a manifest download link.

## Image generation and provenance

Blender 5 Cycles produces original geometry, materials, lighting, shadows and
native-resolution camera images. An original ImageGen atlas provides aluminium,
cardboard, concrete and steel appearance only; it supplies no geometry or
calibration observations. The preserved atlas and prompt accompany the source.

The ChArUco stock uses a separate original ImageGen matte-paper texture under
an exact generated marker pattern. Calibration ambient exposure is dimmer than
the object scenes, making the blue laser easy to inspect. Its finite width varies
smoothly with position, with correlated speckle, soft scatter and sensor noise.
Peak headroom is preserved. Idle and processing previews show identical source
pixels. These effects approximate radiometry and do not model full coherent
light transport.

The laser response is evaluated on the first visible object surface. The sheet
is a **finite wide fan** (60° half-angle, at full intensity out to 35° with a
smooth roll-off to its edge, matching a wide-angle line-generator module), so
the line covers the whole working field instead of a narrow pencil. Every
stripe pixel is attenuated by the surface incidence cosine and widened at grazing
angles (a projected sheet spreads as 1/cos), and is removed where the beamer is
occluded, tested by marching a shadow ray from the surface back to the emitter
against the rendered depth. Surface speckle and sensor noise are added, and the
peak is saturated against the surface radiance so the line clips where it is
brightest. Standard object scans retain this Gaussian core; bottle scans add
surface scatter and a liquid-volume glow integrated at 24 depths along each
camera ray. The approximate sheet and diffuse widths are 1.6 mm and 4.3 mm.
The response is generated separately for all 192 positions, and the moving-board
base render, depth and acquisition are re-rendered at every stage position.
Calibration candidates use 32-sample Cycles
renders; the bottle scene uses 64 samples; rough plush and bridge scenes use 96; box and rail renders use 24.

Camera intrinsics: fx = fy = 1665 px, cx = 960 px, cy = 540 px. Pixel centers
are (u + 0.5, v + 0.5), with zero lens distortion. Coordinates are X right,
Y down and Z forward. PLY coordinates and evaluation errors are in millimetres.
Manifests record SHA-256 image hashes, board observations and acquisition positions.

## What the browser estimates

The browser detects ChArUco markers and corners from every decoded image using
vendored OpenCV.js 4.13.0. The user chooses marker-corner refinement off or subpixel.
The worker then solves each board pose from the detected corners and computes
reprojection metrics live. Precomputed image-derived observations remain in the
internal dataset metadata for independent audits, not as the reconstruction pose.

Stripe extraction uses blue colour excess, `B − max(R,G)`, with the visible
threshold control. The default estimator is the Hessian ridge: a sigma-2
Gaussian smooth, the chained Sobel derivatives of `Sub-pixel Laser Line
Detection.ipynb`, the smaller Hessian eigenvalue/eigenvector and Steger's
taylor step give each column's sub-pixel line centre. Quadratic, centroid and
brightest-pixel modes remain selectable. Other parameters use dataset defaults:
full ROI, 98th-percentile threshold, unit board scale, 0.5 mm robust tolerance
and known emitter baseline.

**Moving board:** laser stripe rays intersect each detected board plane. Their
3D points jointly constrain one fixed laser plane, `Y + nx X + nz Z = d`. During
validation the fitted plane travels with the rigid camera and laser head, and the
recorded rig displacement maps every camera-frame point back to the stationary
object frame. The displacement is known acquisition metadata, not estimated from
images.

**Fixed board:** one stripe on one fixed plane does not uniquely identify the
laser plane. This acquisition supplies a known emitter position, initially
(0, −202, 144) mm. Each recovered laser plane is constrained to pass through that
emitter and the observed stripe on the board. The 50 fitted planes then train
a robust affine map from recorded two-axis encoder readings to normal components
nx and nz. Validation evaluates that fitted map for its horizontal sweep commands;
commands outside the calibrated per-axis bounds are rejected. This model assumes
an affine encoder response and a known emitter, rather than recovering an unknown
emitter from one board. Renderer coefficients are not passed to the browser fit.

Extraction, 3D reference intersections and plane fitting execute in the local
AssemblyScript/WASM kernel and browser worker; the small encoder regression runs
in JavaScript. Validation triangulates the stripe rays with the fitted planes.
**Evaluation depth is fetched only after all reconstructed points exist.** It
never supplies the displayed point positions or fills missing object surfaces.
No image is uploaded.

## Metrics and display

- **Reconstructed points:** accepted camera-ray/laser-plane intersections within the working volume.
- **3D RMSE:** Euclidean distance to the independently rendered surface at the detected pixel. Samples near unstable depth discontinuities remain visible but are excluded from scoring.
- **Scored scan coverage:** scored samples divided by the number of image columns
  whose laser plane actually crosses the rendered surface inside the working
  volume, whether or not a detectable stripe exists there. Occluded,
  under-threshold and multi-surface crossings count as expected, so the metric
  cannot hide physically missing points. This is per-column scan coverage, not
  whole-object completeness.
- **Reference fit residual:** orthogonal point-to-plane RMS. Fixed-board results aggregate the 50 command-specific residuals.
- **Board reprojection RMSE:** root mean square of the per-frame image-derived pose reprojection errors.
- **Minimum laser span / corners:** the smallest projected horizontal stripe coverage and detected corner count across the 50 references.
- **Encoder normal RMSE:** discrepancy between recovered plane-normal coefficients and the fitted encoder map; available in the fixed-board parameters/report.

The default viewer displays only recovered samples, with point size, depth/image/
error colouring, orbit, pan, zoom, view presets and fullscreen. Lighting normals
are derived from neighbouring recovered samples. Its reference grid is decorative
and is not exported. The optional surface mode interpolates adjacent ordered scan
lines with a maximum edge length; it is not a watertight or hidden-surface model.
The comparison panel shows the exact validation JPEGs used for reconstruction.

PLY exports contain point coordinates, sampled image RGB and evaluation error
(`−1` for unscored points). JSON reports preserve version, inputs, calibration,
counts, errors and elapsed time. Observation delay contributes to elapsed time.

## Limitations and source relationship

These are **synthetic-model evaluations, not measured physical scanner accuracy**.
The renderer does not model calibrated sensor response, full coherent laser
transport, measurement multipath, motion blur, lens distortion or uncertain
robot/drone motion. Speckle and scattering are approximations. Bottle refraction
affects appearance but is not recovered by the solver. Only front-visible laser-intersected surfaces are recovered.
A low reference residual cannot validate an assumed emitter, board scale or
stage encoder. Physical use requires independent camera calibration, reference
measurement and real validation.

The legacy sources informed RGB/blue-channel separation, quantile thresholding,
ROI selection and subpixel laser localization. This lab adds explicit laser-plane
fitting and ray–plane reconstruction. It ports the notebook Hessian pipeline —
the sigma-2 Gaussian smooth, the `sobel(fs,1)`/`sobel(fs,0)` derivatives,
eigenvalues `fpp`/`fqq`, eigenvectors `ep`/`eq` and the `bright_lines` ridge
response — as the default stripe estimator, and refines each column with
Steger's Taylor step. Python FactorAnalysis is not ported.

Rebuild with `tools/laser/render-hd.py`; verify with `verify-hd.py`,
`verify-depth.py`, the WASM tests and browser acceptance scripts. The original
atlas is a preserved input, so rebuilding does not require a new AI generation.
Seeded laser/noise synthesis is deterministic; Cycles renders can vary with
hardware and Blender versions. Shipped image hashes identify this release.
