[vtkusers] Convert to binary image

Hila Hiler hilahiler at gmail.com
Thu May 3 06:06:56 EDT 2012


Gonzalo,
I use Mitk.
I don't understand how you want to run a vtkFilter on mitk::Image. why?
a vtkFilter you can run on mitk::Surface or mitk::Surface->getVtkPolyData();

if you have an itk::Image and you want to do a segmentation such that only
positive values will be in that seg, you can use iterator as David
suggested or you can use the GUI of mitk:
right click on the image that u loaded->set threshold value to zero-> and
you will get a segmented image.

Hope I helped.


On Thu, May 3, 2012 at 11:35 AM, Gonzalo Amadio <gonzaloama at yahoo.com.ar>wrote:

> Sorry for writing again..
> I read that MITK is like an extension of VTK and ITK.
> I have my Image in mitk::Image . And this is a VTK filter. And as input
> have a VTKimageData. Can I mix things like that?
>
> Again thank u very much!
>
>
> 2012/5/3 Gonzalo Amadio <gonzaloama at yahoo.com.ar>
>
>> Maybe, I am going to read about it..
>>
>> Do you know if there is an example for using that class? .. Because it is
>> difficult with only the Doc for me ... =(
>>
>> But I will try something..
>>
>> Thank u very much!
>> Gonzalo.
>>
>> 2012/5/3 Li, Wen <wen-li at uiowa.edu>
>>
>>  Gonzalo,
>>>
>>>  Maybe the vtkImageMarchingCubes can help?
>>>
>>>  Wen
>>>
>>>  On May 2, 2012, at 3:51 AM, Gonzalo Amadio wrote:
>>>
>>> Sorry for the late response..
>>> Yes, I want to generate a surface. I am working with 3D meshes, using
>>> polyData. And I have an Image. But when working with this, it is not
>>> working properly.
>>> So I want to convert this image into a polyData, because it is easier to
>>> make traversal, comparisons and other things.
>>> If you have any ideas I will be very grateful.
>>>
>>>  Gonzalo
>>>
>>> 2012/4/27 Li, Wen <wen-li at uiowa.edu>
>>>
>>>> I am not sure how can you do the converting. are you going to generate
>>>> a surface out of it?
>>>>
>>>> Wen
>>>>
>>>> On Apr 26, 2012, at 5:53 PM, gonza8888 wrote:
>>>>
>>>> > Sorry for responsing here. But as long as you are working with image
>>>> and
>>>> > polydata.
>>>> > Do you know how I can convert an image into polydata ( a 3D triangle
>>>> mesh) ,
>>>> > the image if i am not wrong is an mitk::image.
>>>> >
>>>> > Thank u for the help! =)
>>>> >
>>>> > --
>>>> > View this message in context:
>>>> http://vtk.1045678.n5.nabble.com/Convert-to-binary-image-tp5668642p5668859.html
>>>> > Sent from the VTK - Users mailing list archive at Nabble.com.
>>>> > _______________________________________________
>>>> > Powered by www.kitware.com
>>>> >
>>>> > Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>> >
>>>> > Please keep messages on-topic and check the VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>> >
>>>> > Follow this link to subscribe/unsubscribe:
>>>> > http://www.vtk.org/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>>
>>>  --
>>> --------
>>> Gonzalo Amadio
>>>
>>>
>>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120503/46b78c85/attachment.htm>


More information about the vtkusers mailing list