Generation affine/non-linear transformed datasets #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR doesn’t aim to be merged to the main branch but is opened to highlight the branch that contains the files used to generate affine and non-linear transformed datasets.
Description of the process
Affine and non-linear transformed datasets are generated by transforming the T2w image of each subject of the Spine Generic dataset.
For the generation of affine transformed datasets: The magnitude of the transformations (rotation, scaling, translation) are randomly and independently selected (within a certain range) for each T2w image, the aim being to observe the registration accuracy on a broader spectrum of data (and potentially determine the limits of the registration models) by adding these linear transformations.
For the generation of a non-linear transformed dataset: The dataset aims to mimic strong variations in the position of a subject between the acquisitions of the different modalities. A synthetic warping field is produced for each T2w image, using a similar approach than for the generation of unregistered label maps in the Synthmorph method. The parameters used to generate the warping fields have been selected to produce realistic or stronger non-linear deformations. Considering the parameters present in the config file for training a registration model, the warping fields have been generated using a
vel_res
of[16, 32, 64]
and avel_std
of[2.5, 5, 5]
. The dataset is generated to observe how well the registration methods/models generalize on largely displaced data with non-linear relationships.