CLAUDE: CuasTD - NaN-aware cross-sensor TD consolidation (A2 step 2) + JNA getCltData override
Phase A2/B building block: consolidate the 16 per-sensor CLT channels into ONE
averaged TD channel (average images BEFORE correlation - multiply averages, not
average products). Per-tile granularity: sum sensors that have the tile (first
element NaN = absent), count, divide; count plane returned as the weight; a
stray in-tile NaN poisons the whole result tile (fail-visible). Not available
on GPU (combine_inter only sums correlation PRODUCTS) - this CPU implementation
+ get/setCltData D2H/H2D is the A2 bridge and the bit oracle for the future
clt_average_sensors kernel.
- CuasTD.validateConsolidation(): linearity oracle - imclt(TD-avg) must equal
pixel-average of per-sensor imclt renders (same GPU imclt both sides);
prints count-plane stats + max|diff|/RMS, saves -CUAS-TDAVG-CHECK 3-slice
stack, restores original TD. Wired into the curt_cond_test branch after
perSensorFromRawJp4 (uses its raw-jp4 16-sensor TD).
- GpuQuadJna.getCltData() override added (base derefs null gpu_clt_h on JNA
shells - the known un-overridden-accessor class); uses tp_proc_get_clt.
mvn compile clean.
Co-Authored-By:
Claude Fable 5 <noreply@anthropic.com>
Showing
Please register or sign in to comment