<br>Hi Kishore,<br><br>This thread is prompting some interesting brainstorming on the general problem.<br><br>Perhaps an average transform could be applied in some form of sliding window.<br><br>Say we have images <span style="font-family: courier new,monospace;">I1:I9</span>, with a sliding window of 3 images (arbitrary group size), with some overlap between the sliding image groups, e.g.:<br>
<br><span style="font-family: courier new,monospace;">I1-I3, I2-I4, I3-I5, I4-I6, I5-I7, I6-I8, I7-I9</span><br style="font-family: courier new,monospace;"><br> Each of these blocks would contain a within-block registration
routine.  Given the overlap between blocks, it may be possible to
construct suitable average transforms that can propage through the
entire series.<br><br style="font-family: courier new,monospace;">In each group of 3 images, the first and last images could be registered to the middle image and the middle image could be registered to each of the outside images (without using an inverse transform).  The intuition is that some kind of &quot;average&quot; of both forward and backward image registration might avoid some twisting that could otherwise propagate through a long series of images.  (It can&#39;t be an &quot;average&quot; of inverse transforms, that&#39;s a bad choice of term for the intuition.  It&#39;s some kind of &quot;middle&quot; space that considers both I1 and I2 as moving images that are both transformed to an imaginary space that encapsulates some kind of &quot;average image&quot; of the coregistration between {I1,I2} that lies somewhere in between the registration of I1 to I2 and the registration of I2 to I1.  So that I1 moves &quot;half-way&quot; toward I2, and I2 moves &quot;half-way&quot; toward I1 and they meet each other &quot;half-way&quot; in a nice coregistration.  It&#39;s not exactly a rigid-target coregistration, as it&#39;s conceived and implemented in ITK at present.  I don&#39;t have the language to explain this idea.)<br>
<br>OK, back to reality and some pressing deadlines to get something working.<br><br>Take care,<br>Darren<br><br><br><br><br><div class="gmail_quote">On Tue, Oct 20, 2009 at 6:27 PM, Kishore Mosaliganti <span dir="ltr">&lt;<a href="mailto:kishoreraom@gmail.com">kishoreraom@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Darren,<br>
<br>
The direction of microtoming gives you some idea of the shear<br>
direction. That constrains the shear deformation to 1 dimension.<br>
<br>
Also, the extent of rigid registration and deformable registration can<br>
be estimated. In my study, I observed that only 10% of the deformation<br>
is due to deformable and 90% is take care of rigidly.<br>
<br>
Regarding the sliding window registration, I had some ideas that I<br>
never tried out:<br>
Let I1, I2, I3, I4, I5 be 5 consecutive images.<br>
<br>
Then, using the pairwise registration transforms, say I1-I4 are<br>
already in the world coordinate space.<br>
<br>
Register I5 individually with I1....I4 pairwise to determine its<br>
pairwise transforms. This is a vector of transforms in the same<br>
coordinate system.<br>
<br>
Since I1, I4 are already in the world coordinate systems, you can now<br>
average the transform parameters using a weighted kernel.<br>
<br>
Kishore<br>
<br>
On Tue, Oct 20, 2009 at 8:09 PM, Darren Weber<br>
<div><div></div><div class="h5">&lt;<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Kishore,<br>
&gt;<br>
&gt; Yes, absolutely right.  In my opinion, this is an &quot;artistic&quot; project<br>
&gt; (despite the use of advanced microscopy and image processing techniques).<br>
&gt;<br>
&gt; Some effort is given to maintain a resemblance to an &quot;original&quot; object, but<br>
&gt; there can be no clear assertion of accuracy in the work.  At the start,<br>
&gt; there are some distortions due to fixing and microtome sectioning of the<br>
&gt; samples.  In an ideal world, each section would be a composition of the<br>
&gt; object of interest with a microscopic or nanoscopic grid that would provide<br>
&gt; a measure for these distortions.  The use of a deformation registration is a<br>
&gt; poor attempt to &quot;undo&quot; these deformations.  Of course, it assumes we begin<br>
&gt; with an object that has no deformations and that&#39;s just not possible in this<br>
&gt; project.<br>
&gt;<br>
&gt; Even if the input data had perfect mapping to the original object of<br>
&gt; interest, the image processing would introduce some artifacts that propagate<br>
&gt; through the series.  The order of the Bspline deformation is low (3) in an<br>
&gt; attempt to limit the deformations.<br>
&gt;<br>
&gt; It might be ideal to constrain the alignment process within a short subset<br>
&gt; of the image series (maybe 3, 5, 7, or 9 images), with some kind of &quot;sliding<br>
&gt; window&quot; to move through the entire series (where the slide would involve<br>
&gt; some degree of window overlap).  This may not be a strictly pair-wise image<br>
&gt; registration process (it may be an N-way registration) and it might occur<br>
&gt; best in a 3D method that was able to maintain a translation between<br>
&gt; consecutive images to maintain their separation in 3D space (the<br>
&gt; z-spacing).  AFAIK, this &quot;ambiguous&quot; registration method is outside the<br>
&gt; design parameters of ITK (where registration puts any TWO images into the<br>
&gt; &quot;same&quot; space).<br>
&gt;<br>
&gt; Any suggestions on how to do some kind of &quot;sliding&quot; window registration<br>
&gt; would be wondeful.<br>
&gt;<br>
&gt; Take care,<br>
&gt; Darren<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Oct 20, 2009 at 4:51 PM, Kishore Mosaliganti &lt;<a href="mailto:kishoreraom@gmail.com">kishoreraom@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; From some previous experience on working on a similar problem. I<br>
&gt;&gt; observed that if you compose transforms, you might observe artifacts<br>
&gt;&gt; such as torsional twisting of geometry.<br>
&gt;&gt;<br>
&gt;&gt; This torsional twist happens due to the geometry of the image object<br>
&gt;&gt; in 3D from which two consecutive slices of a 3D object are drawn. The<br>
&gt;&gt; slices hold slightly different geometries that cause a very small<br>
&gt;&gt; rotation. This rotation bias builds up as you compose.<br>
&gt;&gt;<br>
&gt;&gt; Kishore<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Oct 15, 2009 at 5:20 PM, Darren Weber<br>
&gt;&gt; &lt;<a href="mailto:darren.weber.lists@gmail.com">darren.weber.lists@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We have a series of several thousand 2D microscope images:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; img0001 ... imgN<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; A simple ITK program uses itkImageSeriesReader to stack the sequential<br>
&gt;&gt; &gt; images into a 3D volume for output to a .vtk file.  Without any<br>
&gt;&gt; &gt; coregistration of the image series, the result is a mess (as expected).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Another ITK program runs registration algorithm(s) on consecutive pairs<br>
&gt;&gt; &gt; of<br>
&gt;&gt; &gt; images in the 2D image series (each pair of images is registered<br>
&gt;&gt; &gt; independently of any other images in the series).  It outputs a<br>
&gt;&gt; &gt; transform<br>
&gt;&gt; &gt; file for each image registration, using file names something like:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; img0002to0001.xfm<br>
&gt;&gt; &gt; img0003to0002.xfm<br>
&gt;&gt; &gt; etc.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What is an efficient way to combine and apply these transforms using an<br>
&gt;&gt; &gt; ITK<br>
&gt;&gt; &gt; pipeline to &#39;concatenate&#39; the image series into a 3D stack?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; My conception of how this might work, in outline, is:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; a)  begin with img0001<br>
&gt;&gt; &gt; apply transform: none<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; b) add img0002 to the stack<br>
&gt;&gt; &gt; apply transform: img0002to0001.xfm<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; c) add img0003 to the stack<br>
&gt;&gt; &gt; apply transform: img0002to0001.xfm<br>
&gt;&gt; &gt; apply transform: img0003to0002.xfm<br>
&gt;&gt; &gt; (How to concatenate transforms without resampling image data?)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; d) add img0004 to the stack<br>
&gt;&gt; &gt; apply transform: img0002to0001.xfm<br>
&gt;&gt; &gt; apply transform: img0003to0002.xfm<br>
&gt;&gt; &gt; apply transform: img0004to0003.xfm<br>
&gt;&gt; &gt; (How to concatenate transforms without resampling image data?)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; etc.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; In this conception of the problem, the pair-wise registration transforms<br>
&gt;&gt; &gt; are<br>
&gt;&gt; &gt; &#39;concatenated&#39; to propagate the registration through the entire series.<br>
&gt;&gt; &gt; What is the most efficient way to do that in ITK?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is it possible (or reasonable) to associate a transform object (or file)<br>
&gt;&gt; &gt; with each &#39;element&#39; of an itkImageSeriesReader?  If not, is there<br>
&gt;&gt; &gt; another<br>
&gt;&gt; &gt; convention for creating an ITK filter pipeline or registration pipeline?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; TIA and take care,<br>
&gt;&gt; &gt; Darren<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _____________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>