[Insight-developers] Compare text (vtk) files

Luis Ibanez luis.ibanez at kitware.com
Tue Jul 13 18:50:56 EDT 2010


Yes,
there are some Mesh comparison functions
available in the NAMIC Sandbox:


http://svn.na-mic.org/NAMICSandBox/trunk/QuadEdgeMeshSphericalDiffeomorphicDemonsRegistration/Source/

Several of them were implemented by Wen Liu
from the University of Iowa.

Note that most of them are in the context
of a Mesh to Mesh registration, so Transforms
and Deformation fields may be involved.



      Luis


----------------------------------------------------------------------
On Mon, Jul 12, 2010 at 11:27 AM, Stephen Aylward <
stephen.aylward at kitware.com> wrote:

> I think Luis has written something like this for a project...compare
> two meshes...
>
> Luis?
>
> s
>
> On Mon, Jul 12, 2010 at 11:10 AM, kent williams
> <norman-k-williams at uiowa.edu> wrote:
> > I think it would be worthwhile to actually compare the data that matters
> --
> > traverse the geometric topology and compare points relative to an epsilon
> --
> > e.g. the distance between two points that should be the same, divided by
> the
> > volume of the bounding box of the geometry.
> >
> > In other words, you want two meshs to be the same, but you want to allow
> for
> > slight numerical differences that might creep in on slightly different
> > platforms.
> >
> > This isn't a huge program to write.  You have to know enough about the
> > organization of mesh data structures to make meaningful comparisons, but
> if
> > you're writing new code to generate meshes you are probably more
> > knowledgeable than I am about the subject.
> >
> > It also might be generally useful for exactly this sort of regression
> > testing for other mesh-based code.
> >
> > On 7/11/10 10:05 AM, "Dan Mueller" <dan.muel at gmail.com> wrote:
> >
> >> Thanks for your prompt responses! I made all the screenshots for the
> >> article using paraview :P
> >>
> >> I was looking for something a little more automated to validate the
> >> output. I mean, if I make a change to the code, the only way I can
> >> verify the change is to open the 20+ vtk output files one by one in
> >> paraview. That will have to do for now I guess.
> >>
> >> Regards, Dan
> >>
> >> On 11 July 2010 16:57, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> >>> You should at least see if it loads into paraview...
> >>>
> >>>
> >>> On Sun, Jul 11, 2010 at 10:53 AM, Dan Mueller <dan.muel at gmail.com>
> wrote:
> >>>> Fair enough.
> >>>>
> >>>> I see Testing/Review/itkVTKPolyDataWriterTest01 just writes a vtk file
> >>>> without validating the output either. I guess this is better than
> >>>> nothing, though the test could be writing complete garbage and still
> >>>> pass...
> >>>>
> >>>> Thanks. Dan.
> >>>>
> >>>> On 11 July 2010 16:40, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> >>>>> Not that I know of. Sounds difficult to me because of file formats
> >>>>> differences and floating point precision differences on different
> >>>>> platforms.
> >>>>>
> >>>>> Bill
> >>>>>
> >>>>> On Sun, Jul 11, 2010 at 10:29 AM, Dan Mueller <dan.muel at gmail.com>
> wrote:
> >>>>>> Hi Insight Developers,
> >>>>>>
> >>>>>> I am preparing a submission for the Insight Journal. My new filter
> >>>>>> itk::CuberilleImageToMeshFilter outputs mesh (vtk) files. I want to
> >>>>>> write some tests which compare the resultant text (vtk) files to
> >>>>>> baseline files.
> >>>>>>
> >>>>>> I know of the ImageCompare tool which can be used to compare output
> >>>>>> images to a baseline image. Is there a similar tool or CMake command
> >>>>>> to compare output text (vtk) files to a baseline text file?
> >>>>>>
> >>>>>> Thanks in advance.
> >>>>>>
> >>>>>> Regards, Dan
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Kitware offers ITK Training Courses, for more information visit:
> >> http://kitware.com/products/protraining.html
> >>
> >> Please keep messages on-topic and check the ITK FAQ at:
> >> http://www.itk.org/Wiki/ITK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.itk.org/mailman/listinfo/insight-developers
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://kitware.com/products/protraining.html
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-developers
> >
>
>
>
> --
>
> ==============================
> Stephen R. Aylward, Ph.D.
> Director of Medical Imaging Research
> Kitware, Inc. - North Carolina Office
> http://www.kitware.com
> stephen.aylward (Skype)
> (919) 969-6990 x300
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100713/0c3d1507/attachment.htm>


More information about the Insight-developers mailing list