• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DICOM images in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DICOM images in Cocoa


  • Subject: Re: DICOM images in Cocoa
  • From: "Ken Ferry" <email@hidden>
  • Date: Wed, 13 Aug 2008 01:55:47 -0700

Converting to JPEG would work, of course.

If you do link in libraries that can render DICOM, you can add direct
support to NSImage.  You do this by implementing a subclass of
NSImageRep, DICOMImageRep.  The minimal implementation of an
NSImageRep subclass is just the method -draw, which should draw into
the rectangle {{0,0},[self size]}.  If you want methods like -[NSImage
initWithData:] and -[NSImage initByReferencingURL:] to work, you
should also implement +imageRepsWithData:, +canInitWithData:, and
+imageUnfilteredFileTypes.  Basically, look at the NSImageRep class
docs.  They describe which methods are useful to override.

Implementing an NSImageRep subclass is pretty similar to implementing
a custom view.

-Ken

On Tue, Aug 12, 2008 at 11:28 PM, Martin Carlberg <email@hidden> wrote:
> Try this: http://www.osirix-viewer.com/
>
> 13 aug 2008 kl. 08.12 skrev Devraj Mukherjee:
>
>> Hi all,
>>
>> My application requires to display DICOM image files. Preview doesn't
>> support DICOM by nature so the thought at the moment is to use
>> something like ImageMagick and convert these images to something JPEG
>> on the fly?
>>
>> NSImage doesn't seem to be able to take a DICOM stream. Is this the
>> best of doing this? Does anyone know of a Cocoa DICOM reader library?
>>
>> Thanks a lot.
>>
>> --
>> "I never look back darling, it distracts from the now", Edna Mode (The
>> Incredibles)
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: DICOM images in Cocoa
      • From: Thomas Engelmeier <email@hidden>
References: 
 >DICOM images in Cocoa (From: "Devraj Mukherjee" <email@hidden>)
 >Re: DICOM images in Cocoa (From: Martin Carlberg <email@hidden>)

  • Prev by Date: Re: Problem with friend function and gcc 4.2 with objective-c++
  • Next by Date: Re: Cocoa and SOAP without WebServicesCore
  • Previous by thread: Re: DICOM images in Cocoa
  • Next by thread: Re: DICOM images in Cocoa
  • Index(es):
    • Date
    • Thread