[Insight-developers] STEP 1: code coverage: The second Most wanted: BinaryMask3DMeshSource.txx
Luis Ibanez
luis . ibanez at kitware . com
Thu, 07 Aug 2003 17:11:20 -0400
Hi Ting,
Your filter
itkBinaryMask3DMeshSource.txx
is the second less covered file in ITK.
http://www . itk . org/Testing/Sites/esopus . crd/SunOS-5 . 7-c++/20030807-0500-Nightly/CoverageByUntested . html
Looking into the lines inside, it seems that
because this filter is an implementation of
the Marching Cubes algorithm, it has a number
of potential cases corresponding to the
permutations of nodes on each side of the
iso-surface.
The test in Testing/Code/BasicFilters is
exercising this filter in a very simple image
that contains just a white cube on a black
background.
It seems that this simple test doesn't allow
to exercise all the potential combinations
of cases in the Marching Cubes algorithm.
It will probably be better to provide the closest
thing we can get to a fractal image.
For example: produce a random image, smooth it
with a gaussian filter and then threshold it to
get a binary image again.
Another option could be to use as input one of the
small 3D images available for testing in the
baseline.
For example
Insight/Testing/Data/Input/HeadMRVolume.mhd
Could you please take a look at changing the
input image of this test ?
Let us know if you need any help in doing so.
Thanks
Luis