<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dženan,
<div class=""><br class="">
</div>
<div class="">  Thank you for your response!  Although it really is more the level set segmentation framework for V4 that this applies to.  If either of you can point me to someone who’s done work on that, it’d be appreciated.</div>
<div class=""><br class="">
</div>
<div class="">Thanks!</div>
<div class="">David</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 22, 2016, at 3:30 AM, Dženan Zukić <<a href="mailto:dzenanz@gmail.com" class="">dzenanz@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Hans, I think you were involved with refactoring registration framework for V4. Can you pitch in?</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<br class="">
</div>
<div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
Regards</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Sat, Jun 11, 2016 at 1:24 AM, David S. Paik (Elucid Bioimaging)
<span dir="ltr" class=""><<a href="mailto:david.paik@elucidbio.com" target="_blank" class="">david.paik@elucidbio.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am going through the level set v4 classes in 4.9.1 and I noticed a few things.<br class="">
<br class="">
In itk::LevelSetBase<br class="">
<br class="">
-  EvaluateMeanCurvature( const InputType& iP ) is declared pure virtual (.h line 75) but a definition is provided (.hxx line 88).  While syntactically permissible, this seems more likely an oversight rather than an intentional design. (see below)<br class="">
<br class="">
- Both versions of EvaluateLaplacian are pure virtual even though they could be computed at this point in the hierarchy as the trace of the Hessian matrix.  This is analogous to how EvaluateGradientNorm is calculated even though EvaluateGradient is still pure
 virtual in this class. (see below)<br class="">
<br class="">
<br class="">
In itk::DiscreteLevelSetImage<br class="">
<br class="">
- EvaluateLaplacian (both versions) do their own redundant calculation of second derivatives even though they may have already been calculated in the Hessian matrix.  There’s probably a design tradeoff between redundantly computing the Laplacian (as it is now)
 vs. Laplacian triggering a full Hessian computation even if the off diagonal elements of the Hessian are not used.  One possibility is to check to see if Hessian has been computed and if so use it but not trigger a full Hessian computation.<br class="">
<br class="">
- EvaluateMeanCurvature (both versions) override itk::LevelSetBase’s version but they appear to be exactly the same.  The virtual function calls should work from the base class.  Not a bug but this seems to be an unnecessary redundancy.  Am I missing something?<br class="">
<br class="">
<br class="">
David<br class="">
<br class="">
_______________________________________________<br class="">
Community mailing list<br class="">
<a href="mailto:Community@itk.org" class="">Community@itk.org</a><br class="">
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/community</a><br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>