PDA

View Full Version : Help: Load Directly Multiple DICOM Files


aman.sonu
12-15-2008, 02:13 AM
Hey,

I was using LDM format, but now i m trying to load only DICOM files. It is loading the DICOM files, but having some problem.

But i m doing as of now:-

1) i have create a list of DICOM files named list.dcm.
list.dcm contains

D:/Dicom Data/RAWDATA/001.dcm
D:/Dicom Data/RAWDATA/002.dcm
.....
D:/Dicom Data/RAWDATA/300.dcm

and i m assigning the filepath to VolumeData

volData->fileName.setValue("list.dcm");

it is showing fine. but when i change the slice number of the OrthoSlice, it is showing same slice on different index.
like on 0 & 1 same slice and 2,3 same..... so on..

i donot know why i m getting this error.

please any one suggest , if i m missing any step or doing somethign wrong.

Thanks..
Aman

mikeheck
12-15-2008, 03:14 PM
Hi Aman,

I just loaded some Dicom test data and it seemed to work fine. I used the VolRend demo that comes pre-built (on Windows) with OIV 7.2.

I suggest:
1. Check your list file once more to confirm there are no duplicate file names.
2. Load the data in VolRend to see if the problem is in your application program.

Regarding VolRend, here are some hints for Dicom data.

First go to the Volume Rendering tab

Click the Visibility box (to turn off volume rendering).
Click the BBox box.

Go to the Geometry Control tab and click the Slices Off box (to turn slices on).
Now on the Data tab:

In the Slice ColorMap section, set the predefined colormap to Intensity.
In the Data Range section, click the Active box.
In the Data Set section, click the browse button "..." and select your list file.

Now that the data is loaded (one slice should be displayed), go back to the Geometry Control tab and change the slice number using the slider.


-Mike

aman.sonu
12-17-2008, 07:51 AM
Dear Mike,

Thanks for reply.

I have tried the VolRend Demo with DICOM list file. But it is showing the same slice. if i create LDM , then it is working fine. I m trying to find the problem.

How can I do the Invert color. is there direct function to invert color in OI.

( BLACK -> WHITE -> BLACK)

or do I need to change the SoTransferFunction. please suggest.

Thanks.
Aman

mikeheck
12-17-2008, 03:30 PM
How can I do the Invert color. is there direct function to invert color in OI.

( BLACK -> WHITE -> BLACK)

or do I need to change the SoTransferFunction. please suggest.


Currently you will need to change the SoTransferFunction, specifically to modify the values in the colorMap field. The most efficient way to do this is:

// Get pointer to color map values
float *p = pTF->pcolorMap.startEditing();
// Modify values
...
pTF->colorMap.finishEditing();


-Mike

aman.sonu
12-19-2008, 06:30 AM
Dear Mike,

Thanks for reply..

I have gone through it. But i did not get it completely. can you provide some example, e.g. to change the colormap, when i have loaded the INTENSITY Color Map.

Regards,
Aman

mikeheck
12-21-2008, 07:44 AM
This may be generally useful, so I have posted an example in the Resources section: 96.

-Mike

aman.sonu
12-22-2008, 05:46 AM
This may be generally useful, so I have posted an example in the Resources section: 96.

-Mike
Dear Mike.

Thanks for reply..

Is there any book avaliable for VolumeViz. i know abt Mentor. but it is only regarding the Open Inventor. where i can get information about VolumeViz.

Thanks in advance.

Regards,
Aman

mikeheck
12-22-2008, 06:02 AM
There is a lot of information about using VolumeViz in chapter 20 of the Open Inventor User's Guide. It's included in the Open Inventor SDK: $OIVHOME/doc/UsersGuide/UsersGuide.pdf

-Mike