[Insight-users] convex hull filter?

Luis Ibanez luis.ibanez at kitware.com
Sun Jan 9 11:11:57 EST 2005


Hi Kingaza,

Thanks for posting more details about the
problem that you are trying to solve.

After looking at your images I still think
that you don't need a full convex-hull.


Please look at the four attached images
that were produced by running the

   VotingBinaryIterativeHoleFillingImageFilter

on the binary mask of the kidney.


This was done directly with the source code
available at


    Insight/Examples/Filtering/
       VotingBinaryIterativeHoleFillingImageFilter



The parameters used where:

    Image       Radius    Iterations

kidneyMask1      2  2        50
kidneyMask2      3  3        50
kidneyMask3      4  4        50
kidneyMask3      5  5       150



The actual iterations performed and number of
pixel changed were respectively

    Image    Iterations   PixelsChanged

kidneyMask1      5            59
kidneyMask2     17           186
kidneyMask3     41           557
kidneyMask4    134          1916


Please let us know if that processing may fit
what you need, or if you need any particular
modification.



    Thanks



        Luis



--------------------------
kingaza at gmail.com wrote:

> Hi Luis,
> 
> I want to implement registration opration on kidney image (kidney1.png)
> considering patient body's motion, I do segmentation first (kidney2.png). 
> and I think it will be more accurate in registration process if I can
> make use of the other issues.
> so I want such a filter...
> 
> regards,
> kingaza
> 
> 
> On Sat, 08 Jan 2005 21:57:12 -0500, Luis Ibanez <luis.ibanez at kitware.com> wrote:
> 
>>Hi Kingaza,
>>
>>I'm not aware of any filter in ITK implementing
>>the convex-hull of a binary image.
>>
>>Still,...
>>I don't quite see why would you need
>>the convex-hull of a region...
>>
>>Regards,
>>
>>   Luis
>>
>>--------------------------
>>kingaza at gmail.com wrote:
>>
>>>Hi Luis,
>>>
>>>thx for your answer, but actually, I really need a convex-hull operation.
>>>could you tell me whether there is some filters to implement such an operation?
>>>thx for any tips
>>>
>>>regards,
>>>kingaza
>>>
>>>On Sat, 08 Jan 2005 10:57:54 -0500, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>>>
>>>
>>>>Hi Kingaza,
>>>>
>>>>You may want to give it a try to the filter:
>>>>
>>>>      VotingBinaryHoleFillingImageFilter
>>>>
>>>>http://www.itk.org/Insight/Doxygen/html/classitk_1_1VotingBinaryHoleFillingImageFilter.html
>>>>
>>>>and
>>>>
>>>>      VotingBinaryIterativeHoleFillingImageFilter
>>>>
>>>>http://www.itk.org/Insight/Doxygen/html/classitk_1_1VotingBinaryIterativeHoleFillingImageFilter.html
>>>>
>>>>The second filter is used for running the first one
>>>>for a number of iterations.
>>>>
>>>>These filters will fill-in holes and cavities in
>>>>binary images.
>>>>
>>>>This is not equivalent to a convex-hull, but...
>>>>I doubt that you really need a convex-hull operation.
>>>>
>>>>It seems that what you need is to remove cavities
>>>
>>>>from the contour... which is what the HoleFilling
>>>
>>>>voting filters do.
>>>>
>>>>Note that you will need a CVS version of ITK since
>>>>these filters were added to the toolkit *after* the
>>>>release 1.8.
>>>>
>>>>  Regards,
>>>>
>>>>    Luis
>>>>
>>>>------------------------
>>>>kingaza at gmail.com wrote:
>>>>
>>>>
>>>>
>>>>>Hi all
>>>>>
>>>>>how can i get convex hall from a binary image?
>>>>>for example
>>>>>0 0 1 1 1 0            ==>       0 0 1 1 1 0
>>>>>0 0 0 1 0 0                         0 1 1 1 1 0
>>>>>0 0 0 1 0 0                         0 1 1 1 1 0
>>>>>0 1 1 1 1 0                         0 1 1 1 1 0
>>>>>
>>>>>I have tried the filter itkHConvexImageFilter
>>>>>but it doesn't work.
>>>>>
>>>>>regards,
>>>>>kingaza
>>>>>_______________________________________________
>>>>>Insight-users mailing list
>>>>>Insight-users at itk.org
>>>>>http://www.itk.org/mailman/listinfo/insight-users
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kidneyMask1.png
Type: image/png
Size: 751 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050109/800129f9/kidneyMask1.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kidneyMask2.png
Type: image/png
Size: 758 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050109/800129f9/kidneyMask2.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kidneyMask3.png
Type: image/png
Size: 716 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050109/800129f9/kidneyMask3.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kidneyMask4.png
Type: image/png
Size: 664 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050109/800129f9/kidneyMask4.png


More information about the Insight-users mailing list