Also, yes, the use is only segmenting in this extra 2D window, but I still want 
to show the slice on 3D View window of QmitkStdMultiWidget to tell the use 
where the slice is located in the 3D image.

Thanks,
Hongzhi

________________________________________
From: Hongzhi Lan <hong...@stanford.edu>
Sent: Wednesday, March 23, 2016 10:02 PM
To: Kislinskiy, Stefan; mitk-users@lists.sourceforge.net
Subject: Re: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget

Thank you so much for your suggestions, but I don't have any clue about how to 
use Planar  Figures or the camera to achieve what I want. I tried to find some 
example code in MITK source about planar figures, but I didn't find any that 
can help my work. Could you give me some examples or links to me? I really 
appreciate it!

Best,
Hongzhi

________________________________________
From: Kislinskiy, Stefan <s.kislins...@dkfz-heidelberg.de>
Sent: Wednesday, March 23, 2016 9:22 PM
To: Hongzhi Lan; mitk-users@lists.sourceforge.net
Subject: AW: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget

In your case I don't see the necessity for a cropped rendering of the 
perpendicular slices. Hence, I would *not* recommend to write your own mappers, 
as this is rather complicated and I don't see a huge advantage compared to 
using planar figures for user guidance which would justify the amount of work. 
As an alternative, you could also work with the camera of your extra 2D window 
to focus on the vessel in that window, as it seems like the user is segmenting 
only in this window anyways. Please also note that we integrated the Vascular 
Modeling Toolkit into our superbuild (MITK_USE_VMTK), which may be of help to 
you for what you are trying to achieve.

Best regards,
Stefan
________________________________________
Von: Hongzhi Lan [hong...@stanford.edu]
Gesendet: Mittwoch, 23. März 2016 20:30
An: Kislinskiy, Stefan; mitk-users@lists.sourceforge.net
Betreff: Re: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget

My application is to create  a path(centerline) for a vessel, and  show  small 
reslices perpendicular to the path at QmitkSliceWidget. Then, next step is to 
to create a group of 2D contours(segmentation) using those reslices by hand or 
level set to define vessel shape at each cross sections (see attachment) .  
Finally I use the group of 2D contours to create a polydata surface for the 
whole vessel. This is what I want to achieve.  Do you think specialized mappers 
are the best option for my need? Or do you have some other suggestions?


Thanks a lot!


Hongzhi


________________________________
From: Kislinskiy, Stefan <s.kislins...@dkfz-heidelberg.de>
Sent: Wednesday, March 23, 2016 5:38 AM
To: Hongzhi Lan; mitk-users@lists.sourceforge.net
Subject: RE: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget


Yes, providing specialized mappers for your intended use case is one solution. 
The question is what you want to achieve? Why are you using the extra slice? Do 
you want to show the user something on that slice? Then maybe it is okay to 
live with the current solution but as a workaround display a PlanarFigure on 
top of your extra slice to emphasize the region of interest in the extra slice?



From: Hongzhi Lan [mailto:hong...@stanford.edu]
Sent: Mittwoch, 23. März 2016 11:34
To: Kislinskiy, Stefan; mitk-users@lists.sourceforge.net
Subject: Re: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget



Thanks! You mean, for PlaneGeometry I may need to write alternatives for 
PlaneGeometryDataMapper2D and  PlaneGeometryDataVtkMapper3D?



If  using PlanarFigure, can I show an arbitrary reslice of 3D image in both 
QmitkSliceWidget and 3D view in QmitkStdMultiWidget? Are there any examples 
about how to use PlanarFigure to do this?



Thanks,

Hongzhi



________________________________

From: Kislinskiy, Stefan 
<s.kislins...@dkfz-heidelberg.de<mailto:s.kislins...@dkfz-heidelberg.de>>
Sent: Tuesday, March 22, 2016 4:17 AM
To: Hongzhi Lan; 
mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
Subject: RE: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget



Hi Hongzhi,

the size/geometry of the slice is fine (you can check this by Reinit on the 
slice in the Data Manager. However, the standard PlaneGeometry mappers do not 
work as you may expect. They use the reference geometry bounds or the world 
bounds to cut the planes in shape. You could try to write your own 
PlaneGeometry mapper(s) for your PlaneGeometry node or try a different approach 
which requires less work, e.g., use a rectangular PlanarFigure to highlight the 
ROI in your image slice.



Best,
Stefan



From: Hongzhi Lan [mailto:hong...@stanford.edu]
Sent: Dienstag, 22. März 2016 07:55
To: mitk-users@lists.sourceforge.net<mailto:mitk-users@lists.sourceforge.net>
Subject: [mitk-users] Showing an arbitrary reslice of 3D image in 
QmitkSliceWidget



Hello everyone,



I'm tring to show an arbitrary reslice of 3D image in QmitkSliceWidget and also 
3D view in QmitkStdMultiWidget at the same time.

The orientation of the reslice looks fine, but in QmitkSliceWidget and 3D view 
QmitkStdMultiWidget the sizes are not right (see the attachments). It should be 
a small square(40x40) (see the source code below).

I really need some help on thie issue. I'm using MITK 2015.05.2 and Ubuntu 14.



Thanks!



Hongzhi



The code is as below:

======================



    QmitkSliceWidget* m_SliceWidget=new QmitkSliceWidget(parent);

    m_SliceWidget->SetDataStorage(dataStorage);



    mitk::PlaneGeometry::Pointer planegeometry = mitk::PlaneGeometry::New();

    mitk::Point3D origin;

    mitk::Vector3D right, bottom, normal;



    mitk::FillVector3D(origin, 1.0, 1.0, 1.0);

    mitk::FillVector3D(right,  1.0, 0, 0);

    mitk::FillVector3D(bottom,  0, 1.0, 1.0);



    planegeometry->InitializeStandardPlane(40,40, right.GetVnlVector(), 
bottom.GetVnlVector());

    planegeometry->SetOrigin(origin);



    mitk::SlicedGeometry3D::Pointer slicedGeo3D=mitk::SlicedGeometry3D::New();

    slicedGeo3D->InitializeSlicedGeometry(1);

    slicedGeo3D->SetPlaneGeometry(planegeometry,0);



    
slicedGeo3D->SetReferenceGeometry(node_image3D->GetData()->GetTimeGeometry()->GetGeometryForTimeStep(0));



    
m_SliceWidget->GetSliceNavigationController()->SetInputWorldGeometry3D(slicedGeo3D);

    
m_SliceWidget->GetSliceNavigationController()->SetViewDirection(mitk::SliceNavigationController::Original);

    m_SliceWidget->GetSliceNavigationController()->Update();



    
GetDataStorage()->Add(m_SliceWidget->GetRenderer()->GetCurrentWorldPlaneGeometryNode());





------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to