[Insight-users] =?x-gbk?Q?=BB=D8=B8=B4=3A_=5BInsight-users=5D_remain_p?= =?x-gbk?Q?ixel_value_after_segment_of_ITK?=

Luis Ibanez luis.ibanez at kitware.com
Wed Dec 10 15:53:26 EST 2008


Hi Kidwei,

There is no need for you to so slice-by-slice segmentation.

You can use the ConnectedThresholdImageFilter in 2D images,
3D images, 4D images.... ND images.

Do the segmentation in 3D and then apply the MaskImageFilter
in 3D as well.


The time required for running these two filters, in a modern
computer, and in a typical CT scan should be in the order of
seconds.



    Regards,


        Luis



-------------
kidwei wrote:
> Dear Luis,
>     Thank you for your replay. my reconstruction means the volume 
> rendering, instead of surface rendering. for example, I want to use 
> Ray-casting algrithm after segment.
>     as to your method of using MaskImageFilter, I have one question: my 
> volume data have serveral hundred slices,  I must segment every slice 
> and then use this class for every segment slices and original 
> slice, will the time consuming very large?
>  
>  
> ------------------ ԭʼÓʼþ ------------------
> *·¢¼þÈË:* "Luis Ibanez"<luis.ibanez at kitware.com>;
> *·¢ËÍʱ¼ä:* 2008Äê12ÔÂ3ÈÕ(ÐÇÆÚÈý) ÉÏÎç6:59
> *ÊÕ¼þÈË:* "kidwei"<kidwei at 126.com>;
> *³­ËÍ:* "insight-users"<insight-users at itk.org>;
> *Ö÷Ìâ:* Re: [Insight-users] remain pixel value after segment of ITK
>  
> 
> Hi Kidwei,
> 
> You may want to use the MaskImageFilter:
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1MaskImageFilter.html
> 
> Feed into it the original image and the segmented image.
> 
> You will get as output the values of the input image, but
> only on the pixels that are ON in the segmented image.
> 
> 
> However, I don't see why your "reconstruction" needs the original pixel
> values. In VTK you could simply run the vtkContourFilter on the binary
> segmented image.
> 
> 
> See for example:
> 
>      InsightApplications/Auxiliary/vtk/
>           itkReadITKImage3DSegmentShowVTK.cxx
> 
> 
> 
>     Regards,
> 
> 
>         Luis
> 
> 
> ---------------
> kidwei wrote:
>  > Dear all,
>  >
>  >    I am a new learner of ITK. I want to use ITK to segment my DICOM
>  > images and then use VTK to reconstruct the volume data. I have
>  > successfully segment my images with the class
>  > "ConnectedThresholdImageFilter", but the output of this class is a
>  > binary image, the pixels outside the Threshold have been discard, which
>  > is correct, but its method "SetReplaceValue" replaced the other pixels
>  > with new value. My question is, how to keep the pixels' value what is
>  > inside the Threshold, instead of replace it with new value? Because my
>  > reconstruction need these origin pixels' value.
>  >
>  >   Thank you!
>  >
>  >
>  > --
>  > --
>  >
>  >    ÖÂ
>  > Àñ£¡
>  >
>  > Wang Zhaowei
>  > Collage of Computer Science and Engineering, University of Computer 
> Science and Technology of China.
>  >
>  > Address: NO.4, Section 2, North Jianshe Road, Chengdu P.R.China
>  > Post Code: 610054
>  > E-mail: kidwei at 126.com
>  > HomePage: http://kidwei.goofar.com
>  >
>  >
>  > ------------------------------------------------------------------------
>  > ÍøÒ×Ãâ·ÑÓÊ£¬È«Çò×î´óµÄÖÐÎÄÃâ·ÑÓÊÏä <http://www.yeah.net>
>  >
>  >
>  > ------------------------------------------------------------------------
>  >
>  > _______________________________________________
>  > Insight-users mailing list
>  > Insight-users at itk.org
>  > http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list