2 using System.Collections;
7 PatientEventSystem.startListening (PatientEventSystem.Event.DICOM_NewLoadedVolume, OnDICOMLoaded );
9 DICOMLoader.instance.startLoadingVolume (DICOMLoader.instance.availableSeries [0]);
13 PatientEventSystem.stopListening (PatientEventSystem.Event.DICOM_NewLoadedVolume, OnDICOMLoaded );
16 public void OnDICOMLoaded(
object obj = null )
24 Image volume = dicom.image;
25 Debug.Log (
"Width: " + volume.GetWidth () +
", height: " + volume.GetHeight () +
", depth: " + volume.GetDepth ());
27 VectorUInt32 position =
new VectorUInt32 {
28 volume.GetWidth() / 2,
29 volume.GetHeight() / 2,
33 int value = volume.GetPixelAsInt16 (position);
34 Debug.Log (
"Value of center pixel: " + value);