<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello Roberto,<div><br></div><div>This example script's produces an image with size as the input image, if the command line ShrinkFactor is 1. However if the ShrinkFactor is a greater than one then the output image is shrunk. This shrink factor is independent of the multi-scale N4 algorithm.</div><div><br></div><div>The N4 algorithm does have a build in multi-scale which runs the optimization a several levels. The output is the same size as the input for the N4 algorithm.</div><div><br></div><div>Also note that the number of Levels is implicitly set based on the size of the MaximumNumberOfIterations array.</div><div><br></div><div>HTH,</div><div>Brad</div><div><br><div><div>On Oct 8, 2015, at 12:37 PM, Roberto Medeiros de Souza <<a href="mailto:roberto.medeiros.souza@gmail.com">roberto.medeiros.souza@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I'm new to ITK and SimpleITK, and I am trying to use the N4 Bias Field Correction routine. I found this example:  <a href="http://www.itk.org/SimpleITKDoxygen/html/N4BiasFieldCorrection_8py-example.html" target="_blank">http://www.itk.org/SimpleITKDoxygen/html/N4BiasFieldCorrection_8py-example.html</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">As I understand the N4 Bias Field Correction routine has a shrinking factor to speed the processing, but the output image should be the same size as the input image. This example returns a smaller image. Can anyone help me with this code?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks.</div><div style="font-size:12.8px">Roberto</div></div>
_____________________________________<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>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://public.kitware.com/mailman/listinfo/insight-users<br></blockquote></div><br></div></body></html>