import React, {useState} from 'react'; import {createRoot} from 'react-dom/client'; import './style.css'; import ReviewSummary from './ReviewSummary'; import {requestAlignment} from './api'; function App(){ const [result,setResult]=useState(null), [busy,setBusy]=useState(false), [error,setError]=useState(''); const [view,setView]=useState('overlay'), [native,setNative]=useState(false); const [engine,setEngine]=useState('classical'); async function submit(e){ e.preventDefault(); const data=new FormData(e.currentTarget); data.set('exposure',data.get('exposure') ? 'true' : 'false'); data.set('local',engine === 'learned' || data.get('local') ? 'true' : 'false'); data.set('iris_crop_confirmed',data.get('iris_crop_confirmed') ? 'true' : 'false'); setBusy(true);setError('');setResult(null); try{const body=await requestAlignment(data);setResult(body);setView(body.metrics.status === 'unaligned' ? 'reference' : 'overlay');} catch(err){setError(err.message);}finally{setBusy(false);} } return
COMPUTER VISION / REGISTRATION REVIEW

Iris registration lab

Align source photographs. Inspect the detail. Keep the reference in control.

{result && Download PNG}
{result?.metrics.status === 'unaligned' &&
Reference original
Reference — unchanged
Second original, not aligned
Second original — not aligned
}
{result?{view+':
◎

Make the structures match.

Upload two photographs to inspect alignment overlays and source-only output.

Synthetic tests establish code behavior, not real-eye accuracy.
}

Overlay: doubled fibers indicate misalignment. Contribution: black = reference only, lighter areas include the moving photograph (maximum 50%). Composite is experimental. Local confidence: white = eligible for blending, not verified anatomy. Deformation: brightness shows local movement (12 levels per pixel).

; } createRoot(document.getElementById('root')).render();