<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
Is there a way to use some existing code to handle <tt>nifticlib</tt>
<tt>nifti_image</tt> objects in memory from within ITK, essentially
treating them as instances of <tt>ITK::Image</tt>?<br>
<br>
I've been given the task of interfacing some ITK(-based) code with
some non-ITK(-based) code. The non-ITK code uses <tt>nifticlib
nifti_image</tt> objects to represent image data. We would like
the ITK code to manipulate this image data (in memory, without
writing the images to disk each time - otherwise we could just use
ITK's reader for NIFTI images).<br>
<br>
I found the <a
href="http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf"><em>Getting
Started V: Integrating ITK in your Application</em></a> slides
very helpful: they seem to describe quite well how to pass image
data between ITK and non-ITK code. However, the image orientation
and other meta-data will need to be handled more or less manually,
in general.<br>
<br>
However, it looks like much of this same work is done by the <tt>itk::NiftiImageIO</tt>
object, using <tt>nifticlib</tt> to read NIFTI images from disk,
then turning the resulting <tt>nifti_image</tt> into an <tt>ITK::Image</tt>.
However, I don't know how easy it would be to re-use this code in a
sustainable way.<br>
<br>
Thanks in advance,<br>
Ben <br>
<pre class="moz-signature" cols="72">--
EngD Doctoral Student
Centre for Medical Image Computing
University College London
Room 3.01 Engineering Front Building
Malet Place
London WC1E 7JE
United Kingdom
</pre>
</body>
</html>