[vtkusers] 3D image as N cubes
Francisco Lopez de la Franca
franciscolopezdelafranca at gmail.com
Wed Jun 3 08:48:04 EDT 2015
I've created an example (see below) but everything is OK except that the
output image is not created. I'd be very pleased if someone can help me
(maybe with an explanatory example or whatever).
char* filename = new char;
vtkSmartPointer<vtkNIFTIImageReader> reader =
//Create the octree
vtkSmartPointer<vtkOctreePointLocator> octree =
std::cout << "Number of cells in tree: " <<
octree->GetDataSet()->GetNumberOfCells() << std::endl;
std::cout << "Number of points in tree: " <<
octree->GetDataSet()->GetNumberOfPoints() << std::endl;
char* outfile = new char;
vtkSmartPointer<vtkXMLPolyDataWriter> writer =
2015-05-29 12:40 GMT+02:00 Francisco Lopez de la Franca <
franciscolopezdelafranca at gmail.com>:
> Hi everybody,
> I'd like to represent a 3D image as a fixed number of cubes, I mean,
> something like a spatial occupancy matrix in 3D.
> Could you, please, recommend me a fast way to do it or does it exist a
> data structure in VTK to achieve this?
> I've found the OcTree structure but I donot know if it is valid for this.
> Thank you very much.
> My best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers