• 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: NSBitmapImageRep bitmapData contains all zeroes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBitmapImageRep bitmapData contains all zeroes?


  • Subject: Re: NSBitmapImageRep bitmapData contains all zeroes?
  • From: "Raphael Sebbe" <email@hidden>
  • Date: Fri, 25 Apr 2008 16:49:07 +0200

Hi,
how do you "convert" CIImage to NSBitmapImageRep ?

Raphael

On Fri, Apr 25, 2008 at 4:34 PM, Nick Forge <email@hidden> wrote:

> I am working on a Computer Vision project that uses real-time image
> processing. I am grabbing frames using QTKit, then converting the resulting
> CVImageBufferRef into a CIImage, and then converting that into an
> NSBitmapImageRep. I know that my resulting NSBitmapImageRep is fine, since I
> am viewing it by sticking it in an NSImage and then popping that into an
> NSImageView (the QTKit Capture Preview has a 1/2 second lag time - which is
> unacceptable for this project). Everything works as it should, but when I go
> to grab the raw pixel data from the NSBitmapImageRep like so:
>
> unsigned char *bitmapData = [self bitmapData];
>
> (btw it says "self" because this is from a category of NSBitmapImageRep)
>
> The resulting array, bitmapData, is an array of zeroes! Every pixel sample
> in bitmapData is zero, yet I can draw the image and the image IS there.
> What's going on? Any suggestions as to what I may be overlooking?
>
> Thanks in advance,
> Nick Forge
> _______________________________________________
>
> 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: NSBitmapImageRep bitmapData contains all zeroes?
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >NSBitmapImageRep bitmapData contains all zeroes? (From: Nick Forge <email@hidden>)

  • Prev by Date: Re: QTMovie grabing while playback
  • Next by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Previous by thread: NSBitmapImageRep bitmapData contains all zeroes?
  • Next by thread: Re: NSBitmapImageRep bitmapData contains all zeroes?
  • Index(es):
    • Date
    • Thread