fiji / Correct_3D_Drift

https://imagej.net/plugins/correct-3d-drift
GNU General Public License v3.0
5 stars 2 forks source link

Refactor Point3f to simply array #5

Open tischi opened 4 years ago

tischi commented 4 years ago

The current code contains unnecessary Point3f java objects, which make it overly complicated. Would be much simpler to have 3D arrays. For example, code like below could be replaced by loops or even on-liners:

    minx = min(minx, shift.x)
    miny = min(miny, shift.y)
    minz = min(minz, shift.z)