[Insight-users] metaheaders
Luis Ibanez
luis.ibanez at kitware.com
Thu, 04 Mar 2004 22:41:10 -0500
Hi David,
The FastChamferDistanceImageFilter assumes that you are
providing as input an image representing a level set.
This image is supposed to have positive values and negative
values. An iso-surface (or iso-contour) is implicitly
defined at the value == 0.
The FastChamferDistanceImageFilter computes a signed
distance map from every pixel to the iso-surface == 0
of the input image.
Are you providing an input image with positive and negative
values ?
Luis
--------------------------
David Macias Verde wrote:
> Hi all:
>
> I'm working with the itkFastChamferDistanceImageFilter and I have
> modified a little bit the original code of
> itkFastChamferDistanceImageFilterTest.cxx just to test its way of doing.
> I've changed the released code by adding a itkImageReader, instead of
> letting the software make a proper image created by itself.
>
> In order to check that change, I saved that proper image before doing
> the code modification. So when it was done, I read that proper data from
> a file and got the result, which became to be right. Like when it was
> self-created.
>
> But, here it comes my trouble. As I'm working with DICOM images coming
> from a portal image device installed on Linear Accelerator (radiotherapy
> treatments), I moved every image into float format and stored them as
> raw. Using MetaImageImporter I created the .mhd needed to be ready with
> itkFastChamferDistanceImageFilterTest-modified. The result was that
> nothing change in the input image at all. The output data it came to be
> exactly equal to the input one.
>
> What am I doing wrong?
>
> Thanks,
>
>