funkelab / gunpowder

A library to facilitate machine learning on multi-dimensional images.
https://funkelab.github.io/gunpowder/
MIT License
79 stars 56 forks source link

Rewrite specified location node to include jitter, boundary check #76

Closed cmalinmayor closed 4 years ago

cmalinmayor commented 4 years ago

Now the specified location node centers the location in the middle of the total roi (rather than an arbitrary request roi). It also checks to see if the shifted roi is inside the provided roi for each request spec, and ensures that the shift is a multiple of the LCM voxel size, rather than snapping to each voxel grid separately, which could cause different shifts for different arrays.