Hi Horst,

the problem is, that there is no canonical "default" way of showing data in 3D. 
The most intuitive is volume rendering or a variant thereof, as these show the 
entire 3D data in some manner. Unfortunately these also tend to be 
comparatively slow and, depending on the data and the cosen way of rendering 
the volume, confusing. An often used alternative is providing a crosshair and 
only rendering the currently selected planes.

This concept is introduced in Step4b [1] of the tutorial. This way it is also 
possible to render a 2D image in a 3D view.

Running:
>Step4.exe lungs.vtk some.png

Should give you an impression what this will look like.

Regards,
Caspar


[1] http://docs.mitk.org/nightly-qt4/Step04Page.html#Step4bSection

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Gesendet: Freitag, 25. Januar 2013 09:17
An: [email protected]
Betreff: Re: [mitk-users] Crash in example Step3

Hi Caspar,

but this is exactly what the example wants to demonstrate: 

//## As in Step2, load one or more data sets (many image, surface //## and 
other formats), but display it in a 3D view.
//## The QmitkRenderWindow is now used for displaying a 3D view, by //## 
setting the used mapper-slot to Standard3D.
//## Since volume-rendering is a (rather) slow procedure, the default //## is 
that images are not displayed in the 3D view. For this example, //## we want 
volume-rendering, thus we switch it on by setting //## the Boolean-property 
"volumerendering" to "true". 

So if it does not work, can you please explain me, how to display a 2D image 
and a 3D actor together in one scene?

Thanks. 
Horst

-----Original Message-----
From: Goch, Caspar Jonas [mailto:[email protected]]
Sent: Thursday, January 24, 2013 1:10 PM
To: Steigner, Horst - Germany, Rheinsheim; [email protected]
Subject: AW: Crash in example Step3

Hi Horst,

I have tried reproducing your error using our current master and could not 
reproduce the crash. I assume you have not changed the code at all and tried to 
run it as is.

Using the command:
/path>Step3.exe lungs.vtk Some.png

I get the Output:
Thu Jan 24 12:02:38 2013
0.08 core.io.sfcReader: Loading lungs.vtk as vtk 0.20 core.rnd.shdRep: found 
default mitk shader at /path/'
0.21 core.rnd.shdRep: found shader 'mitkShaderLighting'
0.21 core.io.imgFileReader: loading Some.png via itk::ImageIOFactory...
0.22 core.io.imgFileReader: ioRegion: ImageIORegion (0000000000B7EA00)
  Dimension: 2
  Index: 0 0
  Size: 800 621
0.25 core.io.imgFileReader: number of image components: 3
0.26 core.io.imgFileReader: ...finished!
Could not open file Some.png

So it does not work, but does not crash either. Without debugging into the code 
my first guess would be, that loading the image works fine, but an exception is 
thrown when trying to volume render the image, as you seem to be supplying 2D 
images. As it is a 3D and not a 2D view you will not see anything without 
volume rendering and the example does not safeguard against supplying non 3D 
images.

I hope this helps,
Caspar


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Gesendet: Dienstag, 22. Januar 2013 16:20
An: [email protected]
Betreff: [mitk-users] Crash in example Step3


Hi,

I want to display an image and a STL model together in a 3D view. This seems to 
be exactly what the example Step3 does. I tried to run this example, but it 
failed. The example crashes somewhere in the macro AccessFixedTypeByItk_n. I 
tried different images in the format PNG, JPG and DCM. All of these images can 
be displayed in the example Step2. The example Step3 works fine, when I only 
display a STL model.

Any hints?

based on MITK 2012-12-00 unter Windows XP SP3

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, 
Windows 8 Apps, JavaScript and much more. Keep your skills current with 
LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. 
ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, 
Windows 8 Apps, JavaScript and much more. Keep your skills current with 
LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. 
ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to