Hi folks,

another approach for rendering live image data is to use the OpenCV extension 
and render the images in the background of the MITK render window. Of course, 
you bypass the MITK rendering engine and you leave the Geometry-System of MITK. 
But you will be able to render your images at a high frame rate. I used this 
for an augmented reality application. Rendering MITK surfaces on top of video 
images was possible at 60 FPS without problems (if you invested some money in 
your computer ☺ ). If that is interesting for you take a look at the video 
player plugin (in OpenCV examples) and more specifically in the class 
QmitkOpenCVVideoControls  
(http://docs.mitk.org/nightly-qt4/QmitkOpenCVVideoControls_8cpp_source.html). 
It will show you how to use QmitkVideoBackground and a mitkOpenCVVideoSource.

Best
Michael

Von: Taylor Braun-Jones [mailto:[email protected]]
Gesendet: Dienstag, 12. August 2014 08:26
An: Clarkson, Matt
Cc: MITK
Betreff: Re: [mitk-users] Rendering Ultrasound/Video in a Plane in 3D

This is an MITK bug. Daniel Maleike put together a demo that demonstrates this 
performance weakness in the branch

personal/maleike/render-perf-demo

I, too, am interested in ways to address this issue.

Taylor

On Fri, Aug 8, 2014 at 9:36 AM, Clarkson, Matt 
<[email protected]<mailto:[email protected]>> wrote:
Hi there,

I would like to render a plane of live image data, and visualise it in a 3D 
window at a given position in space.

I looked through the code, and saw that in the MITK Display, the Axial, 
Sagittal, Coronal slices are mapped to a plane, which ultimately gets rendered 
using mitkGeometry2DDataVtkMapper2D and mitkGeometry2DDataVtkMapper3D.  So, I 
tried creating a 2D image (ultrasound/video/whatever), using a 2D MITK Render 
Window to visualise it, and then it also appears in the 3D world.

Then I tried moving it about by changing the geometry on the image.
Then I tried updating the image.

However, when profiling code I realised that the rendering performance is quite 
slow. The slowest part is rapidly updating the OpenGL Texture Map containing 
the image data.

Is there a better or more recommended way to achieve the same effect?

Thanks

Matt




------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to