3 Comments

  1. why start with minus one when writing the for loop of our kernel step?

    • This is how the center voxel is found, it will be the only one in the grid with a value < 0 thereby triggering the if (d < 0) conditional.

  2. If I’m understanding correctly, expanding the grid from 3×3 to 5×5, 7×7, etc is done by increasing the conditional value on the nested if statements, i.e. xo <= 1 becoming xo <= 2 would create a 5×5 grid. Is that correct?

    Thanks!

Leave a Reply