[MINC-users] Custom kernels in mincmorph
Simon Fristed Eskildsen
se at hst.aau.dk
Thu Nov 15 09:35:55 EST 2007
>> I tried out the custom kernel option (-kernel) in mincmorph. In lack of
>> documentation I had to go through the source code to find the syntax for
>> the input ascii kernel. In the process I stumbled upon what seems to be
>> the use of an uninitialized variable which resulted in a segmentation fault.
>> So my question is: Has anyone ever used the -kernel option in mincmorph
>> successfully?
>
> Well it certainly works for me.. :)
>
> Given that you seem to have the source take a look in the kernels/
> directory in the mincmorph package, there are a few examples in there.
I'm not sure where to look:
tar ztf mincmorph-1.4.tar.gz | grep kernel
mincmorph-1.4/kernel_io.c
mincmorph-1.4/kernel_ops.c
mincmorph-1.4/kernel_io.h
mincmorph-1.4/kernel_ops.h
I have the source from http://packages.bic.mni.mcgill.ca/tgz/
> I also have a few more that I can post if others want them.
>
>> Andrew, it is line 120 in kernel_io.c that worries me (kernel is freed
>> right before calling input_kernel). I'm using version 1.4.
>
> You lost me. Do you mean in kernel_io.c or mincmorph.c? input_kernel()
> is defined in kernel_io.c
kernel is freed at line 505 in mincmorph.c subsequently input_kernel()
is called where (line 120 in kernel_io.c) kernel imho is used uninitialized.
Simon
More information about the MINC-users
mailing list