• Andrey Filippov's avatar
    CLAUDE: JNA getCorrIndices propagates num_corr_tiles to base field (real fix) · f6dcc90f
    Andrey Filippov authored
    Root cause of the CORR2D-all-NaN / 0-targets: the inter-correlation actually
    works (probe showed num_corr_tiles=8850 = 4425 tiles x (1 sensor + 1 sum)), but
    the TD readback dropped it. Base GpuQuad.getCorrIndices() sets the num_corr_tiles
    field ("also sets num_corr_tiles"); GpuQuadJna.getCorrIndices() read the native
    count locally and returned the array WITHOUT setting the field. So
    TDCorrTile.getFromGpu (num_tiles = getNumCorrTiles()/num_pairs) and base
    getCorrTilesTd (uses the field directly) saw a stale 0 -> built 0 tiles ->
    empty target sequence -> null ROUND_ONE image -> saveImagePlusInModelDirectory
    NPE (the misplaced-null-guard latent bug is just the messenger).
    
    Fix: GpuQuadJna.getCorrIndices() sets num_corr_tiles = n (native count); field
    made protected so the subclass can. Java-only.
    Co-Authored-By: 's avatarClaude Opus 4.8 (1M context) <noreply@anthropic.com>
    f6dcc90f
Name
Last commit
Last update
docs Loading commit data...
eclipse_project_setup Loading commit data...
focusing_data_files Loading commit data...
ij_macros Loading commit data...
ijplugins Loading commit data...
scripts Loading commit data...
src/main Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
Eyesis_Correction.xml Loading commit data...
INSTALL-CODEX-ECLIPSE.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
mcp.allowed.example Loading commit data...
pom.xml Loading commit data...