Login  Register

dicom image dimensions

Posted by Matteo Manca on Sep 17, 2014; 3:49pm
URL: http://imagej.273.s1.nabble.com/dicom-image-dimensions-tp5009683.html

Hi everyone,
I’m new with imageJ, so I early apologize if my question is too naive.
I’m using imageJ java lib (ij.jar) to read a .dicom file and to make some image processing. First of all, I would be interested to know the dimension of my .dicom file so I run the following code:


      DICOM dcm = new DICOM();
      dcm.open(path);
      System.out.print("\n Number of dimensions: " + dcm.getNDimensions());


as  result I obtain: "Number of dimensions: 2” while if I open the same file using matlab I can see that it is a   3584 x 1966  x   6 dicim file, so I would aspect to get 3 as number of dimension.

How can I get the number of slices (in this case 6)?

Any suggestion about?

Thanks in advance,
Matteo
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html