Re: [Oiio-dev] Histogram calculation

2012-07-04 Thread Kevin Wheatley
Just to add to this, when I typically want to draw a histogram for analytical reasons I like to see every bin clearly. This is usually to look for missing bits or bins in integer image representations. Given that we typically need 10 bits worth as a minimum and increasingly 12, I would want

Re: [Oiio-dev] Histogram calculation

2012-07-04 Thread Stefan Stavrev
Kevin, can you please provide more details? You mean 10 bits per channel? That means 1024 intensity values, and width of histogram that much? And why would you want to search for missing bins? As far as I know the histogram is used to give you a bird eye view of the values distribution.

Re: [Oiio-dev] Histogram calculation

2012-07-04 Thread Stefan Stavrev
Wow Kevin, thanks for the long reply ;). This will be tricky to handle, but I might deal with some common cases. What is a good upper limit for histogram width? 4096? For 16-bit image I can't have width 2^16 and draw bins 1:1, it is too much obviously. Do you have some big histogram image I can

Re: [Oiio-dev] iv - tests and more thoughts

2012-07-04 Thread Chris Foster
On Wed, Jul 4, 2012 at 1:23 PM, Larry Gritz l...@larrygritz.com wrote: I dunno, I'm tempted to think that in exchange for that conceptual cleanliness, you're paying with a second type to juggle and understand when each is applicable. Right. After looking back at the code, I think the way we

Re: [Oiio-dev] Histogram calculation

2012-07-04 Thread Chris Foster
On Wed, Jul 4, 2012 at 11:51 PM, Stefan Stavrev stavrevste...@gmail.com wrote: What is a good upper limit for histogram width? Why specify an upper limit? Just have a default (small) size, and let the user override it as they please. If the user explicitly says they want 1 bins just assume

Re: [Oiio-dev] Histogram calculation

2012-07-04 Thread Will Rosecrans
On Wed, Jul 4, 2012 at 6:51 AM, Stefan Stavrev stavrevste...@gmail.com wrote: Wow Kevin, thanks for the long reply ;). This will be tricky to handle, but I might deal with some common cases. What is a good upper limit for histogram width? 4096? For 16-bit image I can't have width 2^16 and