Compositing 48 with 24 bit

Moderator: jsachs

Post Reply
tomczak
Posts: 1367
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Compositing 48 with 24 bit

Post by tomczak »

Dan asked it in passing in another posting - this is interesting, at least theoretically:

What happens when a 48bit image is composited with a 24bit one: the result is a 48bit image that looks like the overlay, but the colour precision is actually 24bit still not 48, right?

What happens mathematically when a 24bit image is subtracted from a true 48bit one?
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4210
Joined: January 22nd, 2009, 11:03 pm

Re: Compositing 48 with 24 bit

Post by jsachs »

When compositing 24-bit and 48-bit images, the result is always a 48-bit image, regardless of which is the base and which is the overlay image. The 24-bit image is automatically converted to 48-bit before compositing.
Jonathan Sachs
Digital Light & Color
tomczak
Posts: 1367
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Re: Compositing 48 with 24 bit

Post by tomczak »

And the automatic 24 to 48 bit conversion fills the lower bits with zeros, not random bits, right?
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4210
Joined: January 22nd, 2009, 11:03 pm

Re: Compositing 48 with 24 bit

Post by jsachs »

Not quite - conversion to the closest value is done by table lookup where v16 = (65535*(v8+127))/255 - conversion the other way is done by: v8 = (255*v16 + 32767)/65535.
Jonathan Sachs
Digital Light & Color
Post Reply