<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><div>Where is the object null? Right after the call <span style="color: rgb(34, 34, 34); font-family: Helvetica, Arial, sans-serif; line-height: 18px;"> vtkCleanPolyData removepoints = new vtkCleanPolyData(); ??</span></div>
<div> </div>
<div>
<div>Mark DeArman</div>
<div>Cascade Acoustic Research</div>
<div>http://www.cascadeacoustic.com</div>
<div>(253) 200-5353</div>
</div>
<div> </div>
<hr align="center" size="2" width="100%" />
<div><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Matias Montroull" <matimontg@gmail.com><br />
<b>Sent</b>: Thursday, September 24, 2015 7:18 PM<br />
<b>To</b>: "vtkusers@vtk.org" <vtkusers@vtk.org><br />
<b>Subject</b>: [vtkusers] Volume Rendering Problem in ActiViz 6.2</span>
<div> </div>
<div dir="ltr">Hi,
<div> </div>
<div>I was using ActiVIz 5.8 and this code below was working just fine:</div>
<div>Now, I've installed the 6.2 version and the vtkCleanPolyData object is null for some reason..</div>
<div>Has anything changed in Volume reconstruction from a Dicom Series from version to version?</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>
<div> vtkDICOMImageReader readerdicom = new vtkDICOMImageReader();</div>
<div> readerdicom.SetDirectoryName(path_directorio_imagenes_originales);</div>
<div> double origen_X = -pixelspacing_X * (img[0].Width) / 2;</div>
<div> double origen_Y = -pixelspacing_Y * (img[0].Height) / 2;</div>
<div> readerdicom.SetDataOrigin(origen_X, origen_Y, -Z_max);</div>
<div> readerdicom.Update();</div>
<div> </div>
<div> //Filtro para dar vuelta la imagen</div>
<div> vtkImageReslice reslice = new vtkImageReslice();</div>
<div> reslice.SetResliceAxesDirectionCosines(-1, 0, 0, 0, 1, 0, 0, 0, -1);</div>
<div> reslice.SetInputConnection(readerdicom.GetOutputPort());</div>
<div> reslice.Update();</div>
<div> </div>
<div> //Filtro para extraer la piel (por ISOValue)</div>
<div> vtkMarchingCubes skinextractor = vtkMarchingCubes.New();</div>
<div> skinextractor.SetInputConnection(reslice.GetOutputPort());</div>
<div> skinextractor.SetValue(1, umbral);</div>
<div> </div>
<div> //Filtro para quedarnos solamente con el contorno (visual)</div>
<div> vtkPolyDataConnectivityFilter contornos = new vtkPolyDataConnectivityFilter();</div>
<div> contornos.SetInputConnection(skinextractor.GetOutputPort());</div>
<div> contornos.SetExtractionModeToLargestRegion();</div>
<div> contornos.SetColorRegions(1);</div>
<div> </div>
<div> //Filtro para remover los puntos que no son del contorno y guardarlos en la instancia POIs_3D</div>
<div> vtkCleanPolyData removepoints = new vtkCleanPolyData();</div>
<div> removepoints.SetInputData(contornos.GetOutput());</div>
<div> removepoints.Update();</div>
<div> vtkPoints puntos_contorno = new vtkPoints();</div>
<div> puntos_contorno = removepoints.GetOutput().GetPoints();</div>
</div>
</div>
<div dir="ltr">--</div>
<div dir="ltr">Matias</div>
</div></span>