I&#39;ve had a few more goes at this, and I think the pseudocode is something like this:<br><br>ImageRegionIteratorWithIndex xIt ( xImage, ... )<br>xIt.GoToBegin();<br>while ( !xIt.IsAtEnd() ) {<br>// convert the index from x-image coordinates to the coordinates in the input image<br>
    idx = ConvertXImageIndexToInputImageIndex( xIt.GetIndex() ); <br>    <br>