<DIV>Hi,</DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">I'm trying unsuccessfully to plot a slice of a volume. I read properly the image but I get nothing at the connector output. Maybe somebody can help…<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">Thank you,<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-US">Carmen<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-ansi-language: EN-US"><o:p><FONT face="Times New Roman" size=3> </FONT></o:p></SPAN></P></DIV>
<DIV><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>char</FONT><FONT size=2> myPixelType;</DIV>
<DIV>
<P></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::Image< myPixelType, 3 > ImageType;</P>
<P></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::ImageFileReader< ImageType > ReaderType;</P>
<P></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2> itk::ImageToVTKImageFilter< ImageType > ConnectorFilterType;</P>
<P>ReaderType::Pointer reader = ReaderType::New();</P>
<P>ConnectorFilterType::Pointer connector = ConnectorFilterType::New();</P>
<P>reader->SetFileName( "liver323seg.hdr" );</P>
<P>reader->Update();</P>
<P>reader->GetOutput()->Print(std::cout);</P>
<P>connector->SetInput( reader->GetOutput() );</P>
<P>connector->Update();</P>
<P>connector->GetOutput()->Print(std::cout);</P>
<P>vtkImageViewer * viewer =vtkImageViewer::New();</P>
<P>vtkRenderWindowInteractor * renderWindowInteractor = vtkRenderWindowInteractor::New();</P>
<P>viewer->SetupInteractor( renderWindowInteractor );</P>
<P>viewer->SetInput( connector->GetOutput() );</P>
<P>viewer->SetZSlice( 50 ); </FONT><FONT color=#008000 size=2>// <-- Slice selection</P></FONT><FONT size=2>
<P>renderWindowInteractor->Start();</P>
<P></P></FONT></DIV><p>
                <hr size=1><br><table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail/image/*http://es.mail.yahoo.com"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/mails.gif" height=80 width=230 alt="Nuevo Correo Yahoo!" border=0 align="left"></a></td></tr></table>