Hi Gonzalo, please keep the conversation on the list so that other users could take benefit out of it too.
The appropriate threshold is something you have to know by yourself (which actually depends on your use case). We mostly use the ImageToSurfaceFilter to create a surface out of an segmentation. A segmentation is a binary image where the pixel values are either 0 or 1. So the appropriate threshold would be 1. If you want to extract a certain structure out of your image you will first have to segment it. What you also could try: - Activate the segmentation bundle - Start the ExtApp - Load you image - Rightclick on the image in the data manager and select threshold - That a small dialog should appear and you can interactively select a threshold value - If you confirm with OK a new segmentation is created - Rightclick now on the segmentation and choose "Create Polygon Model" - Now you should get a Surface for your segmentation Andreas On 15.05.2012, at 10:59, Gonzalo Amadio wrote: Hello Andrea, I am still trying with this. Only one question, Is there anything to know the appropiate treshold? I used the GetTreshold functiong of the filter, but I don know it it is working properly, because I then change the tresholds to 0 and 1 and the results where the same. I am working on an existing program, so I cannot see the result of the filter on the screen and test with different tresholds and see what happens, but I am trying to install MITK on other computer. Until I can, maybe with this you can help me. Than you! Gonzalo 2012/5/10 Fetzer, Andreas <[email protected]<mailto:[email protected]>> 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<http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________mitk-users> mailing list [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> 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
