On Fri, 2008-04-11 at 17:56 +0200, guoyanmin wrote:
> i have forgot it, 
> because mitkSegtool2D use the Contour structure, so if i click the
> mouse and get the first 3Dpoint,put this point in Contour, the end of
> them, i release the mouse, the contour would be closed, and finish the
> Segmentation,but in slise there would be showed  polygons
> segmentation, i want show only the Circle
> my mission is that: i define one Circle to store  point from mouse,
> and set this point as the radius, store all the points in this Circle
> and finish the segmentation
>  
> my problem is: how i define this Circle like Contour.
>  
> thank you very much

You can replace the mitk::Contour structure by any object you like. If
it should be displayed, you will need a mitk::Mapper object, which is
able to display this object. In MITK mitk::Surface looks like an
alternative if you don't want to use mitk::Contour.

About rendering in MITK, you might like to read

http://www.mitk.org/documentation/doxygen/Rendering.html

If you want to change the segmentation binary image, you can either use
a function like FillContourInSlice (or something like that, you'll find
it in the code), or you can access the image as an ITK image and use any
kind of ITK filters/methods. Also, you can access the raw image, if
nothing else helps (I strongly discourage this). You'll find enough
examples in the subclasses of mitk::Tool.

About ITK access methods, see

http://www.mitk.org/documentation/doxygen/group__Adaptor.html
http://www.mitk.org/documentation/doxygen/Step6Page.html


Daniel

-- 
Dipl.-Inform. Med. Daniel Maleike          Phone: +49 6221 42 2326
Deutsches Krebsforschungszentrum           Im Neuenheimer Feld 280
Medical and Biological Informatics (E130)         69120 Heidelberg


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to