<div dir="ltr">I need to perform N4 bias correction in Python on two sets of MRI scans. I am using the default settings for N4BiasFieldCorrectionImageFilter. Beforehand, I shrink the image by a factor of 4x to speed up the processing.<div><br></div><div>However, the issue with that is I lose resolution when I get the output image. I would like to use a shrink factor of 4x but keep the initial resolution. </div><div><br></div><div>An example of how to do that in C++ is shown here: <a href="https://github.com/midas-journal/midas-journal-640/blob/master/Source/itkN3MRIBiasFieldCorrectionImageFilterTest.cxx">https://github.com/midas-journal/midas-journal-640/blob/master/Source/itkN3MRIBiasFieldCorrectionImageFilterTest.cxx</a></div><div><br></div><div>My issue is that <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">BSplineControlPointImageFilter </span>is not wrapped in Python. Just about everything else in that module is. I took a look at the source code for the module and it would take me a few weeks to understand and implement that in Python.</div><div><br></div><div>So here are my series of questions:</div><div><ol><li>How can I go about wrapping <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">BSplineControlPointImageFilter </span>in Python? I'm willing to build the source code to do so. <br><br></li><li>Assuming I decide to go the route of wrapping BSplineControlPointImageFilter, how can I go about contributing my code to the project?<br><br></li><li>I'm confused as to whether you are using GitHub or your own Git server for contributions? There is a GitHub project link with no pull requests that I could contribute too. But there's also your git server on <a href="http://itk.org">itk.org</a> which has more active contributions.<br><br></li><li>I'm unable to sign up for Gerrit access as described on this link. <a href="https://itk.org/Wiki/ITK/Git/Account#Gerrit">https://itk.org/Wiki/ITK/Git/Account#Gerrit</a> Am I supposed to mail any patches?<br><br></li><li>As a temporary solution, is it valid to do this to get the bias field:<br>         v(x) = u(x)f(x) + n(x)<br><br>But since noise is ignored according to Sled's paper, it becomes:<br>        v(x) = u(x)f(x)<br><br><b>Can I do this?<br>        f(x) = u(x) / v(x)<br></b></li></ol><div>Any help is appreciated.</div><div><br></div>Thanks,</div><div>Addison</div></div>