<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>I am trying to do <div><br><div><div> igstk::Friends::ImageReaderToImageSpatialObject::ConnectImage( m_MhdImageReader, </div><div><span class="Apple-tab-span" style="white-space:pre">       </span>  m_ImageSpatialObject.GetPointer());</div><div><br></div><div>and came with the following error.</div><div><br></div><div>error C2784: 'void igstk::Friends::ImageReaderToImageSpatialObject::ConnectImage(const TReader *,TImageSpatialObject *)' : could not deduce template argument for 'const TReader *' from 'itk::SmartPointer<TObjectType>'</div><div><br></div><div>What did I do wrong? Thanks.</div><div><br></div><div><hr id="stopSpelling">From: kevinseanlee@live.com<br>To: igstk-users@public.kitware.com<br>Subject: itk::ImageFileReader to igstk::ImageSpatialObject<br>Date: Thu, 19 Jun 2014 11:52:21 -0500<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr"><font size="3">I read image file through itk::ImageFileReader (mhd) and then try to put it into igstk::ImageSpatialObject. How to do it? Thanks.</font>                                         </div></div></div></div>                                        </div></body>
</html>