Re: NSBitmapImageRep and alpha channel

2011-11-13 Thread James Merkel
the NSBitmapImageRep, and an alpha channel is present). The histograms in that case have gaps in them (certain levels seem to be under-represented). Histograms of what? Color component distributions? How do you determine that levels are under-represented? If the pattern of gaps is regular

Re: NSBitmapImageRep and alpha channel

2011-11-13 Thread Quincey Morris
On Nov 13, 2011, at 11:11 , James Merkel wrote: This is kind of interesting -- if I rotate the image in Preview (rather than Image Capture), then the histogram looks normal. Looking at the NSBitmapImageRep from Preview image, the order is RGBA and there is no reported alpha channel.

Re: NSBitmapImageRep and alpha channel

2011-11-13 Thread James Merkel
On Nov 13, 2011, at 12:34 PM, Quincey Morris wrote: On Nov 13, 2011, at 11:11 , James Merkel wrote: This is kind of interesting -- if I rotate the image in Preview (rather than Image Capture), then the histogram looks normal. Looking at the NSBitmapImageRep from Preview image, the order

NSBitmapImageRep and alpha channel

2011-11-12 Thread James Merkel
the NSBitmapImageRep. Things seem to work ok except for images that have an alpha channel (that is, bitsPerPixel = 32 from the NSBitmapImageRep, and an alpha channel is present). The histograms in that case have gaps in them (certain levels seem to be under-represented). Some specific images

Re: NSBitmapImageRep and alpha channel

2011-11-12 Thread Quincey Morris
and create histograms from them using pixel data from the NSBitmapImageRep. Things seem to work ok except for images that have an alpha channel (that is, bitsPerPixel = 32 from the NSBitmapImageRep, and an alpha channel is present). The histograms in that case have gaps in them (certain

Re: NSBitmapImageRep and alpha channel

2011-11-12 Thread James Merkel
the destination (the background). I read images from files and create histograms from them using pixel data from the NSBitmapImageRep. Things seem to work ok except for images that have an alpha channel (that is, bitsPerPixel = 32 from the NSBitmapImageRep, and an alpha channel is present