Re: Bayer Pattern images in Pixbuf or Pixmaps
- From: Tor Lillqvist <tml iki fi>
- To: gtk-app-devel-list gnome org
- Subject: Re: Bayer Pattern images in Pixbuf or Pixmaps
- Date: Wed, 10 Aug 2005 01:31:11 +0300
Stefan Kost writes:
it would be helpful if you tell us what the heck a 'bayer pattern' is ...
See for instance http://www.cambridgeincolour.com/tutorials/sensors.htm .
That was the first Google hit when searching the words "bayer array"
(without the quotes).
I was wondering if Pixmaps or Pixbufs support Bayer Pattern
Nope. That would be way too application domain specific for GTK+.
if there is a simple conversion technique to get a Bayer
Pattern image into an RGB or other image format that could be used
properly by a Pixbuf or Pixmap.
You mean a simple demosaicing (debayering) technique? Well, a trivial
one like "nearest neighbour" for the missing colour channels of each
pixel is probably "simple", but it isn't good qualitywise.
High-quality demosaicing algorithms are not simple. See for instance
The Open Source dcraw program
(http://www.cybercom.net/~dcoffin/dcraw/) uses an algorithm called
"Interpolation using a Threshold-based variable number of gradients"
described in http://www-ise.stanford.edu/~tingchen/algodep/vargra.html
] [Thread Prev