Dear Mitk users,

I am working on an application using Mitk as a library. For technical 
reasons, I had to use an existing framework and could not develop an 
Mitk module or plug-in.

The aim of the application is to load a DICOM image and segment it.

I am facing an issue with volume rendering: I would like the 
segmentation volume to be visible in 3D, and updated in real time 
(similarly to what exists in the workbench).

Looking into the MITK code, I thought I could simply create a mapper and 
assign it to my data node, but this crashes the code with the following 
message:

"Exception caught: reading access violation.
this->ImageDisplayHelper was nullptr."

The offending line is in the file vtkFixedPointVolumeRayCastMapper.cxx, 
l717:
"this->ImageDisplayHelper->PreMultipliedColorsOn();".

Below is a snippet of my code:

// Created a node called totalDataNode, added it to the datastorage
mitk::Mapper::Pointer totalMapper;
totalMapper = mitk::GPUVolumeMapper3D::New();
totalMapper->SetDefaultProperties(totalDataNode);
totalMapper->SetDataNode(totalDataNode);
totalDataNode->SetMapper(2, totalMapper);
totalDataNode->SetProperty("volumerendering", 
mitk::BoolProperty::New(true));
totalDataNode->SetProperty("volumerendering.uselod", 
mitk::BoolProperty::New(true));
totalDataNode->SetProperty("volumerendering.usegpu", 
mitk::BoolProperty::New(false));
totalDataNode->SetProperty("volumerendering.useray", 
mitk::BoolProperty::New(false));
totalDataNode->SetProperty("volumerendering.usemip", 
mitk::BoolProperty::New(false));

The line
totalDataNode->SetProperty("volumerendering", 
mitk::BoolProperty::New(true));
triggers the error.

Does anybody know of the correct way to create and use a mapper? I would 
greatly appreciate any help.

Thanks in advance!

Daphné

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to