uncbiag / mermaid

Image registration using pytorch
Other
177 stars 28 forks source link

Issue with spacing for upsampling and downsampling #121

Closed marcniethammer closed 6 years ago

marcniethammer commented 6 years ago

The upsampling and downsampling is unnatural. As it uses (current_size-1)/(desired_size-1). This is strange. If one has a 4x4 image with spacing 1/3 it will become a spacing of 1 one upsampled to 2x2 instead of 2/3. To properly support this an origin should be introduced.

marcniethammer commented 6 years ago

Fixed. Just had to be made consistent. We keep the {0,1}^d cube fixed during the up and downsampling instead.