<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi guys,<div> we kept it there at the time the class was written, but there's no reason for not moving the target mode to the parent class.</div><div>If there aren't any objections you could file a feature request in the bug tracker or proceed with the moving at once.</div><div>Let me know your decision</div><div><br></div><div>Luca</div><div><br></div><div><br><div><div>On Apr 14, 2009, at 1:16 PM, Dan Mueller wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Rick,<br><br>You may want to investigate FastMarchingUpwindGradientImageFilter:<br> <a href="http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1FastMarchingUpwindGradientImageFilter.html</a><br><br>This is a subclass of the normal fast marching filter which allows you<br>to set the "target reached mode". By default all of the gradient<br>"stuff" is turned off, so you can treat the filter as you would the<br>parent class. For example, just add these lines:<br> filter->SetTargetReachedModeToAllTargets(); // Other options exist also<br> filter->SetTargetPoints( targetPoints ); // You need to create these<br><br>(An aside: it is a shame this functionality was added to the subclass,<br>not the parent filter.)<br><br>Hope this helps.<br><br>Cheers, Dan<br><br>2009/4/14 Rick Giuly <<a href="mailto:rgiuly@gmail.com">rgiuly@gmail.com</a>>:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Hello All,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm trying to monitor progression of fast march operation so I can stop it<br></blockquote><blockquote type="cite">when it has spread to a certain volume. I figured that AddObserver might be<br></blockquote><blockquote type="cite">a way to do this... but it seems that the callback is not called. Is there<br></blockquote><blockquote type="cite">some other way to monitor the fast march progression?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here is the test that I used (in python):<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">fastMarching = FastMarchingFilterType.New()<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">iterationCommand = itk.PyCommand.New()<br></blockquote><blockquote type="cite">iterationCommand.SetCommandCallable(fastMarchIterationUpdate)<br></blockquote><blockquote type="cite">fastMarching.AddObserver(itk.IterationEvent(),<br></blockquote><blockquote type="cite">iterationCommand.GetPointer())<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-rick<br></blockquote><blockquote type="cite">_____________________________________<br></blockquote><blockquote type="cite">Powered by <a href="http://www.kitware.com">www.kitware.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Visit other Kitware open-source projects at<br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please keep messages on-topic and check the ITK FAQ at:<br></blockquote><blockquote type="cite"><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote><blockquote type="cite"><br></blockquote>_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Luca Antiga, PhD</div><div>Head, Medical Imaging Unit,<br>Biomedical Engineering Department,<br>Mario Negri Institute.<br>mail: Villa Camozzi, 24020, Ranica (BG), Italy<br>phone: +39 035 4535-381<br>email: <a href="mailto:antiga@marionegri.it">antiga@marionegri.it</a><br>web: <a href="http://villacamozzi.marionegri.it/~luca">http://villacamozzi.marionegri.it/~luca</a></div></div></div></div></div></div></span></div></span></div></span> </div><br></div></body></html>