[vtkusers] vtkImageToStructuredPoints

Dominik Szczerba domi at vision.ee.ethz.ch
Fri Jan 18 11:55:25 EST 2008


Hi,

vtkImageToStructuredPoints is supposed to generate StructuredPoints on output 
but requesting it via
	vtkNew(vtkXMLImageDataReader,reader);
	//...
	reader->Update();
	vtkNew(vtkImageToStructuredPoints, i2s);
	i2s->SetInputConnection(reader->GetOutputPort());
	vtkStructuredPoints* cgrid = i2s->GetOutput();

produces the

error: invalid conversion from ‘vtkImageData*’ to ‘vtkStructuredPoints*’

about the last line. Why is the output of type ImageData?

regards, Dominik

-- 

Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list