Skip to content

Commit

Permalink
fix SparkComputeCost code
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Apr 26, 2024
1 parent 33481af commit 0c31327
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,14 @@ public static void computeCost(
int gridXSize = (int)Math.ceil(costSize[0] / (float)costBlockSize[0]);
int gridZSize = (int)Math.ceil(costSize[2] / (float)costBlockSize[2]);

for (long x = 25; x < 26; x++) {
for (long z = 23; z < 24; z++) {
//for (long x = 0; x < gridXSize; x++) {
// for (long z = 0; z < gridZSize; z++) {
if ( x == 35 ) System.out.println( "z: " + z + ": " + getZcorrInterval(x, z, zcorrSize, zcorrBlockSize, costSteps).min( 2 ));
//for (long x = 25; x < 26; x++) {
// for (long z = 23; z < 24; z++) {
for (long x = 0; x < gridXSize; x++) {
for (long z = 0; z < gridZSize; z++) {
//if ( x == 35 ) System.out.println( "z: " + z + ": " + getZcorrInterval(x, z, zcorrSize, zcorrBlockSize, costSteps).min( 2 ));
gridCoords.add(new Long[]{x, z});
}
System.out.println( "x: " + x + ": " + getZcorrInterval(x, 0l, zcorrSize, zcorrBlockSize, costSteps).min( 0 ) );
//System.out.println( "x: " + x + ": " + getZcorrInterval(x, 0l, zcorrSize, zcorrBlockSize, costSteps).min( 0 ) );
}
//System.exit( 0 );
System.out.println("Processing " + gridCoords.size() + " grid pairs. " + gridXSize + " by " + gridZSize);
Expand Down

0 comments on commit 0c31327

Please sign in to comment.