Hi Andreas,

thanks for your fast reply.

I am using the same procedure than in QmitkSegmentation to create the  
tools. I have added a ToolGUIArea and a QmitkToolSelectionBox that I  
configure in the creation of QT control.

Then, when I have some node with data in the Qlist of nodes, I set  
this node as reference and working data,

foreach( mitk::DataNode::Pointer node, nodes )
   {
     if( node.IsNotNull() && dynamic_cast<mitk::Image*>(node->GetData()) )
     {
       m_Controls->labelWarning->setVisible( false );
       m_Controls->buttonPerformImageProcessing->setEnabled( true );

        
m_Controls->m_ManualToolSelectionBox->GetToolManager()->SetReferenceData(node);
        
m_Controls->m_ManualToolSelectionBox->GetToolManager()->SetWorkingData(node);

       return;
     }
   }



cheers!!


"Fetzer, Andreas" <[email protected]> escribió:

> Hi Jose,
>
> that depends on how you implemented your tools. Most of the  
> segmentation tools use the mitkContour as kind of a feedback contour  
> for the user. This contour is transferred into binary image data  
> after the user releases the mouse button. With this contour it is  
> not possible (actually it even won't make sense) to access the  
> points, which were drawn by the user.
>
> However the recently added LiveWire tool uses the mitkContourModel.  
> The points which are provided by the user are here stored as  
> controll points. You should be able to access them via the contour  
> model.
>
> May be you could provide some additional informations about how you  
> realized the tools.
>
> Best regards
> Andreas
>
>
> -----Original Message-----
> From: Jose Dolz [mailto:[email protected]]
> Sent: Donnerstag, 18. April 2013 13:03
> To: [email protected]
> Subject: [mitk-users] Extract Points from Manual Segmentation Tools  
> (ToolManager)
>
>
> Hi all,
>
> I have implemented an own segmentation plug-in that requires user  
> interaction in a similar way that the QmitkSegmentation plug-in does.
> I have the manual segmentation tools that I need working in my  
> plug-in, this is that I can draw and erase lines or points as I want  
> in each of the segmentations I create. What I need is to know which  
> points (i.e their locations) are drawn by the user, since they will  
> be the input for my own segmentation algorithm.
>
> I do not whether I am wrong, but it should be something like:
>
> in this way I can access to the tools
>
>     m_Controls->m_ManualToolSelectionBox->GetToolManager()-> "Get  
> some tool either the active one or by name" -> do something else
>
> but I am not able to get those points.
>
> Could you provide me some clues to follow??
>
> Thanks in advance!!!
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced  
> analytics on semi-structured data. The platform includes APIs for  
> building apps and a phenomenal toolset for data science. Developers  
> can use our toolset for easy data analysis & visualization. Get a  
> free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>





------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to