Sampling#
NeSVoR learns an implicit representation of the underlying 3D volume. Therefore, after training a NeSVoR model, we can
sample 3D volumes and 2D slices from it. (Use --output-moel
in reconstruct command to specify the file to save
the model.)
Sample volume#
Upon training a NeSVoR model with the reconstruct command,
you can sample a volume at arbitrary resolutions with the sample-volume command.
nesvor sample-volume \
--output-volume volume.nii.gz \
--input-model model.pt \
--output-resolution 0.5
Sample slices#
You may sample slices from the model using the sample-slices command.
For each slice in <path-to-slices-folder>,
the command simulates a slice from the NeSVoR model at the corresponding slice location.
nesvor sample-slices \
--input-slices <path-to-slices-folder> \
--input-model model.pt \
--simulated-slices <path-to-save-simulated-slices>
For example, you can use sample-slices to simulate slices at the motion-corrected
locations and evaluate the reconstruction results by comparing the input slices and the simulated slices.