[MINC-users] Building xfm2def

Andrew Janke a.janke at gmail.com
Thu Mar 3 00:38:34 EST 2016


Hi Andrew,

This should be fine for xfm2def, which component of the vector field
are you viewing in register? X?  The use case you describe is exactly
what it was written for.

You generally have to specify a large number of input parameters to
xfm2def (start, step, nelem) in order to get what you want output.  I
thought there was a version floating around in which I implemented a
-like option but a quick search would say that I'm wrong.


a


On 3 March 2016 at 15:14, Andrew Wood <andrew at biospective.com> wrote:
> Hi again,
>
> I managed to build xfm2def (I'll issue a small pull request to update for
> VIO), but I'm not sure what to make of it's behaviour. I'm trying to use it
> to approximate a linear transform as a deformation grid.
>
> I ran xfm2def on a "-rotations 30 30 30" xfm, then used it in mincresample
> to rotate a make_phantom volume (grid and phantom sampled like each other).
> Here's the result:
>
> https://drive.google.com/file/d/0BzcZlhs8X1gFWUNQa2RMd3o3dTg/view?usp=sharing
>
> Are there limitations in xfm2def that would prevent it from approximating a
> linear transform like this?
>
> Thanks,
> Andrew
>
> On Wed, Mar 2, 2016 at 11:38 PM, Andrew Wood <andrew at biospective.com> wrote:
>
>>
>> Hi all,
>>
>> It looks like minctools isn't currently configured to build xfm2def. I
>> tried adding it to the CMakeLists.txt, but I'm getting errors:
>>
>> minc-toolkit-v2/minctools/progs/xfm/xfm2def.c: In function ‘main’:
>> minc-toolkit-v2/minctools/progs/xfm/xfm2def.c:96:4: error: unknown type
>> name ‘progress_struct’
>>     progress_struct progress;
>>     ^
>> ...
>>
>> Is there a reason that it's not part of the standard build? If not, is
>> there an easy way to add it? Or will it require development to bring it in
>> line with the latest version of the libraries?
>>
>> Thanks,
>> Andrew
>>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users


More information about the MINC-users mailing list