Closed ntustison closed 4 years ago
Just a note that this compilation is going to fail because I need to update the ANTs cage in ANTsRCore.
Okay, @stnava , I believe this is ready to go. If it fails, based on what I've seen, it's because the build is not incorporating the recent ANTs tag update in ANTsRCore.
This commit incorporates simulated displacement fields (bspline and exponential) and it templates the b-spline scattered data filter so one can fit 1/2/3/4-D curves, 2/3/4-D scalar fields, and 2/3-D displacement fields. The former is in the simulateDisplacementFields
function and the latter is in fitBsplineObjectToScatteredData
.
Thanks for pushing this @stnava . Hey, @jeffduda , just wanted to tag you in this since you've used this filter in the past. Note that I didn't template the B-spline surface option because 2-D vector images aren't templated for 3 components in ANTsRCore. However, if there is a demand, it would be really easy to add as the fitting code is already in place.
I think this might need a minimum version update for ANTsRCore because I was getting ImageDuplicator errors using an install from a week or 2 ago.
Hey @stnava ,
Following up on our earlier conversation about wrapping some of the ITK/ANTs B-spline functionality in ANTsR, I thought I'd start with a project we discussed awhile ago---specifically, adding simulated displacement fields. I wrote the
SimulateDisplacementField
program which wraps both B-spline and Exponential ITK-based classes.