reg_f3d nrr_cpp.nii
Rigel-X opened this issue · comments
Or is there any built-in tool to visualize the nrr_cpp.nii?
They are the cubic B-Spline parametrised grid. I use reg_transform to generate the flow field from it. Check (http://cmictig.cs.ucl.ac.uk/wiki/index.php/Reg_transform) .
SORRY it's -disp not -def
I found one:
https://www.mathworks.com/matlabcentral/fileexchange/20057-b-spline-grid-image-and-point-based-registration
Spacing = [5,5];
figure,
for np = FloPhase
Igrid=make_grid_image(Spacing,size(refimg));
O_trans = squeeze(Bgrid(:,:,:,np)); % Bgrid was nrr_cpp
[Igrid,~]=bspline_transform(O_trans,Igrid,Spacing);
imshow(1-Igrid,[]); title('grid');
end