<div dir="ltr"><div class="gmail_extra"><div dir="ltr"><div>Hi,</div><div>I have a very simple polar to cartesian filter. Its similar to <wbr>itkAzimuthElevationToCartesian<wbr>Transform. The source code can be found @ <a href="https://github.com/someshSandbox/Polar2Cartesian" target="_blank">https://github.com/<wbr>someshSandbox/Polar2Cartesian</a></div><div><br></div><div>I generate cartesian and polar images and use the resample filter to do the conversion for testing. While the conversion from Cartesian to Polar works, Polar to conversion doesn't. The sample images can be found at the following links:</div><div><br></div><div><ol><li>Created Cartesian Image: origin(-20, -20) size(40,40), spacing(1, 1)<br><a href="https://github.com/someshSandbox/Polar2Cartesian/blob/master/images/Cartesian.png" target="_blank">https://github.com/<wbr>someshSandbox/Polar2Cartesian/<wbr>blob/master/images/Cartesian.<wbr>png</a><br><br></li><li>Used filter to convert Cartesian Image to Polar: origin(0, 0) size(20,360), spacing(1, 1). This works.<br><a href="https://github.com/someshSandbox/Polar2Cartesian/blob/master/images/Cartesian2Polar.png" target="_blank">https://github.com/<wbr>someshSandbox/Polar2Cartesian/<wbr>blob/master/images/<wbr>Cartesian2Polar.png</a><br><br></li><li>Created Polar Image: origin(0, 0) size(20,360), spacing(1, 1)<br><a href="https://github.com/someshSandbox/Polar2Cartesian/blob/master/images/Polar.png" target="_blank">https://github.com/<wbr>someshSandbox/Polar2Cartesian/<wbr>blob/master/images/Polar.png</a><br><br></li><li>User filter to convert Polar Image to cartesian: origin(-20, -20) size(40,40), spacing(1,1). This doesn't work.<br><a href="https://github.com/someshSandbox/Polar2Cartesian/blob/master/images/Polar2Cartesian.png" target="_blank">https://github.com/<wbr>someshSandbox/Polar2Cartesian/<wbr>blob/master/images/<wbr>Polar2Cartesian.png</a><br><br></li></ol>I am probably missing something trivial, but can't seem to locate the bug. I would appreciate if someone can review the code.</div><div><br></div><div>Thanks,</div><div>Somesh</div><div><br></div></div></div></div>