[Insight-users] Cocoa app with ITK, VTK to read DICOM file

Max Putrik pmb-88 at mail.ru
Mon Aug 15 07:18:41 EDT 2011


Yes, there are default settings:
- gcc 4.2
- 10.6 SDK
- 10.6 deployment target.

I've replaced 10.5 to 10.6 in the SimpleCocoaVTK.xcconfig file, and now this
example works!!! 

My aim is to show DICOM picture in Cocoa (read a sequence of .dcm files,
arrange them as 3D array and show), so I've created buttons, IBActions,
IBOutlets. I've seen all files in SimpleCocoaVTK and examples for DICOM
(.cxx files in ITK folder), and I've found something related to DICOM in
file itkGDCMImageIO.h:

  /*-------- This part of the interface deals with reading data. ------ */

  /** Determine the file type. Returns true if this ImageIO can read the
   * file specified. */
  virtual bool CanReadFile(const char*);
  
  /** Set the spacing and dimesion information for the current filename. */
  virtual void ReadImageInformation();
  
  /** Reads the data from disk into the memory buffer provided. */
  virtual void Read(void* buffer);

  /** Get the original component type of the image. This differs from
   * ComponentType which may change as a function of rescale slope and
   * intercept. */
  itkGetEnumMacro(InternalComponentType,IOComponentType);

But how to use DicomImageReadWrite.cxx and DicomImageViewer.cxx to set
actions of these files (read and show .dcm) for buttons?

Thanks in advance for any advice! 

--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Cocoa-app-with-ITK-VTK-to-read-DICOM-file-tp6671082p6687134.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list