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

gowith king gowithking at googlemail.com
Tue Sep 16 05:24:24 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())


​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140916/23866e4f/attachment-0001.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/23866e4f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T0-Subvolume-resample_scale-1-subvolume-scale_1_L.mhd
Type: application/octet-stream
Size: 377 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140916/23866e4f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T0-Subvolume-resample_scale-1-subvolume-scale_1_L.raw
Type: image/x-panasonic-raw
Size: 8041136 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140916/23866e4f/attachment-0001.bin>


More information about the Community mailing list