[vtkusers] Java EXCEPTION_ACCESS_VIOLATION

Divye zombi2_84 at yahoo.com
Wed Nov 4 23:09:10 EST 2009


Hey Denis,

That works !!
now the program is running, but i am not getting the desired results. I do get a rendered image , but it looks far from a volume rendering. I need to work on it more to narrow down on the possible causes, but here are a few observations : 

The initialization : 

volumeMapperSoftware.SetVolumeRayCastFunction(new 
                vtkVolumeRayCastCompositeFunction());

gave an error with vtkFixedPointVolumeRayCastMapper. I changed it to vtkVolumeRayCastMapper and it fixed it. But with this mapper, I had to change the data type by using vtkImageCast, and it worked.
Maybe i am messing things up while converting the image data??
Is there a way i can use the volume mapper I was using originally ??

Any insights?

I really appreciate your help so far.



--- On Tue, 11/3/09, Denis Barbier <bouzim at gmail.com> wrote:

From: Denis Barbier <bouzim at gmail.com>
Subject: Re: [vtkusers] Java EXCEPTION_ACCESS_VIOLATION
To: "Divye" <zombi2_84 at yahoo.com>
Cc: vtkusers at vtk.org
Date: Tuesday, November 3, 2009, 4:55 AM

On 2009/10/25 Divye wrote:
>
> Hi All,
>
> I am trying to run a program for 3d rendering of DICOM images , using java on win vista 32 - bit using vtk 5.4.2 and am getting the following EXCEPTION_ACCESS_VIOLATION.
[...]
>     private boolean setupRendererMIP() {
>         volumeProperty.SetColor(colorTransferFunction);
>         volumeProperty.SetScalarOpacity(opacityTransferFunction);
>         volumeProperty.SetInterpolationTypeToLinear();
>         volumeProperty.ShadeOff();
>         volume.SetProperty(volumeProperty);
>
>         volumeMapperSoftware.SetInput(imageData);
[...]

Add
  volumeMapperSoftware.SetVolumeRayCastFunction(new
vtkVolumeRayCastCompositeFunction());

I do not understand why VolumeRayCastFunction is initialized to NULL
in vtkVolumeRayCastMapper constructor, rendering will crash unless
SetVolumeRayCastFunction is called.

Denis



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091104/e2604346/attachment.htm>


More information about the vtkusers mailing list