Re: I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread Steve Christensen
It seems like you're jumping through a lot of hoops. If you picked up where David left off, you could do something like this. (Typed in Mail so YMMV.) CGImageSourceRef source = CGImageSourceCreateWithURL(urlToFile, (CFDictionaryRef)[NSDictionary dictionaryWithObject:[NSNumber numberWithBO

Re: I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread Robert Lorentz
On Jun 1, 2010, at 2:16 PM, David Duncan wrote: > On May 31, 2010, at 5:40 PM, Robert Lorentz wrote: > >> What I REALLY want to achieve (this can be poor performance): take a JPG (or >> PNG is great too) file on disk, result with a float *bytes; array holding >> the floating point precision dat

Re: I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread David Duncan
On May 31, 2010, at 5:40 PM, Robert Lorentz wrote: > What I REALLY want to achieve (this can be poor performance): take a JPG (or > PNG is great too) file on disk, result with a float *bytes; array holding the > floating point precision data from the JPG as R G B A format. Anything that > achie

Re: I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread Jens Alfke
On May 31, 2010, at 5:40 PM, Robert Lorentz wrote: > CGContextRef context = CGBitmapContextCreate(rawData, width, height, > bitsPerComponent, bytesPerRow, colorSpace, kCGBitmapFloatComponents); > > CGColorSpaceRelease(colorSpace); > > // draw the CIImage to the 'context'... this is probably th

I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread Robert Lorentz
I've been struggling with this issue for a long time, and have not found any working/good example on the net or in any chat.. What I REALLY want to achieve (this can be poor performance): take a JPG (or PNG is great too) file on disk, result with a float *bytes; array holding the floating poin