[vtkusers] Checkerbaord problem (bug?)

Lodron, Gerald Gerald.Lodron at joanneum.at
Wed Oct 21 05:57:27 EDT 2009


Hi

I want to compare two images using the vtkImageCheckerboard function. The problem is that i have two images of odd size (512x512x80 and 512x512x60). The strange thing is:

When I use


m_Checkerboard->SetInput(0, vtkImage1);//bigger image

m_Checkerboard->SetInput(1, vtkImage2); //smaller image

i get a null pointer exception (after Update()), when i use

m_Checkerboard->SetInput(0, vtkImage2);//smaler image

m_Checkerboard->SetInput(1, vtkImage1); //bigger image

it works. Is there a function/method to scale one image to the size of the second image so that the process works for arbitrary images to compare?

best regards,

Gerald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091021/c947f669/attachment.htm>


More information about the vtkusers mailing list