[vtkusers] [Insight-users] output of WatershedType error

Luis Ibanez luis.ibanez at kitware.com
Sat Mar 6 19:04:54 EST 2010


Hi Ali,

You can read MetaImage files in VTK
by using  the:

              vtkMetaImageReader


Note however, that the output of a Watershed
filter is not a good candidate to be passed as
input to the vtkContour filter, because it is an
image of labels, not a gray scale image.

You probably should rather visualize it with
a color map.


See the examples:


Insight/Examples/Segmentation/
               WatershedSegmentation1.cxx
               WatershedSegmentation2.cxx



     Regards,


           Luis


-----------------------------------------------------------
On Tue, Mar 2, 2010 at 5:01 PM, Ali Habib <ali.mahmoud.habib at gmail.com> wrote:
> Dear John
> can I use this mhd file with vtk to apply vtkconotor filter or should I use
> another output file
> Best regards
>
> On Tue, Mar 2, 2010 at 11:58 PM, John Drescher <drescherjm at gmail.com> wrote:
>>
>> On Tue, Mar 2, 2010 at 4:50 PM, Ali Habib <ali.mahmoud.habib at gmail.com>
>> wrote:
>> > Dear All,
>> > while trying to read the output of WatershedType file , how can I fix
>> > that.
>> >  because I need the output file for vtk output
>> >
>> > itk::ERROR: MetaImageIO(18160008): File cannot be written: c\label.mhd
>> > Reason: No such file or directory
>>
>>  c\label.mhd
>>
>> You probably wanted
>>
>>  c:\label.mhd
>>
>> John
>
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list