Revision ac7458ef286b3f875ff519b7a8dd6a703b506db8 authored by Joost van Griethuysen on 03 June 2019, 09:01:01 UTC, committed by Joost van Griethuysen on 03 June 2019, 09:01:01 UTC
When spacing is already correct, no resampling is required. However, if the size does not match, or the origin or direction is different, there can still be a geometry mismatch.

Therefore, if the original image spacing is equal to the resampledPixelSpacing, apply resampling to just the mask, and then apply pre-crop.
1 parent 7a5e509
Raw File
.editorconfig
# EditorConfig: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[**]
end_of_line = lf
insert_final_newline = true

# Set default charset
[**.py]
indent_style = space
indent_size = 2
charset = utf-8

# Set indentation for C
[**.{c,h}]
indent_style = space
indent_size = 2

# Tab indentation (no size specified)
[**CMakeLists.txt]
indent_style = space
indent_size = 2
back to top