<html><div style='background-color:'><BR>hello
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">I am working in an application that reads volumenes thus I want to occupy to vtkVolumeReader to read them but when initializing I have a problem with vtkVolumeReader.</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">I have a problem with vtkVolumeReader, to I want to read a volume with it but when inicilizar it it says to me that a conversion of * vtkObject cannot be made in * vtkVolumeReader.</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">help me.</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">#include "vtkPolyDataMapper.h"<BR>#include "vtkActor.h"<BR>#include "vtkRenderer.h"<BR>#include "vtkRenderWindow.h"<BR>#include "vtkRenderWindowInteractor.h"<BR>#include "vtkProperty.h"<BR>#include "vtkCamera.h"<BR>#include "vtkContourFilter.h"<BR>#include "vtkVolumeReader.h"<BR>#include "vtkPolyDataNormals.h"</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">int main (int argc, char **argv)<BR>{</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">vtkRenderer *aRenderer = vtkRenderer::New();<BR>vtkRenderWindow *renWin = vtkRenderWindow::New();<BR> renWin->AddRenderer(aRenderer);<BR>vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<BR> iren->SetRenderWindow(renWin);</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">vtkVolumeReader *v16 = vtkVolumeReader::New(); <BR> v16->SetDataDimensions(64,64); <BR> v16->SetImageRange (1,217) <BR> v16->SetDataByteOrderToLittleEndian();<BR> v16->SetFilePrefix("brain");<BR> v16->SetDataSpacing (3.5,3.5,1.2);<BR> v16->Update();</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"> vtkContourFilter *skinExtractors = vtkContourFilter::New();<BR> skinExtractors->SetInput((vtkDataSet *) v16->GetOutput());<BR> skinExtractors->SetValue(0, 500);<BR> vtkPolyDataNormals *skinNormals = vtkPolyDataNormals::New();<BR> skinNormals->SetInput(skinExtractors->GetOutput());<BR> skinNormals->SetFeatureAngle(60.0);<BR> vtkPolyDataMapper *skinMapper = vtkPolyDataMapper::New();<BR> skinMapper->SetInput(skinNormals->GetOutput());<BR> skinMapper->ScalarVisibilityOff();<BR> vtkActor *skin = vtkActor::New();<BR> skin->SetMapper(skinMapper);</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"> aRenderer->AddActor(skin);<BR> aRenderer->SetActiveCamera(aCamera);<BR> aRenderer->ResetCamera ();<BR> aCamera->Dolly(1.5); </P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"><BR> aRenderer->SetBackground(1,1,1);<BR> renWin->SetSize(640, 480);</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"><BR> aRenderer->ResetCameraClippingRange ();</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"> iren->Initialize();<BR> iren->Start();</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"><BR> v16->Delete();<BR> skinExtractors->Delete();<BR> skinNormals->Delete();<BR> skinMapper->Delete();<BR> skin->Delete();<BR> aCamera->Delete();<BR> iren->Delete();<BR> renWin->Delete();<BR> aRenderer->Delete();</P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"> return 0;<BR>}<BR></P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"></P>
<P style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px">vtkVolumereader *vol = vtkVolumeReader::New();</P><BR><BR>
<DIV>
<P>"<IMG height=19 src="http://graphics.hotmail.com/i.p.emsmiled.gif" width=19>Ganar no es solo vencer al enemigo</P>
<P> sino vencerse a si mismo <IMG height=19 src="http://graphics.hotmail.com/i.p.emsmiled.gif" width=19>"</P></DIV></div><br clear=all><hr>T1msn Fotos: Todo lo que quieres saber sobre fotografía digital <a href="http://g.msn.com/8HMBESMX/2749??PS=47575" target="_top">Haz clic aquí </a> </html>