[Insight-users] fuzzy scene

Andreas Krebs krebs.andreas at gmx.de
Sat Feb 10 08:31:28 EST 2007


Hi all,

I'm just playing around with the fuzzyConnectedness routines:

#include "itkSimpleFuzzyConnectednessScalarImageFilter.h"
#include "itkConfidenceConnectedImageFilter.h"


typedef itk::SimpleFuzzyConnectednessScalarImageFilter< ImageType,
     BinaryImageType > FuzzySegmentationFilterType;

Unfortunately, the output of GetFuzzyScene() by

fuzzyscenewriter->SetInput( fuzzysegmenter->GetFuzzyScene() );
fuzzyscenewriter->Update();

into a VTK file only gives
the following standard spacing information:

===========================================
VTK File Generated by Insight Segmentation and Registration Toolkit (ITK)
BINARY
DATASET STRUCTURED_POINTS
DIMENSIONS 55 65 27
SPACING 1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00
============================================
This is wrong in my context. The GetOutput() for the binary segmentation
yields the spacing information correctly:
============================================================
# vtk DataFile Version 3.0
VTK File Generated by Insight Segmentation and Registration Toolkit (ITK)
BINARY
DATASET STRUCTURED_POINTS
DIMENSIONS 55 65 27
SPACING 7.8125000000000000e-02 7.8125000000000000e-02 2.5000000000000000e-01
============================================================

So, here are my questions:

Is this an ITK bug or am I doing or expecting something wrong?
Does there exist a simple workaround? I tried to treat the 
GetFuzzyScene() result as an ITK ImageType, but for some reason
I could not simply change the spacing of the image.  So, for the moment
an example of how to change solely the spacing of an image would be
sufficient for my problem
- if the GetFuzzyScene() result is really of type Image?

Thanks in advance,
Regards,
	Andreas
-- 
+--------------------------------------------------------------------------+
Andreas Krebs
Email: krebs.andreas at gmx.de
Digital signature certified by TC TrustCenter Class 1 CA
https://www.trustcenter.de/certservices/cacerts/TC_RootServer_DER_Class1.der
+--------------------------------------------------------------------------+


More information about the Insight-users mailing list