Awesome! welcome back! =) let's do more fixes! =D
No particular reason, I just didn't come up with a practical way of
individually testing this kind of functions (I just tested the full demons
registration and assessed the overall quality of the registration with
synthetic images and with the IBSR database), but now that you mention it,
I think it would be quite straightforward to just create a simple
analytical function for which we know the exact gradient field and test
against it... I will be working on this kind of tests today.


On Sat, May 24, 2014 at 4:45 PM, Ariel Rokem <notifications@github.com>wrote:

> In dipy/align/metrics.py:
>
> > +                                          sigma_sq_field,
> > +                                          gradient,
> > +                                          None,
> > +                                          self.smooth,
> > +                                          displacement)
> > +        else:
> > +            self.energy = v_cycle_3d(self.levels_below,
> > +                                          self.inner_iter, delta,
> > +                                          sigma_sq_field,
> > +                                          gradient,
> > +                                          None,
> > +                                          self.smooth,
> > +                                          displacement)
> > +        return displacement
> > +
> > +    def compute_demons_step(self, forward_step=True):
>
> I'm back! This function doesn't seem to be tested. Any particular reason?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/dipy/pull/346/files#r13028564>
> .
>



-- 
"Cada quien es dueño de lo que calla y esclavo de lo que dice"
-Proverbio chino.
"We all are owners of what we keep silent and slaves of what we say"
-Chinese proverb.

http://www.cimat.mx/~omar