<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Bob,<br>
<br>
You can do this using itk filters in the following order:<br>
<br>
1. Use an itk::HistogramMatchingImageFilter to do histogram
equalization.<br>
2. Use an itk::ResampleImageFilter to map one volume spatially to
the other.<br>
3. Use an itk::AddImageFilter to add the result of Step 2.<br>
4. Use an itk::MultiplyByConstantImageFilter on the result of Step
3 to create the average (there may be a filter that combines Steps
3 and 4).<br>
<br>
Siavash<br>
<br>
On 17/09/2013 10:46 AM, Christopher Mullins wrote:<br>
</div>
<blockquote
cite="mid:CABVTP-+dLktrBV2Z+2AvkjU6uDxH8Md+_7T1XKyqos=ZjnQuBw@mail.gmail.com"
type="cite">
<div dir="ltr">Check out the TubeTK MergeAdjacentImages
application [1]. Looks like this will do several of the tasks
you're looking for, and it's built on top of ITK.
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://github.com/TubeTK/TubeTK/tree/master/Applications/MergeAdjacentImages">https://github.com/TubeTK/TubeTK/tree/master/Applications/MergeAdjacentImages</a></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Sep 17, 2013 at 1:41 PM, Robert
Manzke <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:paradenker@gmail.com" target="_blank">paradenker@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span
style="font-family:arial,sans-serif;font-size:13px">Hi, </span>
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I
want to create one single volume from two .mhd files. </div>
<div style="font-family:arial,sans-serif;font-size:13px">I
also have a 4x4 transformation matrix which maps one
volume into another.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
So basically, I need an interpolator and a merge
function, i.e. average volume 1 and 2, to create a
single volume.</div>
<div style="font-family:arial,sans-serif;font-size:13px">The
single volume will have a larger size than the two
individual ones, if the transform is not identity.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">It
can happen that both images have different gray level
histograms, so histogram matching before fusion is also
desirable.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Can
anyone lead me into the right direction how to do this
with itk?</div>
<div style="font-family:arial,sans-serif;font-size:13px">
I would volunteer to post my final code for a small
how-to, once it works.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Thanks,</div>
<div style="font-family:arial,sans-serif;font-size:13px">
Bob</div>
</div>
<br>
_____________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information
visit:<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/products/protraining.php"
target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/mailman/listinfo/insight-users"
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Christopher Mullins
<div>R&D Engineer</div>
<div>Kitware Inc.,</div>
<div>919.869.8871</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
PhD Candidate
Robotics and Control Laboratory, Room 3090
Electrical and Computer Engineering, UBC
2332 Main Mall, Vancouver, BC, Canada, V6T 1Z4
<a class="moz-txt-link-abbreviated" href="http://www.ece.ubc.ca/~siavashk/">www.ece.ubc.ca/~siavashk/</a>
Tel: (604)822-9215</pre>
</body>
</html>