| Feature ID | Type | Deviation | Tolerance | Result |
|---|
Click two points on the image to measure a feature. Repeat at 3–8 positions spread across the image — same feature, different locations.
Click the 4 corners of a known rectangle on your image in order: top-left → top-right → bottom-right → bottom-left.
Save and recall calibration settings per objective or magnification level.
Loupe supports multiple instrument modes — Microscope, Deflectometry, and Fringe Analysis. Choose a project type on the home screen to start one; each open project appears as a tab in the top bar. Microscope is the most common mode and provides precision measurement tools for camera or imported images.
Loupe is a multi-instrument platform. Each mode provides a dedicated workspace tailored to a different measurement technique.
Each instrument opens as a project tab from the home screen, not from a mode dropdown. Local installations support all three project types below. The hosted instance supports Microscope and Fringe Analysis; Deflectometry requires a local camera/display setup.
| Mode | Purpose |
|---|---|
| Microscope | Precision 2D measurement of camera or imported images — calibration, annotation, DXF overlay, guided inspection. |
| Deflectometry | Phase-shifting deflectometry for measuring surface form of specular (reflective) parts using an iPad as a structured-light display. |
| Fringe Analysis | Interferometric fringe analysis for quantitative surface flatness measurement using an optical flat and monochromatic light. |
Each open project has its own saved workspace and latest result. Toolbar contents, sidebar panels, and keyboard shortcuts are scoped to the active tab's mode. Microscopy allows any number of tabs open at once; Deflectometry and Fringe Analysis each allow only one open tab at a time — opening a second one of either prompts you to close the first. Export temporary captures and running averages before leaving an instrument workspace.
The home screen manages your saved projects; each one you open becomes a tab in the top bar.
Click a project-type card — Microscopy, Deflectometry, or Fringe analysis — to create and open a new project immediately. There's no naming dialog; it gets an auto-generated name (timestamped) that you can rename later. The Recents grid below shows your existing projects as thumbnail cards with name and last-modified date — click one to open it as a tab.
Each recent card has a ⋯ menu with three actions: Rename, Export .loupe, and Delete….
Microscopy workspaces and the latest instrument result, settings, masks and measurements auto-save to the browser roughly every 2 seconds after a change, and again whenever you switch or close a tab. Open tabs are restored automatically the next time you load Loupe. Server capture history, running averages and live hardware jobs are temporary; export captures or runs separately to retain them.
Projects save in your browser; hosted processing sends images to the server temporarily. Export a portable file to move or back up a project.
Projects are stored locally in your browser's IndexedDB. The server never stores or lists your projects — uploaded images and analysis results are kept temporarily in server memory, separately from your locally saved projects.
File ▾ → Export project (.loupe) downloads a single file containing the image, all measurements, calibration, and view state. Re-import it by dragging the file anywhere onto the app, or dropping it on the import zone on the home screen. Images can also be pasted directly (Ctrl/⌘V) — into the workspace, or onto the home screen to start a new project.
For instrument projects, the file preserves the latest result and saved settings, masks, and measurements, plus the imported fringe image when available. It does not include server capture history, running averages, live hardware jobs, or undo history. A retained original lens image is included when available so you can change or reset lens correction later. Export named calibration profile lists separately from their own panels.
Old session JSON (the pre-project v3 format) still imports. Note that v3 sessions never stored the image, so their measurements and calibration come back attached to a blank canvas.
On the hosted instance, server-side features — auto-detection, DXF alignment, guided inspection, gear analysis — send the frozen image to the server for processing. Opening an image or running fringe analysis also uploads image data. A one-time notice appears before the first upload; the frame is kept only for your session and expires automatically.
Live server data is private to your browser session and project. Sharing a project file does not grant access to that live data. Server restarts or session expiry can clear temporary frames and captures; your browser's saved projects remain separate.
Phase-shifting deflectometry for measuring the surface form of specular (mirror-like, reflective) parts.
An iPad displays sinusoidal fringe patterns. The camera observes their reflection off the part surface. Distortions in the reflected fringes encode the surface slope, which is integrated (Frankot-Chellappa) to recover surface height. Eight phase-shifted captures per direction suppress LCD harmonic artifacts.
The iPad runs a companion page (deflectometry-screen.html) that connects to Loupe via WebSocket. Open the URL shown in the status badge on the iPad's browser. Connection is automatic — the badge turns green when linked.
The workspace has two columns. The left column shows the live camera preview, status badges, setup buttons, calibration, and settings. The right column has an action bar with processing controls and tabbed results below.
Prepare the system before measuring a part. Both steps are in the left column under Setup.
Captures frames with the display off to measure ambient light and sensor noise. This is subtracted from all subsequent captures. Re-run if lighting conditions change.
Place a flat reference mirror in the field of view, then click Baseline. Captures 8-step phase-shifted fringes in both X and Y directions. This establishes the reference surface that part measurements are compared against.
Converts the computed phase map from arbitrary phase units to physical surface height (micrometres).
Loupe fits a paraboloid to the measured phase and derives a phase-to-height scale factor from the known sphere geometry. After calibration, all results are reported in micrometres.
The sphere must be specular — chrome steel or ceramic balls work well. Use DIN 5401 grade G28 or better (G28 = 0.7 µm form tolerance). The sphere should fill a reasonable portion of the field of view for a good fit.
Configuration options in the left column under Settings.
| Setting | Description |
|---|---|
| Display device | Preset selector for the iPad model being used. Sets the pixel pitch (mm/pixel) so fringe frequency is calculated correctly for the physical display size. |
| Fringe frequency | Number of fringe periods across the display. Higher frequency gives more sensitivity but may alias on coarse surfaces. |
| Gamma | Pre-correction exponent (default 2.2) that compensates for nonlinear LCD response, so the sinusoidal pattern is truly sinusoidal as seen by the camera. Corrected value = 255 × (v/255)1/γ. |
The action bar at the top of the right column.
| Button | Description |
|---|---|
| Capture Part | Captures 8-step phase-shifted fringes of the part under test (both X and Y directions, 16 frames total). |
| Compute | Calculates wrapped phase, unwraps, subtracts the baseline, applies smoothing, and produces the surface deviation map. Also reloads the 3D view if it was open. |
| Reset | Clears all captured data and results. |
| Control | Description |
|---|---|
| Mask threshold | Slider — reject pixels with low fringe modulation (faint reflections or absent part). Adjusting this and recomputing updates the results. |
| Smoothing | Slider — Gaussian sigma applied to the unwrapped phase map. Reduces noise at the cost of spatial resolution. |
| Auto | Analyses the captured frame's frequency spectrum and selects a smoothing value that suppresses high-frequency noise while preserving surface features. |
Three tabs in the right column, below the action bar.
Shows wrapped and unwrapped phase maps for both X and Y fringe directions. The wrapped phase contains 2π jumps; the unwrapped phase is continuous and proportional to surface slope. Updates when you recompute.
Interactive Three.js viewer showing the reconstructed surface height as a 3D mesh. Use the Z exaggeration slider to amplify small deviations for visibility. Drag to rotate, scroll to zoom. Reloads automatically when you recompute.
Troubleshooting view with fringe modulation map, histogram of modulation values, and coverage statistics (percentage of pixels above the mask threshold). Low coverage or uneven modulation usually indicates stray light, poor surface reflectivity, or an out-of-focus image.
Monochromatic interferometric fringe analysis for quantitative surface flatness measurement.
When a flat optical reference (an optical flat) is placed on a lapped surface and illuminated with monochromatic light, interference fringes form. Each fringe is a contour of constant air gap, spaced at half the wavelength of light (~295 nm for sodium). Loupe converts the recovered phase into an air-gap-departure map. A single intensity image does not reveal absolute high/low sign by itself; orient it from a known wedge or contact direction and use Invert if needed. Once oriented, the specimen contribution has the opposite sign.
Loupe analyzes a single interferogram using spatial-carrier Fourier phase extraction. It detects the carrier peak in the 2D FFT, demodulates the sideband, unwraps the recovered phase, and converts it to air-gap departure. The default Flatness · Plane model removes height offset and tilt while preserving curvature and other flatness errors. Advanced Zernike and polynomial removal can instead show residual shape. Any figure error in the optical flat remains included unless it is measured and subtracted as a reference.
Fringe mode is strongest on smooth, continuous surfaces: optical flats, lapped faces, gentle wear patterns, curvature, and low-order form. Small region-to-region comparisons also work well when the step is comfortably below the single-wavelength ambiguity limit.
Single-shot single-wavelength analysis cannot uniquely determine large discontinuous steps. If a step exceeds about λ/4, the displayed value may be aliased by integer multiples of λ/2. Loupe warns about this in the Step tool, but the underlying physics limit is still real.
The nanometer conversion assumes an air film viewed near normal incidence. A deliberately oblique setup or a non-air gap needs the corresponding angle or refractive-index correction.
A monochromatic light source (sodium lamp, HeNe laser, or narrow-band LED), an optical flat, the part to be measured, and a camera to photograph the fringes. No iPad or multi-frame capture is required, unlike deflectometry.
Plain-language explanations of the fringe-analysis terms you will see in the UI.
| Term | Plain-language meaning |
|---|---|
| Optical flat | A very flat reference surface placed on or near the part so the tiny air gap between them produces interference fringes. |
| Air gap | The tiny spacing between the optical flat and the part. The displayed height values are departures of this gap. After the sign is oriented, the specimen contribution is opposite; optical-flat error remains included. |
| Wavelength (λ) | The color of the monochromatic light, measured in nanometers. It sets the height scale. Shorter wavelengths make the same phase change correspond to a smaller physical height. |
| λ/2 | Half a wavelength. In reflection interferometry, moving from one fringe to the next usually corresponds to about this much air-gap change. |
| λ/4 | A quarter wavelength. This matters because a single image cannot uniquely resolve every larger step. For sodium light, λ/4 is about 147 nm. Once a discontinuous step gets larger than that, a single-shot reading can be ambiguous by multiples of λ/2. |
| Carrier | The overall fringe spacing and direction. The software finds this dominant pattern in the FFT and uses it to separate the useful signal from the background. |
| FFT | Fast Fourier Transform. Think of it as a view of the image in terms of repeating patterns instead of pixels. In fringe mode it is used to find the fringe direction and spacing. |
| Demodulation | The step where the software isolates the fringe pattern it cares about and removes the large carrier ripple so the underlying phase can be measured. |
| Wrapped phase | The raw phase result before jumps are resolved. It repeats every 2π, so it looks like bands that suddenly jump back around. |
| Unwrap / unwrapped phase | The process of stitching those 2π jumps into one continuous surface. This is what turns repeating phase bands into a usable shape map. |
| 2π jump correction | An extra cleanup step that can fix isolated unwrap mistakes on smooth surfaces. For step measurements it can also hide real discontinuities, so it is often better to disable it there. |
| Modulation | How strong or visible the fringes are at each pixel. High modulation usually means a more trustworthy phase measurement; low modulation means weak or noisy fringes. |
| Trusted pixels / trusted area | Pixels that pass both the modulation checks and the unwrap-risk checks. Measurements restricted to trusted pixels are less likely to be polluted by weak data. |
| PV | Peak-to-valley. The full range of the displayed air-gap departure: highest value minus lowest value. |
| RMS | Root mean square. A summary of how much the displayed air-gap departure varies overall, not just its two extremes. |
| Form removal | Subtracting broad shape like tilt or curvature so smaller features are easier to inspect. This changes the displayed map and its PV/RMS, so it should always be interpreted consciously. |
| Zernike | A standard set of smooth shape terms used in optics. They are handy for describing tilt, curvature, astigmatism, coma, and related low-order form. |
| Aliasing | When different physical surfaces can produce the same single-image phase result. In step measurements this is why a large step can masquerade as a smaller one shifted by multiples of λ/2. |
Prepare the system before analyzing an interferogram.
Select the wavelength that matches your actual light source. The active calibration record owns this value, and the wavelength dropdown acts as a quick editor for that record. The wavelength determines the physical height conversion: height = phase × λ / (4π).
In Analysis settings…, the Reject weak fringes slider controls how aggressively low-modulation pixels are excluded. Increase it when the background, rim, or weakly lit regions are contaminating the result. Decrease it when valid fringe areas are being cut away. The diagnostics tab shows the modulation and trusted-area consequences of this choice.
Open Analysis settings… → Advanced tuning for the DFT controls. LPF σ changes how strongly the demodulated phase is smoothed. DC margin widens or narrows the rejection zone around the FFT center. Correct 2π jumps enables a post-unwrap cleanup that is useful for ordinary smooth surfaces but should usually be disabled for step measurements.
The focus bar is a practical setup score, not a pure fringe-only metric. It rewards fringe contrast when fringes are present and edge sharpness for ordinary setup images. Use it to dial in focus and lighting before capturing.
Keep wavelength, scaling, and aperture geometry repeatable across analyses.
Fringe mode keeps named calibration records in the browser. A calibration stores the nominal wavelength, spatial scale (mm/pixel when known), lens distortion term, capture date, and notes. The active calibration is shown in the summary bar and is sent with each analysis so session captures carry their calibration snapshot.
Use the change… link in the summary bar to switch, create, rename, or delete calibrations. Use Export… and Import… to move calibration sets between machines or browsers.
Click Calibrate beside the Lens dropdown. The fringe calibration dialog accepts a dropped image or Open calibration image…; a connected local camera also offers Capture camera. Use an uncorrected photo of a flat grid or repeated equal-sized features, with the same lens, zoom and framing as the interferogram. Keep the target parallel to the camera. Click two endpoints per measurement at 3–8 positions spanning the centre and edges. Zoom and scroll for precision; use Undo, Remove, or Clear measurements to correct point placement. Loading another calibration image clears its measurements.
Use calibration updates the fringe lens setting and opens the interferogram's analysis settings when an image is loaded. Analyze again to use the correction, and name and save the lens profile for reuse. The calibration target stays separate from your interferogram and microscopy projects. Cancel or Escape leaves the lens setting unchanged. The before/after spread measures agreement among your samples, not independent calibration accuracy.
A recipe saves the area to measure for repeated work. Draw your regions in Analysis settings…, then choose Saved analysis area → Save regions as recipe… and give them a name. Use the dropdown to reuse a recipe, Manage to organize it, or Export / Import to transfer its JSON file.
A selected recipe supplies the regions until you draw your own. Drawing on a recipe makes a working copy; it does not overwrite the saved recipe. Recipe coordinates scale with the image, so check the preview whenever framing, part position, or resolution changes. Loading another image clears hand-drawn regions but keeps the selected recipe. Use automatic area or Reset analysis deselects it without deleting saved recipes.
Choose an interferogram, review the setup, then start analysis.
The log follows area selection, carrier detection, phase unwrapping, height conversion, and rendering. Stages take different amounts of time. Cancel analysis stops waiting for the result. If analysis fails, the dialog keeps the error and log visible so you can adjust the settings and try again. Analysis settings… reopens setup for the current image.
Loading another image clears the old result and opens setup. Check the source name and Image loaded — not analyzed yet status; loading alone does not run analysis. After processing, the status shows completion and its time. Camera capture and file import use the same setup workflow.
Reset analysis clears the current image, result, regions, selected recipe, measurements, and running average. Your settings, calibration, saved recipes, and session history remain available. Choose an image to begin again.
The analysis mask selects which pixels belong to the surface. It does not edit the image.
With no regions or selected recipe, Loupe detects the surface and rejects weak fringes. Use Use automatic area in setup to return to this behavior.
Multiple blue regions are combined; red regions remove pixels from that area. If you draw only red exclusions, the starting area is the whole image except those exclusions. Include the surface explicitly when you also need to remove the surrounding background.
After creation, the new region is selected. In Select / edit, click a region or choose it in Selected region. Drag inside it to move it, or drag a white corner handle to resize it. Three-point circles stay round. Use arrow keys on the preview for one-pixel nudges (Shift for ten pixels), or edit Region coordinates and click Apply coordinates. Change Purpose to switch the selected region between include and exclude; Delete region removes it.
Regions say where to analyze. Reject weak fringes controls which pixels have enough fringe contrast to use. An included region does not make glare or missing fringes measurable. Inspect modulation and trusted area in Diagnostics after analysis.
The mode selector above the summary bar changes the tools and guidance shown in the results workspace.
| Mode | Use it for |
|---|---|
| Surface | General surface-form work: map inspection, cursor readout, profiles, area stats, and 3D view. |
| Small-step (< λ/4) | Region-to-region comparisons on smooth plateaus or genuinely small steps. The Step tool is emphasized and its aliasing warning matters here. |
| Averaging | Build a stable result from several captures of the same setup. The Session tab becomes the main workspace. |
| Subtraction | Compare one captured result against another reference result in the current session. |
Session tools for repeatability, reference-relative work, and capture provenance.
The left panel still supports quick “Add to Average” accumulation. Each accepted capture contributes to a running average, and the log lets you include or exclude captures manually.
For more deliberate work, open the Session tab, choose Select for average…, pick two or more captures, and run an average with optional sigma or MAD rejection. The averaged result becomes its own session capture with source links back to the inputs.
Use the Compare button in the Session tab to subtract a reference capture from a measurement capture. Loupe checks shape, wavelength, and calibration consistency, performs registration when enabled, and stores the resulting deviation map as a new session capture.
Subtraction and averaging warnings are not decoration. They flag low overlap, wavelength mismatch, suspicious registration confidence, and other conditions that can make a mathematically valid operation physically misleading.
Control which low-order shape is removed from the measured surface.
For flatness, remove only height offset and overall tilt. Bow, curvature, saddle shape and local defects are departures from flatness and must remain in the measurement. The default Flatness · Plane (tilt only) fits a least-squares plane over the analysis area and subtracts it. PV and RMS then describe the departure from that plane; they are not a minimum-zone flatness calculation. Minimum-zone flatness finds the smallest separation between two parallel planes enclosing the measured surface.
| Model | Best use |
|---|---|
| Plane — default | Flatness relative to a best-fit plane. Removes height offset and tilt; retains curvature and other errors. Suitable for round and non-round parts. |
| Zernike — advanced | Diagnose surface shape using a circular polynomial basis. Fitting the coefficients does not remove them. Subtract only Z1–Z3 (offset and tilt) to retain flatness errors; removing higher terms changes the result to a residual. |
| Poly2 | Advanced: removes quadratic shape, including curvature. Reports residual shape, not total flatness. |
| Poly3 | Advanced: removes quadratic and cubic shape. Reports residual shape, not total flatness. |
| Checkbox | Terms | What it removes |
|---|---|---|
| Tilt X/Y | Z2, Z3 | Overall tilt |
| Power | Z4 | Curvature / defocus (concavity or convexity) |
| Astigmatism | Z5, Z6 | Saddle-shaped error |
| Coma | Z7, Z8 | Comet-shaped aberration |
| Spherical | Z11 | Center-to-edge variation (bowl shape) |
Understanding the output of a fringe analysis.
Shows air-gap PV and RMS in waves and nanometers, plus PV in same-order fringe intervals (one fringe = λ/2 gap departure). Absolute sign requires a known wedge/contact direction; after orientation, the specimen contribution is opposite. Optical-flat figure error is included. The bar also shows the active workflow mode, calibration, recipe badge, and form-removal description.
False-color map of the displayed air-gap departure. Use the overlay buttons to switch between the gap map, confidence composite, and modulation image. The “use trusted pixels only” checkbox restricts measurements to pixels that are both well-modulated and unwrap-reliable.
Inspect excluded edges… shows the full analysis-frame interferogram, including drawn regions outside the cropped surface map. Teal outlines mark the measured interior, amber marks the conservatively excluded boundary, and blue marks selected areas rejected earlier by aperture, contrast or continuity checks. Turn coverage outlines off to see the original fringes unobstructed. This view contains no height measurements: PV/RMS still use only the measured interior. A visible edge roll-off may be genuine even when excluded. Coverage & smoothing reports the guard widths across and along the fringes in analysis pixels. The directional guard follows the detected fringe direction; it replaces the separate fixed rim trim. Full-frame fringes and drawn subregions wholly inside the illuminated area retain the established square guard. Trace the physical part edge: the outline records its extent, while illumination, contrast and continuity checks decide which pixels can be measured. Some weak rims or parts cut off by the image boundary can still lose more area. This precaution is not proof that every excluded pixel is invalid. Older saved results require a new analysis for this inspection view.
In Analysis settings, select This browser under Analyze using. The same numerical engine runs on your device in a background worker; the image is not uploaded for analysis. First use downloads scientific libraries, so an internet connection is required. Images are limited to 1024 pixels on the longest side, with resizing reported in the result. Cancellation stops the worker. Form changes, inversion, carrier selection, Session averages and subtraction also run locally. Session history is temporary and bounded to eight captures or 48 MiB across open projects; save a project to keep its current result. Capture JSON import and live-camera running averages are not supported in browser mode. Camera acquisition and lens calibration still use the existing workflows. Errors do not fall back to server analysis automatically. Choose Server explicitly to use the established engine or its larger image limit.
Interactive 3D surface visualization. After you confirm the physical surface direction, higher parts rise in 3D and lower parts fall; colors retain their meaning from the 2D map. Confirmation updates an already-open 3D view immediately. Until checked, the view shows recovered gap departure and warns that bumps and hollows may be reversed. Overall slope and selected form remain removed. Drag to rotate, scroll to zoom, right-drag to pan. The Z exaggeration slider amplifies the height for visibility.
Bar chart plus per-term table for the fitted Zernike coefficients. Subtracted terms are grayed out. The table also shows per-term RMS contribution and normalization weights for the current aperture.
Cross-sections through the center of the air-gap map: one horizontal, one vertical. Useful for identifying whether departures are primarily in one direction.
Previous analyses remain here after you open a new image. Every recorded analysis, average, subtraction, and import appears with origin tags, source links, export buttons, and details. Select a capture and click View surface map to preview it. Server history is temporary: up to 100 captures within memory limits, expiring after 30 minutes without new stored activity or a restart. Browser-analysis history stays in this tab: up to 8 captures / 48 MiB across projects, cleared on reload. Older captures are removed as needed. Project autosave preserves the latest result, not the whole capture history; export captures separately to keep them.
Plots PV and RMS across the current session. Use it to spot drift, compare calibrations, and visualize the effect of repeated polishing or lapping passes.
Tools in the Surface Map toolbar operate on the displayed height grid.
Scroll over the map to zoom toward the cursor. In Pan, drag to move around the enlarged map. Zooming out stops at the complete image; Fit view resets zoom and recenters it.
For a fuller visual surface, choose Composite quality and Plane, then enable Prepare reconstructed surface preview before analysis. The quality viewer opens with inferred areas permanently marked by white hatching. Toggle Reconstructed preview to compare. Measured coverage, PV/RMS, measurement CSV and capture combination exclude those inferred pixels; displayed coverage is reported separately. Hover a hatched area to see its estimated height. This preview can reveal broad edge roll, but may attenuate sharp roll or invent features, with local errors exceeding 100 nm in synthetic stress tests. It is not a calibrated uncertainty estimate. Carefully draw the part boundary and exclude holes, defects and background. The preview shares the fixed analysis-time plane and unverified air-gap sign; it is saved with the result.
Choose Composite quality in Analysis settings to stack original Hybrid measurements, strict local fits, broader coverage fits, checked fringe continuation, and photographic recovery from the same image. The quality viewer opens after analysis; reopen it with Composite quality… on the surface map. Its Include selector updates the visible area, full-resolution coverage, PV and RMS together. Blue indicates stronger fit agreement, amber expanded coverage, purple limited corroboration, and stripes disagreements that are excluded at every cutoff. These are qualitative image checks, not uncertainty intervals in nanometers; even strong agreement can share a wrong fringe order. Toggle the quality overlay to inspect heights, use the interferogram backdrop, and hover for each pixel’s source. Export measured data CSV preserves the cutoff and provenance at display resolution. This viewer is an analysis-time snapshot with one shared form removal and unverified air-gap direction; changing its cutoff does not refit a plane or change the main result, which includes all non-conflicting measurements. Later main-result inversion or form changes do not alter the snapshot. Missing regions remain unmeasured. An alternate unwrapping path checks for integer fringe-order disagreements; affected connected islands are excluded. If too little unambiguous area remains, analysis stops with an explanation. Checked continuation must pass withheld-edge and image-residual tests. The final photographic recovery layer checks agreement across raw and mildly filtered fits, different window shapes, original anchors and fringe order; its heights come from the raw image. Select + Limited corroboration to see these additions. Toggle Photographic recovery to compare coverage and statistics with fixed heights and form removal, or choose the Photographic additions overlay to highlight the new area.
Combine captures… registers two Composite quality captures from this session, both using Plane removal. Match three widely spaced physical landmarks in each interferogram (not fringe peaks); drag marks to adjust and scroll to zoom. Confirm the relative direction of the original analysis-time gap heights, before later inversion or contact confirmation. Registration permits rotation, translation and scale, rejects reflections and poor landmark fits, and aligns height offset and tilt only. A held-out overlap check must pass your disagreement limit (initially 20 nm); this is not an uncertainty bound. The combined view retains the better-supported measurement, stripes conflicting overlaps, and offers Capture support and Overlap difference overlays. Single-support regions have no measured repeatability and require at least Expanded coverage. Combined coverage and PV/RMS use display samples (up to 256 × 256), within the reference aperture. The combined snapshot is saved with the project, separately from the main result; source session history remains temporary.
Experimental hybrid analysis: Analysis settings → Analysis method offers Current method (the default) and Hybrid quadratic fit. Hybrid keeps local fits that pass image-based checks and falls back to the current estimator elsewhere. It may retain more edges, but sharp roll-off and scratches can still be wrong; more coverage does not prove more accuracy. It is slower and uses more memory. Both server and browser automatically resize Hybrid and Composite inputs to at most 1024 pixels on the longest side before lens correction and area selection. Results report resizing and adjust image-scale calibration. Side-by-side comparisons use the same resized image for both methods. To compare, enable Compare Current and Hybrid side by side in Analysis settings. Loupe runs both with the same image and settings, then opens linked Current, Hybrid and difference maps. Teal marks extra Hybrid coverage; differences are shown only on their shared area. Both surface maps share one color scale. Optional offset/tilt alignment uses the shared area and retains curvature. The comparison is saved with the project as a snapshot: later form or sign changes do not alter it. Export comparison CSV for grid values. You can reopen it with Compare Current / Hybrid… on the surface view. For separate runs, export the first report before rerunning. Browser captures can also be compared from Session during the same tab session. Method names appear on results, Session entries and exports. Changing form removal or inversion uses the existing measurement; change the method in Analysis settings and start a fresh analysis to recompute it.
More room for the image: the collapsed Analysis details row holds confidence diagnostics, form-removal controls, engine notes and warnings. Its summary shows the method, form and warning count. Surface-direction status stays visible above the view.
Color legend & photograph overlay: the bar below the surface map shows its exact displayed deviation scale in nanometres. Red is positive and blue negative in the displayed map; use the surface-direction check to establish which means physically higher. Select Overlay on interferogram and adjust Color opacity to locate features on the original, analysis-aligned photograph. The color layer uses the measurement grid; excluded pixels stay transparent. Confidence, modulation and coverage views hide this layer and the height legend.
Image scale & Distance: choose Set image scale, click two ends of a known length in the interferogram, enter millimetres, and save. Then select Distance and click two points on the surface map or photograph overlay. This measures lateral image distance, including unmeasured areas; it does not imply those areas have valid height data. Use a straight-on image and a reference in the part’s plane: perspective and lens distortion limit accuracy. Scale is saved with this result, survives form removal/inversion, and clears on a fresh analysis. It is independent of wavelength calibration and never changes flatness. Older results need a new analysis for the numeric legend and overlay.
Reference marks… opens the interferogram and surface map side by side. Click either image to add matching A/B/C labels; drag a mark to adjust it. Select a letter to delete it, undo edits, or clear all marks. The zoom slider enlarges both views and scrolling stays linked. Both images use the analysis crop and lens correction, so off-centre apertures stay aligned. Marks remain on the main map and are saved with the current result in your project; a fresh analysis starts without marks. Older results without an aligned source preview need a new analysis. A landmark becomes a contact record only when you select it in the surface-direction check; marks never set height zero.
In the marking dialog, Export report produces a printable interferogram/map comparison with the same letters and correct proportions. The report includes form removal, coverage, smoothing, orientation notes and coefficients. The report uses the full measurement aperture, even if the interactive trusted-only display is selected.
Check surface direction… guides concave / convex interpretation for a reference flat above the part. Add a mark at the known physical contact, select its letter, then choose where the gap opens in the image. An arrow starts at the contact. Loupe compares your direction with the recovered fringe orientation and suggests whether red means a lower or higher part deviation after slope/form removal. At a true contact the actual gap is zero, but the contact can have any color on this residual map. Colors do not show absolute separation from the glass flat. Confirm only after checking the contact and direction against the physical setup; the banner stays unverified until you do. With curvature retained, a lower centre relative to the rim is concave; a higher centre is convex. Use Plane, or Zernike with Curvature subtraction off. Mixed shapes need local interpretation. Entries do not establish absolute gap or change height zero. Editing the contact or direction requires another check. Invert reverses the recorded color meaning along with the map. Older saved results offer Analyze image again (or Open original image if the source is unavailable). Recovery keeps marks and observations only when the aligned image is unchanged, and requires confirmation again; averages and differences require independent sign evidence. You can record another physical verification method in the expandable section. Records persist with the result and appear in CSV/PDF reports; a fresh analysis starts unverified.
Measurement area shows included pixels in teal, excluded boundary pixels in amber, and pixels omitted by trusted-only in purple over the aligned interferogram. Coverage & smoothing explains the coverage denominator and the applied Gaussian widths in analysis pixels. Fine features can be attenuated; reducing the filter setting may have no effect once a minimum width is reached. The colored overlay follows the measurement grid; the full-aperture counts use the original analysis pixels.
| Tool | What it does |
|---|---|
| Cursor | Hover to read local height. |
| Δh | Click two points to read the height difference between them. |
| Profile | Click two points to sample a line profile and show a profile chart. |
| Area | Click two corners of a rectangle to compute PV and RMS within that region. |
| Step | Draw two rectangles and compare their mean heights. Intended for smooth plateaus and small steps. |
When use trusted pixels only is enabled, Area and Step measurements ignore pixels outside the trusted-mask grid. This helps avoid reading unreliable values from weak-fringe or risky unwrap regions.
The Step tool is only valid for small steps or smooth plateaus. If the reported step magnitude exceeds about λ/4, Loupe shows an aliasing warning because a single interferogram cannot distinguish that result from step ± n·λ/2.
Common issues and how to get the best results.
Inspect the carrier detection and modulation quality.
After analysis, a carrier summary row appears below the statistics bar showing the detected period, angle, and confidence. The row also exposes alternate peaks, manual-override state, and the tuning parameters the backend used for the analysis.
Shows the FFT magnitude on a log scale. A clean interferogram has two strong sidebands separated from the DC center. Click the desired sideband to override the carrier. Use Reset to Auto to go back to automatic selection.
False-color visualization of fringe contrast across the aperture. Green indicates high modulation (reliable phase extraction), red indicates low modulation (noisy or absent fringes). Masked pixels appear dark gray. Use this to verify that Reject weak fringes is set appropriately and to understand where surface map noise originates.
The unwrap risk map highlights corrected and edge-risk regions. The trusted-area percentage in the confidence row reports how much of the analysis mask is both well-modulated and unwrap-reliable.
Low peak ratio, small DC margin, weak modulation coverage, or low trusted area do not automatically invalidate a result, but they are a strong hint that you should distrust fine detail and verify the setup before spending time interpreting the map.
The camera panel is opened via the Camera ▾ button in the top bar.
The dropdown lists available cameras grouped by type:
| Group | Description |
|---|---|
| Scientific cameras | Aravis / GigE / USB3 Vision industrial cameras (e.g. Baumer) |
| Webcams | USB webcams detected by OpenCV |
| Browser cameras | Browser built-in camera API (getUserMedia) |
When no hardware cameras are found and no browser cam is active, a "Select camera..." placeholder is shown.
Select the sensor output format:
| Format | Description |
|---|---|
| BayerRG8 | 8-bit Bayer (colour, default) |
| BayerRG12 | 12-bit Bayer (higher dynamic range) |
| Mono8 | 8-bit monochrome |
Log-scale slider + numeric input (in µs). Range comes from the connected camera's capabilities.
Log-scale slider + numeric input (in dB). Range comes from the connected camera.
Live histogram of the current frame with signal statistics (min, max, mean).
Slider from 0.5 to 2.0. Hidden by default, shown when the camera supports it.
Runs a histogram-driven bisection loop to find optimal exposure.
One-shot automatic white balance.
Collapsible section with per-channel R / G / B gain sliders (0.5 – 2.5).
Collapsible section for cropping the camera sensor to a sub-region:
Shows current ROI dimensions or "Full frame".
Sets the pixel-to-millimetre scale for all subsequent measurements.
All measurements already placed update immediately. The calibration is saved with the session.
If a circle annotation is already placed, click it while in Calibrate mode and enter the known diameter — useful when you have a precision reference hole or pin.
Open Setup ▾ → Cal Profiles… to save the current calibration (px/mm scale, display unit, and lens distortion coefficient) under a name — e.g. one profile per objective or magnification. Type a name and click Save current. Click Load on a saved profile to apply it instantly, or the ✕ to delete it. The panel also has Export… / Import… buttons to move your whole profile list as a JSON file.
Corrects barrel or pincushion distortion from non-telecentric lenses — improves measurement accuracy near image edges.
Regular lenses project through a curved optical path. Points near the image edge appear shifted inward (barrel) or outward (pincushion) relative to their true position. A pixel calibration at the centre will under- or over-measure features near the edges. Telecentric lenses eliminate this by design; this tool compensates for it in software.
The model uses a dimensionless first-order radial coefficient k₁. With R equal to half the image diagonal and r the distance from the image centre, the sample-length approximation divides by (1 + k₁r²/R²). A golden-section search minimises the variance of these corrected sample lengths. The image remap samples the original at centre + (output − centre) × (1 + k₁r²/R²), using bilinear interpolation.
Corrects tilt and perspective distortion when the camera is not perfectly perpendicular to the part — common when photographing with a phone or handheld camera.
If you photograph a flat part at an angle (even a slight tilt), parallel edges appear to converge, circles become ellipses, and measurements are systematically skewed. Perspective correction remaps the image as if taken from directly above and sets its measurement scale from a known rectangle in the part's plane.
A full projective homography (DLT, 8 DOF) is computed from the four point correspondences. Each output pixel is backward-mapped to the source image using bilinear interpolation. The destination rectangle is scaled to match the perimeter of the source quad, so the output resolution stays close to the input. Its pixel width divided by the entered width in millimetres sets the new px/mm calibration.
A free-text annotation pinned to a point on the image.
Press Esc, or commit with the box left empty, to cancel — no annotation is created either way.
Straight-line distance between two points.
Shows distance in pixels, or in mm if calibrated. The label can be dragged to reposition it.
Included angle at a vertex point.
Displays the angle in degrees at the vertex. The arc indicator shows which angle is being measured.
Exact circumscribed circle through three points on the circumference, or a center+edge two-click circle.
Outputs: center coordinates, diameter, and radius. The three points define a unique circle using perpendicular bisector intersection.
Switch to Center+Edge using the sub-mode buttons that appear inline in the measuring-tools bar, next to the tool, when Circle is active. Click the center first, then click any point on the circumference. Useful when the center is known (e.g. a punch mark, a detected circle center, or a known coordinate).
Best-fit circle through three or more points — more robust than the 3-point circle for noisy edges.
Uses an algebraic (least-squares) fit minimising distance in the implicit circle space. The more points placed, the more stable the result — especially useful on partial arcs with surface texture or noise.
A chooser appears above the toolbar after confirming. Choose Arc segment to show just the fitted portion (label shows R radius), or Full circle to display the complete circle (label shows ⌀ diameter). The choice can be changed at any time via the right-click context menu.
Radius, chord length, and angular span of an arc defined by three points.
When the arc ends are easier to snap to than the midpoint, switch to Ends first using the sub-mode buttons that appear inline in the measuring-tools bar, next to the tool: click the two endpoints first, then click the midpoint. The arc is computed identically — only the click order differs.
Outputs: radius, chord distance (straight line from start to end), and arc span in degrees.
Enclosed area of a polygon defined by clicked points.
Area shown in px² or mm² if calibrated. Perimeter is also calculated. Uses the shoelace formula.
One click inside a closed loop of existing lines and arcs — turns it into an Area measurement.
Loupe traces the loop from your click, walking from segment to segment until it returns to the start, and creates an Area annotation from the traced boundary.
A smooth curve through a series of points — for capturing freeform profiles, blended fillets, and organic contours.
After placing, switch to Select (V) and click the spline to select it. Drag any orange anchor point to reshape the curve. The curve tangents are computed automatically using Catmull-Rom interpolation — the curve always passes smoothly through every anchor point without requiring manual handle adjustments.
Shows approximate arc length (mm if calibrated). Exports as a DXF SPLINE entity in reverse-engineering exports.
Best-fit line through points along an edge, reported as a peak-to-valley flatness zone.
Loupe fits a best-fit line through the points (orthogonal least-squares, not a simple vertical regression), then measures each point's perpendicular distance from that line. The reported value is the peak-to-valley span of those distances — a flatness zone width, shown with a ⏥ symbol in px or mm if calibrated. The fit line and its dashed zone boundaries are drawn on the image.
A free reference point, for marking a coordinate without measuring anything.
Places a small crosshair marker at that pixel. It carries position data like any other annotation — useful as a snap target or a DXF-alignment reference point — but shows no coordinate readout in the sidebar or on the canvas by default.
The column between the canvas and the sidebar. It shows a different face depending on what you're doing, and collapses to a thin strip when idle.
Numbered steps walk through the current tool's clicks, advancing as you place points. Best fit and Flatness show a live preview line — diameter and RMS for a circle, RMS for a line — updating as each point is placed. Multi-point tools show Finish and Cancel buttons, equivalent to pressing Enter/double-click to finish or Esc to cancel.
Switch to Select and click one measurement to see its properties: a rename field, and a Nominal + Upper/Lower tolerance in the active display unit (mm or µm). Once a nominal is set, the panel shows the live deviation and a PASS/FAIL chip. This is the same [n] number shown on the canvas label and in the sidebar row for that measurement.
Selecting a circle↔circle distance adds a Pattern choice — between centers, minimum gap, or maximum span — and, only once an Origin is set, a Direction choice to report the distance along the reference X or Y axis instead of the direct line.
With no tool armed and nothing selected, the panel shrinks to a vertical MEASURE strip. Click it to expand manually; arming a tool or selecting a measurement expands it automatically. Drag its left edge to resize.
A searchable, verb-first list of every measuring task — press M or click ⌕ Measure… in the toolbar.
Six tasks measure a relationship between two existing elements rather than between raw clicks:
| Task | What it needs |
|---|---|
| Distance between two circles | two circles |
| Distance from point to circle | a circle, then a point |
| Perpendicular distance from a line | a reference line, then start and end points |
| Parallel distance / parallelism | a reference line, then another line or a free point |
| Width between two lines | two lines (a slot or groove) |
| Intersection of two lines | two lines |
For a circle or line slot, either click an already-fitted element to pick it directly, or click a bare edge to place fit points — at least 3 for a circle, at least 2 for a line — then press Enter (or double-click, or the panel's Finish button). The points become a normal Circle measurement, or a Flatness line, which then becomes the pick — the same as if you'd built it with those tools directly.
Deleting a circle or line that a relation measurement depends on deletes the relation with it, in the same undo step — one Ctrl/⌘Z brings both back.
Link two selected annotations with a geometric relationship — parallel, perpendicular, tangent, and more.
| Constraint | Applies to |
|---|---|
| ⊥ Perpendicular | line + line |
| ∥ Parallel | line + line |
| ∠ Angle… | line + line — prompts for an angle in degrees (default 90°) |
| ⊙ Concentric | circle + circle |
| T Tangent | circle + circle, or line + circle |
| • Coincident | any two annotations with an anchor point — offered as a fallback |
| • Point on line | point + line |
| • Point on circle | point + circle |
| M Midpoint | point + line — point becomes the line's midpoint |
A small badge marks the constraint's contact point — dark when satisfied, red if it can't converge, dashed when disabled. Right-click the badge for Remove constraint (or Enable/Disable). Right-click a single annotation that has constraints for a Constraints submenu listing each one individually.
| Key | Tool | Key | Tool |
|---|---|---|---|
| V | Select | T | Note |
| H | Pan | R | Area |
| D | Distance | L | Flatness |
| A | Angle | P | Point |
| O | Circle (3-point) | C | Calibrate |
| Key | Action |
|---|---|
| Esc | Cancel / close the Measure… palette / back to Select |
| Del / Bksp | Delete selected annotation(s) |
| U | Elevate selected detection to measurement |
| Enter | Confirm multi-point tool (including an inline circle/line fit in a relation measurement) or point-pick inspection |
| M | Open the Measure… palette |
| S | Save session |
| 0 | Zoom to fit window (frozen only) |
| 1 | Zoom to 1:1 pixels (frozen only) |
| ` | Toggle measurement grid |
| ←↑→↓ | Nudge selected annotation 1 px (hold Shift for 10 px); pans the frozen viewport when nothing is selected |
| Ctrl Z / ⌘Z | During a multi-point measurement, removes the last placed point; otherwise undoes the last action. |
| Ctrl Y / ⌘⇧Z | Redo |
| Ctrl V / ⌘V | Paste an image from the clipboard — loads it like a drop |
| ? | Open this documentation |
| Gesture | Action |
|---|---|
| Scroll wheel | Zoom in / out (frozen image only) |
| Middle-click drag | Pan the viewport |
| H + drag | Pan using the Pan tool |
| Space + drag (hold) | Temporary pan — release to return to the previous tool |
| Click minimap | Jump viewport to that position |
| Modifier | Effect |
|---|---|
| Alt + click | Bypass all snapping — place point exactly where you click, ignoring detected edges and annotation snaps |
| Alt (hold, no click) | Suppresses the orange snap preview crosshair on mousemove |
Before falling back to sub-pixel edge detection (see Sub-pixel Snapping), Loupe first snaps to the endpoint of any existing annotation within the snap radius: a Distance/Perpendicular/Parallel/two-point Calibration endpoint, a Circle or Fit Arc center — plus, for a partial Fit Arc, its two arc ends — an Arc Measure's two ends, every point of a Flatness line or Spline, an Area vertex, a Point, or the Origin. When more than one is in range, the nearest one wins.
| Gesture | Action |
|---|---|
| Click annotation | Select it (deselects others) |
| Shift + click | Add to / remove from current selection |
| Drag on empty area | Rectangle drag-select all annotations inside |
| Right-click | Context menu: elevate, delete, rename, group, merge lines, Punch/Die toggle, re-measure |
| Gesture | Action |
|---|---|
| Shift + click DXF feature (point-pick mode) | Add that feature to the compound pick target |
| Double-click | Finish multi-point tool or confirm manual inspection |
Automatically finds circles, lines, and arcs in the frozen image.
Finds circular contours and fits their edge points with a robust geometric circle fit. Adjust Min radius, Max radius, and Sensitivity before running. Higher sensitivity finds fainter edges and may also find more false positives.
Runs Canny edge detection followed by a Hough line transform and non-maximum suppression (NMS). Lines closer than the NMS distance and within the angle tolerance are merged, keeping the longest. The bilateral smoothing slider reduces noise on textured surfaces before edge detection.
Contour-based detection that discriminates arcs from straight lines using curvature analysis. Useful for EDM wire-cut parts where arcs may be incomplete due to reflections or chamfers.
Detected features (shown in orange in the sidebar) are separate from measurements. Click ↑ (elevate) in the sidebar or press U to promote a detected feature to a permanent measurement that appears in CSV, PDF, and DXF exports.
Load a CAD drawing and overlay it on the frozen image for comparison and guided inspection.
Manual: use Move DXF to drag the overlay into position, or use Set Origin to pin an anchor point.
Auto-align: calibrate the image, then click Auto-align. Loupe tries circle matching when suitable circles are available, then falls back to edge-based alignment. Detection runs as needed; you do not need to run line detection first. Alignment changes position and rotation at the calibrated scale. See DXF Auto-alignment in How It Works for details.
LINE, CIRCLE, ARC, LWPOLYLINE (decomposed into line and arc segments). Layer names are preserved and shown in hover tooltips.
Choose how guided inspection finds the real edge near each DXF feature.
Open Overlay → DXF → Edge sampling. Start with Raw calipers, the default for new overlays. It samples brightness across the nominal edge, locates sub-pixel transitions, and fits the measured points with greater weight on stronger edges.
| Control | What to adjust |
|---|---|
| Method | Raw calipers measures brightness profiles directly. Canny contours uses extracted contours and preserves the older inspection workflow. Canny thresholds affect contours, not raw-caliper measurement. |
| Search ± px | Distance to search on either side of the nominal edge. Narrow it to exclude nearby edges; widen it if the real edge is outside the range. Check alignment first. |
| Width px | Caliper averaging width along the edge. A wider strip reduces noise but can mix detail near corners or small features. |
| Blur σ px | Smoothing across each caliper's brightness profile. Increase gently for noise; too much can merge neighboring transitions. |
| Brightness | Either, Dark → light, or Light → dark, measured going outward. Choose the transition that corresponds to the physical boundary. |
| Edge choice | Require one edge rejects competing candidates. First going outward chooses the first edge encountered from the inner end of the search range; Strongest chooses the strongest transition; Closest to nominal chooses the nearest to the drawing. |
For a circle, outward is away from its centre. For a closed outline, it is away from the interior. For a standalone line, it is away from the drawing centre. It does not depend on which way the CAD line was drawn. Punch/Die controls how deviations are interpreted, not the brightness transition.
A chamfer, reflection, or neighboring boundary can produce several candidates. Start by narrowing the range or choosing the known brightness direction. Use another edge-choice rule only when it describes the boundary you intend to measure, then inspect the overlay. An unmatched or ambiguous result needs review; changing the rule alone does not establish that the chosen edge is correct.
Reticle overlays and saved inspection templates, both in the Overlay ▾ menu.
Pick a reticle from the dropdown under "Reticle overlay" — protractors, a crosshair, millimetre grids, radius rings, and thread gauges (common thread angles, plus metric and imperial pitch series). It's drawn centred on the canvas (not draggable), scaled by your calibration where applicable.
Export as Reticle… saves your current annotations as a custom reticle JSON file; Import Reticle… loads one back in.
A template captures a complete inspection setup — the loaded DXF geometry, calibration, tolerance thresholds, per-feature overrides, detection settings, and edge-sampling options — so you can reapply the same inspection to a new part image. Save as Template is enabled once a DXF overlay and a calibration both exist; Load Template validates the file before applying it.
Automatically measure deviations of real part edges from a loaded DXF nominal.
Results show perpendicular deviation from nominal in mm, colour-coded green / amber / red by tolerance. Punch and Die features are distinguished because they deviate in opposite directions.
If a feature fails to auto-detect (reflection, burr, incomplete edge), click it in the DXF overlay to enter point-pick mode. Place points along the real edge, then double-click or press Enter to fit and compute deviation.
Global warn/fail thresholds are set in Settings. Per-feature overrides can be set by clicking a deviation label on the canvas. Diameter/radius dimensions with a tolerance in the DXF (e.g. Ø25 +0.05/−0.02) are read automatically and applied to the matching circle or arc, tagged DWG in the results table; set Default tol ± in the DXF panel to give every feature without its own drawing tolerance a plain ± band instead of the global thresholds (tagged DEF). Priority: a per-feature override always wins, then a drawing tolerance, then the default tolerance, then the global thresholds.
A green PASS means a matched feature is within its tolerance. Amber PASS?, WARN?, or FAIL? indicates competing edges: the numeric result needs review. A dash or UNMATCHED means there is no accepted measurement. A group marked INCOMPLETE has missing measurements; it is not an all-pass result.
Hover a result for the reason and available fit RMS and point counts. Check alignment, narrow the search range, or select the appropriate brightness transition before measuring again. For short arcs, a wider visible arc may be needed to constrain the fit.
Track repeated inspections of the same part on a local installation.
Saved runs retain unmatched and ambiguous results. A run needing review is marked REVIEW, unless a definite failure makes the run FAIL. Ambiguous numeric points appear amber in the chart; unmatched results have no plotted measurement.
Ambiguous and unmatched measurements are excluded from SPC statistics. The summary shows how many were excluded. Its sample count refers to usable measurements for the selected feature, so saving two runs does not guarantee two usable samples.
The summary needs at least two usable measurements to show mean, standard deviation, range, and capability. Cpk also needs an applicable tolerance and measurable variation. With zero or negligible observed variation, it shows Cpk unavailable (zero observed variation).
Preview four camera-setting variants side by side, then apply the one that looks best (Keyence-style).
Capture a grid of overlapping live tiles and blend them into one panorama.
Download PNG saves the panorama; Use as image loads it as the new frozen working image.
Reconstructs one higher-resolution image from several sub-pixel-shifted live captures.
Download PNG saves the result; Use as image loads it as the new frozen working image.
Builds an all-in-focus composite and a height map from a manually focus-stepped stack of live frames.
Each captured frame is scored per pixel by a focus measure — the variance of the Laplacian, a standard sharpness metric — so at every pixel, the frame where that measure peaks is the one locally in focus. Keeping the winning pixel from each frame builds an all-in-focus composite; the winning frame's index at each pixel, scaled by your Z-step, becomes a height map.
Measures per-tooth angular width deviation from a frozen image of a gear.
A results table lists each tooth's angular width, its deviation from the best tooth, and (if calibrated) that deviation in µm at the pitch circle diameter.
Locates edges more precisely than individual pixel positions.
When you hover over the frozen image with a measurement tool active, the cursor snaps to the nearest detected edge at sub-pixel precision. An orange crosshair marks the snap position. Hold Alt to bypass snapping.
A small neighbourhood around the cursor is sampled. A Sobel filter computes the image gradient — the rate of change of brightness — giving a high response at edges and near-zero in flat regions. Local gradient peaks are identified, and the nearest sufficiently strong peak is selected. Flat regions and edge flanks are rejected.
Then the edge is refined to sub-pixel precision along the gradient direction using one of two methods:
| Method | How it works | Best for |
|---|---|---|
| Parabola | Fits a parabola to the three gradient values around the peak. Sub-pixel offset = −(g₊₁ − g₋₁) / (2(g₊₁ − 2g₀ + g₋₁)). Fast and stable. | Sharp, clean edges |
| Gaussian | The browser method interpolates a peak in the log gradient. The server method interpolates an intensity second-derivative zero crossing. | Compare with Parabola on your images |
Choose the sub-pixel method in Settings → Measurement. Browser methods refine locally; server methods use the captured frame. None disables sub-pixel refinement. Snapping is suppressed when no sufficiently strong, valid gradient peak lies within the snap radius; a stronger distant edge does not take priority over the nearest valid ridge.
Before edge detection the image may be smoothed using a bilateral filter (controlled by the smoothing slider). Bilateral filtering reduces noise while preserving sharp edges better than Gaussian blur — it is especially useful on textured surfaces like turned or ground parts.
The Canny algorithm finds edges in several steps: Gaussian smoothing → Sobel gradient computation → non-maximum suppression along gradient directions → hysteresis thresholding (strong edges kept, weak edges kept only if connected to strong ones). The result is a thin, one-pixel-wide edge map.
The Hough line transform votes in a parameter space of (ρ, θ) for every edge point. Peaks in vote space correspond to lines. After detection, non-maximum suppression merges nearby lines with similar angles and positions, keeping the longest representative.
Circular contours provide candidate edge points. Sub-pixel refinement and a robust geometric fit estimate the centre and radius within the selected radius range.
Contours are extracted from the edge map. Each contour is tested against a fitted circle — if the residual error is low and the contour spans at least the minimum arc angle, it is classified as an arc. Nearby collinear contours are classified as lines instead.
Finds position and rotation while keeping the calibrated scale fixed.
When the drawing contains circles, Loupe uses existing detected circles or runs circle detection. With enough matches, it estimates and refines the drawing pose from circle centres. If this cannot produce a match, it tries edge-based alignment.
The edge fit uses the drawing as a whole unless the imported geometry explicitly supplies alignment datums. A single straight edge or circle cannot independently constrain every component of position and rotation.
Given three points, the unique circumscribed circle is found by intersecting the perpendicular bisectors of two chords. This is an exact solution — there is no fitting involved — so it is sensitive to point placement accuracy. Use Fit Arc for more robust results from many points.
Click a center point, then click any point on the circumference. The radius is the Euclidean distance between the two clicks. This is exact and requires only two points, but accuracy depends entirely on how precisely the center is known.
Fits the radial distances from the points to the circle, reducing the influence of outliers. Very short arcs may not constrain the centre and radius reliably; collect points over a wider span if the fit is declined.
Circle and arc fits reduce the influence of points with large radial residuals. Line fits use a residual threshold and refit the retained points. Fit RMS and point counts appear in tooltips. Clearly separated competing edges are reported as ambiguous; narrow the corridor or adjust alignment before measuring again.
| Format | Contents | How to export |
|---|---|---|
| Annotated PNG | Image with all measurements and labels rendered on top | Overlay → Export annotated image |
| CSV | All measurements with values, coordinates, and calibration, plus per-measurement tolerance columns (Nominal/Upper/Lower/Deviation/Result) where set. One row per measurement, numbered to match the sidebar and canvas labels. | Overlay → Export CSV |
| Inspection CSV | Feature IDs, measured deviations, applied tolerance bands, result (including UNMATCHED), and a separate ambiguous flag. Review that flag alongside PASS/WARN/FAIL. | Overlay → Export Inspection CSV (requires inspection) |
| Inspection PDF | Numbered features, deviation table, tolerance summary, and visible ambiguity or incomplete-result indicators | Overlay → Export Inspection PDF (requires inspection) |
| DXF (reverse engineering) | All measurement annotations converted to DXF entities in mm-space. Distances → lines, circles → circles, splines → SPLINE entities. | Overlay → Export DXF |
| Session JSON | Legacy annotations, calibration, DXF, and inspection results. Does not contain the image. | File ▾ → Save session, or press S |
| Project (.loupe) | Saved workspace: microscopy image, measurements, calibration, and view state, or latest instrument result and saved settings, masks, and measurements. Includes retained original lens/imported fringe images when available. Excludes server capture history, running averages, live jobs, and undo history. | File ▾ → Export project |
Continuing sends this image or analysis data to the server for processing. The frame is kept only for your session and expires automatically.