<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Change this line <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:blue'>float</span><span style='font-size:9.0pt;font-family:"Courier New"'>
spacing[3] = {12.82, 12.82, 30}; <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>to<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>ImageType::SpacingType
spacing;<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>spacing[0]
= 12.82;<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>spacing[1]
= 12.82;<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>spacing[2]
= 30;<o:p></o:p></span></p>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
insight-users-bounces@itk.org [mailto:insight-users-bounces@itk.org] <b>On
Behalf Of </b>shoosh moosh<br>
<b>Sent:</b> Thursday, August 27, 2009 9:09 AM<br>
<b>To:</b> bill.lorensen@gmail.com<br>
<b>Cc:</b> insight-users@itk.org<br>
<b>Subject:</b> Re: [Insight-users] FW: spacing<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>I still got this error and the new file is
attached<br>
<br>
/home/shoosh/Desktop/BlockFaceVolume/ImageSeriesReadWrite.cxx: In function
‘int main(int, char**)’:<br>
/home/shoosh/Desktop/BlockFaceVolume/ImageSeriesReadWrite.cxx:88: error: no
matching function for call to
‘itk::ChangeInformationImageFilter<itk::Image<unsigned char, 3u>
>::SetOutputSpacing(float [3])’<br>
/home/shoosh/InsightToolkit-3.10.2/Code/BasicFilters/itkChangeInformationImageFilter.h:114:
note: candidates are: void
itk::ChangeInformationImageFilter<TInputImage>::SetOutputSpacing(typename
TInputImage::SpacingType) [with TInputImage = itk::Image<unsigned char,
3u>]<br>
make[2]: *** [CMakeFiles/ImageSeriesReadWrite.dir/ImageSeriesReadWrite.o] Error
1<br>
make[1]: *** [CMakeFiles/ImageSeriesReadWrite.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
<br>
<br>
> Date: Wed, 26 Aug 2009 18:32:44 -0400<br>
> Subject: Re: [Insight-users] FW: spacing<br>
> From: bil l.lorensen@gmail.com<br>
> To: babygirl_25@hotmail.com<br>
> CC: insight-users@itk.org<br>
> <br>
> To change the spacing for an image use itkChangeInformationImageFilter<br>
> in your pipeline between the read and writer.<br>
> <br>
> <br>
> 2009/8/26 shoosh moosh <babygirl_25@hotmail.com>:<br>
> ><br>
> > Hi I'm trying to write an 3D image but I want to change the spacing
before I<br>
> > do so. I'm getting this error:<br>
> ><br>
> > /home/shoosh/Desktop/PROG/ImageSeriesReadWrite.cxx:84: error: invalid
use of<br>
> > void expression<br>
> ><br>
> > How can I set the spacing before the writing process without getting
this<br>
> > error?<br>
> > The file is attached. Thanks<br>
> ><br>
> ><br>
> > ________________________________<br>
> > See all the ways you can stay connected to friends and family<br>
> > _____________________________________<br>
> > Powered by www.kitware .com<br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > http://www.kitware.com/opensource/opensource.html<br>
> ><br>
> > Please keep messages on-topic and check the ITK FAQ at:<br>
> > http://www.itk.org/Wiki/ITK_FAQ<br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > http://www.itk.org/mailman/listinfo/insight-users<br>
> ><br>
> ><o:p></o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>See
all the ways you can stay connected <a
href="http://www.microsoft.com/windows/windowslive/default.aspx" target="_new">to
friends and family</a><o:p></o:p></span></p>
</div>
</body>
</html>