[Insight-users] Create an image
Cagatay Bilgin
bilgincc at gmail.com
Thu Apr 19 20:11:54 EDT 2012
Hi,
MaskImageFilter is what you want.
You can set the outside value to
anything you want. Here is an example
http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/MaskImageFilter
Cagatay
On Thu, Apr 19, 2012 at 12:37 AM, Hui Tang <tanghui.seu at gmail.com> wrote:
> yes, use itkMultiplyImageFilter
>
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1MultiplyImageFilter.html
>
> sucess!
>
>
> On Wed, Apr 18, 2012 at 9:05 PM, Xiaopeng Yang <yxp233 at postech.ac.kr>wrote:
>
>> Do you know how to multiply the mask with the original image? Is there
>> any itk class to achieve this?****
>>
>> ** **
>>
>> *From:* Hui Tang [mailto:tanghui.seu at gmail.com]
>> *Sent:* Wednesday, April 18, 2012 11:34 PM
>> *To:* Xiaopeng Yang
>> *Cc:* insight-users at itk.org; vtk
>> *Subject:* Re: [Insight-users] Create an image****
>>
>> ** **
>>
>> if your segmentation is partial volume, then threshould it at 0.5, if
>> your segmentation is an signed distance map, threshould it at 0, the map
>> should be 1 inside and o outside****
>>
>> then multiply your mask with the original image****
>>
>> ** **
>>
>> On Wed, Apr 18, 2012 at 4:06 PM, Xiaopeng Yang <yxp233 at postech.ac.kr>
>> wrote:****
>>
>> Dear Users,****
>>
>> ****
>>
>> I have two images, an original abdominal gray-scale CT image, and a
>> segmented mask image of the liver from the CT image. I would like to create
>> a new gray-scale image from the original CT image so that in the new image,
>> the intensity value of the points outside the segmented liver is set to be
>> 0, while the points within the segmented liver do not change. ****
>>
>> ****
>>
>> I think there should be some example to do this. But I could not find any
>> one from Google search. If you know any example, please share it with me.
>> ****
>>
>> ****
>>
>> Thank you,****
>>
>> Xiaopeng****
>>
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users****
>>
>> ** **
>>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120419/9574189f/attachment.htm>
More information about the Insight-users
mailing list