[vtk-developers] Wiki Examples - commited a fix

David Doria daviddoria+vtk at gmail.com
Mon Dec 21 14:57:40 EST 2009


On Mon, Dec 21, 2009 at 12:31 PM, Dean Inglis <dean.inglis at camris.ca> wrote:
> Hi All,
>
> Im new to wiki, but I did figure how to upload a fix to the list
> of broken examples (visually compare two images with vtkimagecheckerboard)
> and then place the link from broken examples to Working with images.
> The only thing I couldnt figure out was how to remove the line
> above the code for Checkerboard.cxx that says the example is broken..
> a little help?  BTW, I think the recent examples initiative is excellent!
>
> thanks,
> Dean

Dean,

First of all, thanks for contributing! This type of effort is what
will make this examples section really thrive! In the future, the
users list (rather than the developers list) is probably a better
place for this conversation.

So it looks like what I was missing was the SetNumberOfDivisions call?
It seems like there should be some default that would have happened
without that call rather than segfaulting?

Also, I believe we need to leave the Update() calls after the readers:
jPEGReader1->SetFileName ( inputFilename1.c_str() );
jPEGReader1->Update();

to ensure the data is actually read before it is used.

To edit the description text (where it says "this is currently
broken...") - use the "Edit" tab at the top of the page. I went ahead
and did it for this one:
http://www.cmake.org/Wiki/VTK/Examples/Visually_Compare_Two_Images

Thanks again - and keep up the good work!

David



More information about the vtk-developers mailing list