<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Melanie,<br>
<br>
Try to replace this:<br>
<blockquote
cite="mid:CAEdz292Xe8oN+SZE=g6yHmUDjfsiFeoi0=YbBXYR0xiTukA5+A@mail.gmail.com"
type="cite"> extractFilter->Update(); <br>
outimage = extractFilter->GetOutput();<br>
ImageType::Pointer *kimg = (ImageType::Pointer *)pimg;<br>
<b style="color: rgb(255, 0, 0);"> kimg =
outimage.GetPointer();</b> <b> //NOT WORKING</b><br>
</blockquote>
by:<br>
extractFilter->Update(); <br>
ImageType::Pointer *kimg = (ImageType::Pointer *)pimg;<br>
*kimg = extractFilter->GetOutput();<br>
<br>
I pasted there:<br>
<a
href="http://www.itk.org/pipermail/insight-users/2012-January/043503.html">http://www.itk.org/pipermail/insight-users/2012-January/043503.html</a><br>
some code I had an issue with. The passing/returning an image part
was not the issue, so you can have a look at it.<br>
<br>
Kind regards,<br>
<br>
Kevin<br>
</body>
</html>