<div dir="ltr"><div><div><div>Hi Shirani,<br></div>if you suspect that there is some issues with your image you can try opening it with Paraview. If Paraview is able to open it and show it correctly, then the error is elsewhere in your program.<br>
<br></div>Haven't used vktImageReader2, but from the examples:<br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/ImageProcessing/Cxx/ImageSlicing.cxx?root=VTK&content-type=text/plain">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/ImageProcessing/Cxx/ImageSlicing.cxx?root=VTK&content-type=text/plain</a><br>
<br>it looks like it's you who should set/tell the reader about the image properties.<br><br></div>HTH,<br>JON HAITZ<br><br></div><div class="gmail_extra"><br clear="all"><div><table border="0" cellpadding="0" cellspacing="0" align="center">
<tbody><tr><td><table style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9" border="0" cellpadding="0" width="100%"><tbody><tr><td style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#ffffff">
<div align="left"><a href="http://www.vicomtech.org/" target="_blank"><img src="http://www.vicomtech.es/firmas/html/logovicomtech_150.png" longdesc="http://Visual+Interaction+Communication+Technologies" border="0" height="150" width="211"></a></div>
</td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><div align="center"><img src="http://www.vicomtech.es/firmas/html/barraSinFondo_150.png" border="0" height="150" width="10"></div>
</td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tbody><tr><td><table border="0" cellpadding="0" align="center">
<tbody><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif;font-weight:bold">Jon Haitz Legarreta Gorroño</span></td></tr><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">Ikertzailea / Investigador / Researcher</span></td>
</tr><tr><td>
<span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">
eOsasuna eta Aplikazio Biomedikoak / eSalud y Aplicaciones Biomedicas / eHealth & Biomedical Applications
</span>
</td></tr><tr><td><table border="0" cellpadding="0" width="100%" align="left"><tbody><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.es/castellano/html/contacto/index.html" target="_blank">Donostia - San Sebastián - Spain</a></span></td>
<td rowspan="3" style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9" align="right"><div align="right"><a href="http://www.vicomtech.org/" target="_blank"><img src="http://www.vicomtech.es/firmas/html/ojo.png" longdesc="http://Visual+Interaction+Communication+Technologies+-+IK4+Research+Alliance" border="0" height="74" width="104"></a></div>
</td></tr><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">Tel: +[34] 943 30 92 30</span></td></tr><tr><td><span style="font-size:10px;color:blue;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a></span></td>
</tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><div align="center"><img src="http://www.vicomtech.es/firmas/html/barraSinFondo_150.png" border="0" height="150" width="10"></div>
</td><td style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#ffffff"><div align="left"><img src="http://www.vicomtech.es/firmas/html/GraphicsMediaNet-IK4_150.png" longdesc="http://International+Network+for+the+Cooperation+in+Applied+Research+in+Computer+Graphics,+Multimoda-Multimedia+Technologies+and+Visual+Interactive+Digital+Media+Technologies+-+IK4+Research+Alliance" usemap="#SafeHtmlFilter_graphicsmedia-ik4" border="0" height="150" width="211"><map name="SafeHtmlFilter_graphicsmedia-ik4"><area shape="rect" coords="0,0,211,75" href="http://www.ik4.es" target="_blank"><area shape="rect" coords="0,75,211,150" href="http://www.graphicsmedia.net/" target="_blank"></map></div>
</td></tr></tbody></table></td></tr><tr><td><table border="0" cellpadding="0" align="center"><tbody><tr><td><span style="font-size:10px;color:gray;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.es/castellano/html/informacion_legal/index.html" style="color:gray" target="_blank">Aviso Legal - Política de privacidad</a> / <a href="http://www.vicomtech.es/euskera/html/informacion_legal/index.html" style="color:gray" target="_blank">Lege Oharra - Pribatutasun politika</a> / <a href="http://www.vicomtech.es/ingles/html/informacion_legal/index.html" style="color:gray" target="_blank">Legal Notice - Privacy policy</a></span></td>
</tr></tbody></table></td></tr></tbody></table></div>
<br><br><div class="gmail_quote">On 24 January 2013 08:59, shirani kannangara <span dir="ltr"><<a href="mailto:mangalika673@gmail.com" target="_blank">mangalika673@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">Hi Craig</span><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif"><br></div><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">
Thanks for your reply.Program was built with zero errors.The command window shows <span style="color:rgb(255,102,102)">Dims: x:1 y:1 z:1 </span> as the output .</div><div style="font-size:13px;font-family:arial,sans-serif">
<span style="color:rgb(34,34,34)"><br></span></div><div style="font-size:13px;font-family:arial,sans-serif"><span style="color:rgb(34,34,34)">But according to the image information x,y,z dimensions are</span></div><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">
x:675</div><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">y:401</div><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">z:450</div><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">
I need them to be displayed in the command window.</div><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">Is there anything missing in my codes or imagereader2 does not work properly.Can you please show me wheer I have done wrong.</div>
<div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">Regards</div><span class="HOEnZb"><font color="#888888"><div style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif">Shirani</div>
</font></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>