• 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: Decompressing JPEG data into specific format, getting raw pixels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decompressing JPEG data into specific format, getting raw pixels


  • Subject: Re: Decompressing JPEG data into specific format, getting raw pixels
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 16 Aug 2017 19:29:34 -0400
  • Organization: Rogue Research Inc.

On Tue, 15 Aug 2017 10:07:47 -0700, Doug Hill said:

>>> Check out CoreImage ColorControls filter, which has a Saturation parameter:
>>
>> Thanks Doug and Jonathan for the CIImage suggestion, I'll take a
>closer look.  But one thing I don't see at all in CIImage.h is how to
>get an NSData of the pixels of a CIImage.  There are init methods that
>take NSData, but nothing I see gives NSData.
>>
>> I should note that I have no need to draw this data whatsoever.  I
>only need access to the raw pixels to do some custom processing on.
>
>NSBitmapImageRep can be created from a CIImage, and has methods for
>creating an NSData version of the bitmap, or just getting the bitmapData
>and/or data planes.

Right, but then I'm back where I started. :(  Because there's (apparently) no
way to ensure that the NSBitmapImageRep I get is in a particular format, and I
absolutely need 8 bit per pixel & greyscale.

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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: Decompressing JPEG data into specific format, getting raw pixels
      • From: Jens Alfke <email@hidden>
    • Re: Decompressing JPEG data into specific format, getting raw pixels
      • From: Ken Thomases <email@hidden>
References: 
 >Decompressing JPEG data into specific format, getting raw pixels (From: "Sean McBride" <email@hidden>)
 >Re: Decompressing JPEG data into specific format, getting raw pixels (From: Doug Hill <email@hidden>)
 >Re: Decompressing JPEG data into specific format, getting raw pixels (From: "Sean McBride" <email@hidden>)
 >Re: Decompressing JPEG data into specific format, getting raw pixels (From: Doug Hill <email@hidden>)

  • Prev by Date: Re: initWithWindowNibPath and Base Internationalization
  • Next by Date: Re: Decompressing JPEG data into specific format, getting raw pixels
  • Previous by thread: Re: Decompressing JPEG data into specific format, getting raw pixels
  • Next by thread: Re: Decompressing JPEG data into specific format, getting raw pixels
  • Index(es):
    • Date
    • Thread