a comparison of the before and after

Compensating For Your TVs Backlight

[Pekka Väänänen] has a Panasonic TV with a broken backlight that creates an uneven pink/green color. While it isn’t a huge deal for most films, black-and-white films tend to show the most effect. So, by modeling the distortion as a function, [Pekka] set out to find an inverse function that corrects the distortion before it gets to the TV.

However, the backlight doesn’t emit enough light for some colors, which means the blue and green channels need to be dimmed. As mentioned earlier, the distortion isn’t even, so the distortion needs to be captured and then calculated.

He took a few pictures with his phone, corrected the perspective, and applied a blur. The camera also has some distortion but works as a first approximation, but that isn’t something he covered here. Next, he set up a webcam and pointed it at the TV, trying to find good gain and offset values with a bit of Python.

 

Now it just becomes a problem of minimizing the per-pixel difference. Ultimately he just went for a random approach rather than an annealing or hill-climbing approach. Now that he had a function to apply, it was just a matter of adding a custom shader to his video player, which includes a live shader editor. He had to hack in support for an external texture, but he is kind enough to include the shader code and the patch in the article.

The result is excellent, and it’s a great use for an old TV. But perhaps, in some cases, it might be worth replacing the backlight entirely.

Hardware Store White Balance Reference

We live in a time in which taking pictures is preposterously easy: take out your phone (assuming it wasn’t already in your hands), point it at something, and tap the screen. The camera hardware and software in even basic smartphones today is good enough that you don’t need to give it much more thought than that to get decent pictures. But what if you want to do better than just decent?

Ideally you’d take photos lit by high temperature lights, but failing that, you might need to compensate by adjusting the white balance during post-processing. But to accurately adjust white balance you need a pure white reference point in the image. Thanks to some diligent research by the folks at the FastRawViewer blog, we now have a cheap and widely available source for a pure white reference material: PTFE pipe tape.

Alright, we know what you’re thinking: how hard could it be to find a white object? Well, if you’re talking about really white, it can actually be quite difficult. Take a walk down the paint aisle of your local hardware store and see just how many “whites” there actually are. Think the shirt your subject is wearing is really white? Think you can use the glossy white smartphone in their hand as a reference? Think again.

By taking a rubber eraser and wrapping it with a few layers of the PTFE tape, you can create a white reference that’s so cheap it’s effectively disposable. Which is good, because protecting your white reference object and keeping it clean can be a challenge in itself. But with a PTFE tape reference, you can just chuck the thing when the photo shoot is done.

Combine this cheap white reference with some of the DIY photography lighting setups we’ve covered in the past, and you’ll be well on the way to getting better images to document all your projects. Just remember to submit them to us when you’re done.

[Thanks to Keith Olson for the tip.]

Color Correction Patch For PS3 Eye

ps3-eye-color-correction

[Max] was happy to see that the PlayStation 3 Eye has support in the newer Linux kernels. Having sat in his closet for quite some time, this would give the camera another chance at usefulness. Unfortunately, the driver doesn’t include framerate selection and color correction so he set about writing a patch to control the color settings. As you can see above, his success greatly improves the image quality you get from the device.

We get the feeling that the camera peripherals for Sony’s gaming devices seem like a good idea but don’t have much staying power as a realistic gaming interface. With contributions like [Max’s], they can be re-purposed. The PS2 had its own, the EyeToy, which has long enjoyed driver support for Linux. The NUI Group does a lot of work with multi-touch and recommends the PS3 Eye for use with their projects because they’re inexpensive with high frame rates and decent picture quality.

Great work [Max]. It looks like he’s sent this patch upstream to be considered for incorporation into the kernel’s webcam module.