<div dir="ltr">What do you mean by "is wrong"? Are the returned values in the orignalDims array incorrect or do you have a compilation error?<br><br>If the returned dimensions are incorrect, please provide an image example, what are expected dimensions and what are the one returned by GetDimensions?<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, Technical Expert</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div>
<br><div class="gmail_quote">2015-07-27 14:55 GMT+02:00 段辉宏 <span dir="ltr"><<a href="mailto:EVENDUAN@outlook.com" target="_blank">EVENDUAN@outlook.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="ZH-CN"><div><p class="MsoNormal"><span lang="EN-US">My vtk version is 6.2 and I want to get the dimensions of a picture. Following is a part of my code:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal" style="text-align:left;text-autospace:none" align="left"><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> <span style="color:blue">vtkSmartPointer</span><<span style="color:blue">vtkBMPReader</span>> <span style="color:navy">reader</span> =<u></u><u></u></span></p><p class="MsoNormal" style="text-align:left;text-autospace:none" align="left"><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> <span style="color:blue">vtkSmartPointer</span><<span style="color:blue">vtkBMPReader</span>>::<span style="color:#880000">New</span>();<u></u><u></u></span></p><p class="MsoNormal" style="text-align:left;text-autospace:none" align="left"><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> <span style="color:navy">reader</span>-><span style="color:#880000">SetFileName</span>( <span style="color:navy">argv</span>[1]);<u></u><u></u></span></p><p class="MsoNormal" style="text-align:left;text-autospace:none" align="left"><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> <span style="color:navy">reader</span>-><span style="color:#880000">Update</span>();<u></u><u></u></span></p><p class="MsoNormal" style="text-align:left;text-autospace:none" align="left"><span style="font-size:15.0pt;font-family:新宋体;color:blue" lang="EN-US">int</span><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> <span style="color:navy">originalDims</span>[3];<u></u><u></u></span></p><p class="MsoNormal" style="text-align:left;text-autospace:none" align="left"><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> <span style="color:navy">reader</span>-><span style="color:#880000">GetOutput</span>()->GetDimensions(<span style="color:navy">originalDims</span>);<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">The last code:</span><span style="font-size:15.0pt;font-family:新宋体;color:navy" lang="EN-US"> </span><span style="font-size:15.0pt;color:navy" lang="EN-US">“</span><span style="font-size:15.0pt;font-family:新宋体;color:navy" lang="EN-US">reader</span><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US">-><span style="color:#880000">GetOutput</span>()->GetDimensions(<span style="color:navy">originalDims</span>)</span><span style="font-size:15.0pt" lang="EN-US">”</span><span style="font-size:15.0pt;font-family:新宋体" lang="EN-US"> is wrong. Where is the problem?</span><span lang="EN-US"><u></u><u></u></span></p></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>