Thank you Andra and Hila.
One more question.
This filter will generate a new surface like this one in the photo? (the
orange one, the triangular mesh)
http://i.imgur.com/3ulyA.png
I need it as a vtkPolyData. This filter gives me what I need?
Thank you very much!
> Gonzalo,
>
> You can also learn from the tutorials of
> mitk:http://docs.mitk.org/nightly/TutorialPage.html
>
> or from mitk's libraries that are stored in your computer after the build
> process.
>
> Good luck.
>
>
> On Thu, May 10, 2012 at 9:47 AM, Fetzer, Andreas <
> a.fetzer@...> wrote:
>
> > Hi,
> >
> > the mitk::ImageToSurfaceFilter doesn't transform the image into a surface
> > but generates a new surface by using the image and some user defined
> > threshold.
> > All mitk filters are derived from itk::ProcessObject and therefore
> > generate new data objects. Some filters (like the ImageToSurfaceFilter)
> > need an input so that they can process it and generate new data object out
> > of it.
> >
> > I do not know your exact use case but I assume you want to extract a
> > surface from your image. The code for that looks like the following:
> >
> > mitk::ImageToSurfaceFilter::Pointer image2surface =
> > mitk::ImageToSurfaceFilter::New();
> > image2surface->SetInput(myMask);
> > image2surface->SetThreshold(yourThreshold);
> > image2surface->Update();
> >
> > otherFunction(image2surface->GetOutput());
> >
> > If you look into existing MITK code you will find many examples of how
> > using filters correctly. You can also find further information about the
> > filter concept in the ITK Software Guide (which is also available as PDF)
> > since we took over this concept in MITK.
> >
> > Regards
> > Andreas
> >
> > On 09.05.2012, at 17:39, Gonzalo Amadio wrote:
> >
> > Hello, sorry for this basic question ,but I am very new at this.
> >
> > I have an Image, and I want to apply mitk::ImageToSurfaceFilter , and use
> > the surface obtained as an argument of other function.
> >
> > - First question: This filter transforms the image into a triangular mesh?
> >
> > (If first question is true)
> >
> > - Second (what I wanted to do) :
> >
> > boost::shared_ptr< Mask > myMask = *maskIter; // Mask = mitk::image
> > surface = ImageToSurfaceFilter (myMask);
> > otherFunction (surface);
> >
> >
> > That is the idea of what I wanted to do. But reading the Documentation of
> > the filter I don't get how to use it, and I can't find examples either.
> >
> > Thanks!
> >
> > --
> > --------
> > Gonzalo Amadio
> >
> >
> > ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats.
> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> > mitk-users mailing list
> > mitk-users@...>
> > https://lists.sourceforge.net/lists/listinfo/mitk-users
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > mitk-users mailing list
> > mitk-users@...
> > https://lists.sourceforge.net/lists/listinfo/mitk-users
> >
>
>
--
--------
Gonzalo Amadio
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users