[Insight-users] itkVTKtoITKtoVTK example

Renaud Winzenrieth renaud . winzenrieth at utc . fr
Thu, 25 Jul 2002 11:14:45 +0200


--------------040300060309010204070308
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


Hi ,
I can execute correctly the itkVTKtoITKtoVTK example but when I change :

vtkImageNoiseSource* source = vtkImageNoiseSource::New();
  source->SetWholeExtent(0, 255, 0, 255, 0, 0);
  source->SetMinimum(0);
  source->SetMaximum(1);
by
  vtkJPEGReader * source = vtkJPEGReader::New();
  source->SetFileName("D:/renaud/These/Images/TE_00011.jpg");
(for example)
I obtain an unhandled execption (kernel32.dll) due to the RENDER 
function (renwin->Render()).
Anybody can help me?

Thank in advance,
    renaud

--------------040300060309010204070308
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
<br>
Hi ,<br>
I can execute correctly the itkVTKtoITKtoVTK example but when I change :<br>
<br>
<font color="#cc66cc">vtkImageNoiseSource* source = vtkImageNoiseSource::New();<br>
&nbsp; source-&gt;SetWholeExtent(0, 255, 0, 255, 0, 0);<br>
&nbsp; source-&gt;SetMinimum(0);<br>
&nbsp; source-&gt;SetMaximum(1);</font><br>
by<br>
<font color="#6633ff">&nbsp; vtkJPEGReader * source = vtkJPEGReader::New();<br>
&nbsp; source-&gt;SetFileName("D:/renaud/These/Images/TE_00011.jpg");</font><br>
(for example)<br>
I obtain an unhandled execption (kernel32.dll) due to the RENDER function
(renwin-&gt;Render()).<br>
<font face="Arial" size="2">Anybody </font>can help me?<br>
<br>
Thank in advance,<br>
&nbsp;&nbsp;&nbsp; renaud<br>
</body>
</html>

--------------040300060309010204070308--