[ITK] Fwd: How to label this binary image into two labels

gowith king gowithking at googlemail.com
Tue Sep 16 05:32:16 EDT 2014


Hi,
       I tried to label this image into two labels since yesterday ,
However it always give no label for result.
      Here is my code:
LabelFilter0 = itk.BinaryImageToLabelMapFilter.IUC3LM3.New()
LabelFilter0.SetInput(BinaryFilter.GetOutput())
LabelFilter0.SetInputForegroundValue(100)
LabelFilter0.SetFullyConnected(False)
print LabelFilter0.GetNumberOfObjects()
LabelImage0 = itk.LabelMapToLabelImageFilter.LM3IUC3.New()
LabelImage0.SetInput(LabelFilter0.GetOutput())
Sta0Filter = itk.LabelStatisticsImageFilter.ISS3IUC3.New()
Sta0Filter.SetLabelInput(LabelImage0.GetOutput())
Sta0Filter.SetInput(reader0.GetOutput())


​here is the mhd file :
https://drive.google.com/file/d/0B6iiB8fojky9NXhOZXFVWTNIbHlLc01jdmFyT2FkdDVmdXFB/edit?usp=sharing
https://drive.google.com/file/d/0B6iiB8fojky9dnlSSmNqOHk4NDM1WHRBLVRhWWpHLUxGZ1JF/edit?usp=sharing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140916/a03f7d3a/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Selection_001.png
Type: image/png
Size: 23881 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140916/a03f7d3a/attachment-0002.png>


More information about the Community mailing list