[Insight-users] remain pixel value after segment of ITK

Bill Lorensen bill.lorensen at gmail.com
Tue Dec 2 19:12:44 EST 2008


In vtk, a better algorithm for binary data is:

itkDiscreteMarchingCubes.

Bill

On Tue, Dec 2, 2008 at 5:59 PM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> 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
>
> _______________________________________________
> 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