<div dir="ltr"><div style="text-align: left;">Hi,<br><br>I&#39;m trying to use &quot;itkNearestNeighborInterpolateImageFunction&quot; to perform subsampling on a binary image,<br>I got an image in the right size that preserved the original structure, but with many &quot;holes&quot;.<br>
I thought &quot;itkNearestNeighborInterpolateImageFunction&quot; would be a good solution where&nbsp; working on binary images but I compared the results of&nbsp; &quot;itkNearestNeighborInterpolateImageFunction&quot;
to &quot;LinearInterpolation&quot; filter on the same binary image and they give
the same result.<br>( I used &quot;LinearInterpolation&quot; for subsampling of not-binary image and it works well).<br><br>I couldn&#39;t find the implementation for &quot;itkNearestNeighborInterpolateImageFunction&quot; (the txx file)<br>
Am I missing something?<br><br>Thank you,<br>Noah.<br><br><br></div></div>