[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    [Insight-users] Re: masking a segmented region
From:       Luis Ibanez <luis.ibanez () kitware ! com>
Date:       2004-01-28 21:15:47
Message-ID: 40182683.40408 () kitware ! com
[Download RAW message or body]

Hi Delian,

You can use the AND image filter:

http://www.itk.org/Insight/Doxygen/html/classitk_1_1AndImageFilter.html

as long as your pixel type is of
'integer' type. That is, char,
short, int or long (signed or
unsigned).

Take the binary image produced by
your segmentation filter, scale it
to have 255 values in the segmented
region and zero values elsewhere.
(255 is assuming a char pixel type).

Then connect this segmented image as
one input to the AND image filter,
connect your original image as second
input.

The output of the AND filter will be a
masking of the original image using the
segmented region.


Regards,


    Luis


-----------------
Deliang Ye wrote:

> Luis,
> 
> How could I extract the segmented region and keep the original gray levels?
> Is there any functions already for this in ITK?
> 
> Thanks a lot for your help!
> 
> -Deliang Ye
> 
> 
> 
> 




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic