Sunday, December 13, 2015

Calibrating Lightroom colors

When I post-process a photo in Lightroom, I usually work top down through the settings. Sadly the Camera Calibration setting is at the bottom, so I've just spent time manually correcting colors which should have been corrected through calibration. Any of the options in the Camera Calibration menu should have been done first. In this post, I'll show how to calibrate the colors for your specific camera and make this calibration the default when you import an image from that camera.

First off, you'll need to buy a few things: a color card and some lightbulbs. For the color card, I use a ColorChecker Passport from X-rite. You'll also want to get two lightbulbs, one at 2850K color and the other at 6500K. The 2850K is easier to find and I found one at a local hardware store (about $5 for a pack of 4.) You can do the calibration with just one lightbulb if that's all you can find. For this article, I only found a 2850K. The bluest I could find was 5000K.

Next, take a camera raw photo of the color checker with a single lightbulb (it's important that you shoot this photo in raw mode, not JPG.) Do this for each of the light bulbs, or just one if that's all you have. Now import these photos into Lightroom and export them as DNG files (Adobe's raw format.)

Unprocessed photo under 2850K light bulb.

You now need to download the calibration software from Adobe's website: DNG Profile Editor

After downloading, run the editor and load your photos. Each photo will have four colored circles on the image. Drag these colored circles to the matching four corners of your color card. On Chart tab, select the color of the lightbulb for the image (2850K) then click the "Create Color Table..." button. You can repeat the above for a 6500K image if you have one.

Your image of the color chart should now be displayed with proper white balance and you now have a calibration for your camera. The DNG file already knows what camera took the picture, so the calibration you created will only show up in Lightroom when editing photos taken on that same camera.

Now, jump to the Options tab and type in a Profile Name. For my example, I used "Tim's 5D3." And finally, go to the "File..." menu and choose "Export <camera> Profile..." This will write the calibration file to a location that Lightroom can find.

Now run Lightroom again (if it's already open, close and re-run it to make sure it loads the calibration file.) Choose a file without any edits such as the color card photo you just took. Go to the Camera Calibration section, and change the profile to the one you just made. It probably says "Adobe Standard". When I click on it, I also see Adobe's defaults for my Canon, and at the bottom "Tim's 5D3".

After selecting your profile, go to the Develop menu and select "Set Default Settings..." When the dialog appears, you want to click the button labeled "Update to Current Settings." This is now the new default when you import a photo taken on this camera. Any other changes you made to this image will also be the new defaults, so make sure you reset all your edits before setting the new profile and updating the settings. While I was here, I also went ahead and enabled lens correction in my defaults.

Below are two images with the Adobe Standard profile and the profile I just created. The Adobe Standard image has a slight green tint and the image from my camera's profile looks more natural and more closely represents what I saw when taking the photo.


Adobe Standard


Tim's 5D3 Profile

Update!

It turns that finding a 6500K lightbulb isn't that hard after all, especially if you search for 6500K instead of 6400K. Whoops. So my new lightbulb just arrived, and this time I was able to create a calibration for both 2850K light and 6500K and now my calibration looks very close to the Adobe Standard. Interesting. I did kind of like the cooler look I got when only calibrating to 2850k. When toggling between the newest calibration and Adobe Standard, there is still a small differnce, but nowhere like I showed. I still think it's important to do this for each camera you own. Soon I will calibrate several of my other cameras as well and see what the difference is.

Thursday, December 10, 2015

Adam Ruins Cars

Last night I caught Episode 3 Season 1 of Adam Ruins Everything. On this episode, he ruins cars. Quite a fascinating episode and I found it interesting how almost everything he said is wrong with cars can be fixed with my future vision as outlined in my previous post.

1. We're stuck with a dealer model for buying cars. No online shopping or direct buying from the manufacturer. In my vision, car ownership is dead and we just get rides in them.

2. Insurance is an issue, but when cars become autonomous and they are no longer owned by individuals, we will no longer need car insurance.

3. Our cities and towns are turning into parking lots. Well, without car ownership, an autonomous vehicle shows up in front of your house and takes you to your destination. It then drives off to give the next person a ride. Parking lots will be a thing of the past and we get to reclaim our cities.

These are just a few points I wanted to mention. But really, everyone should be watching Adam Ruins Everything. Great TV show.

Sunday, December 6, 2015

The Next Revolution

As a computer programmer, I have always had a fascination with teaching computers to perform amazing things. Specifically, teaching computers to replicate tasks that humans can perform. This includes tasks such as deep learning neural networks and my current interest: computer vision. With this as my background, it was with great excitement that I followed the DARPA Grand Challenge in 2004 & 2005. The Department of Defense was offering a $1 million prize to anyone that could develop an autonomous vehicle that could drive a set course set through the Mohave desert. No vehicle completed the challenge in 2004, but in 2005 four teams completed the course in the allotted time. This was a huge breakthrough in robotics and got the engineering and business community to start taking autonomous vehicles (self-driving cars) seriously. When I was a kid in the 1970's I remember my dad telling me in the future cars would drive themselves. I couldn't imagine how they would work, but my dad explained that we would lay cables in the roads and the cars would follow the cables. Of course! But would we really put cables in all the roads? That would require a massive undertaking. A few years later I read an article (Popular Science I believe) that scientists in California had embedded some cables in a road and were testing this exact idea. But this seemed such a complicated way of going about this, but no one (well, not me anyway) was imagining that 30 years later we could write computer programs that could see the world around the vehicle and learn how to drive safely through the world just like a human.

A number of people working on the DARPA Grand Challenge vehicles were soon hired by Google and a few years later shocked the world by demonstrating they already had an autonomous vehicle driving around California roads. At the same time, road cars were already getting adaptive cruise control with limited lane following features and GPS mapping was included in nearly every car sold. As I write this in 2015, nearly every car manufacturer is working on autonomous driving features for their cars and it is believed that fully autonomous cars will be available for purchase within two years. Tesla has already updated its fleet of Model S sedans (well, those that can support it) with an advanced cruise control that can follow lanes on the freeway.

For quite awhile I have been thinking about the implications of autonomous vehicles and I believe they are about to cause the next great revolution and forever change how we live. Below is a list some of the big changes I believe will happen as a result of this technology and why it is a revolution and not a gimmick.

SAFETY.

This is the topic most people are focused on right now and are using as the selling point for autonomous vehicles. The naysayers will say that they can't trust a computer, but can you really say you can trust humans either? Autonomous vehicles will continue to learn and can only get better, whereas humans are limited in their capabilities and make mistakes. Machines never get tired. They don't get intoxicated. They don't have bad days at work. They aren't distracted. In fact, humans barely notice what's going around them compared to an autonomous vehicle which can see every single thing happening around it hundreds of times per second. A machine has split second reaction times. When all cars are autonomous, they can communicate with one another and warn each other of road conditions. Accidents and injuries to humans will soon be a thing of the past. When this happens, cars will be built without safety equipment. No more heavy crash structures, restraint systems, or airbags. You'll be able to move freely throughout the vehicle. Want privacy, just close the curtains on the windows.

INSURANCE.

At first, insurance will get complicated. Who is to blame when there is an accident? To get this technology off its' feet, the manufacturer's are already stating they will accept liability in case of accidents. As cars become more and more autonomous, the need for insurance is going to diminish because of the previous point: autonomous cars will reach a point of no accidents. There will still be “recreational vehicles” in the foreseeable future that are human driven for fun though probably not allowed on freeways. As autonomous vehicles reach a majority, human driven cars will take the brunt of liability insurance it will become too costly for humans to drive cars on public roads and driving a car will become of memory.

EFFICIENCY.

When all the cars on the road are autonomous, the rules of the road change. In fact, rules exist to make people play well with each other. Machines need a smaller set of rules. Autonomous vehicles will drive at higher speed on long roads. They can drive close together in packs to reduce wind drag and increase energy efficiency. They can negotiate intersections safely without the need for stop signs and red lights. Without human drivers, traffic jams will be a thing of the past. The cars will know the road conditions at all times and can route around troublesome areas. As safety equipment and human controls are removed from cars, they will become increasingly lighter weight and more energy efficient. Travel time will reduce dramatically for many people. Traffic will no longer make you late. No more road rage and being angry at other drivers. Since you don't need to drive, you can also use your time more efficiently. Start getting stuff done for work, or read that novel you've been enjoying, or catch up with some shows on Netflix. No more sitting for hours behind the steering wheel going nowhere.

FREEDOM.

Driving a car is a great pastime for may of us, myself included. It's not going to be nice losing the ability to drive our cars anymore and some people aren't going to take this sitting down. But autonomous vehicles are going to open up vast vistas of travel to many people that could have never hoped to drive a car. People with disabilities and the elderly who can no longer safely operate a vehicle will suddenly have the opportunity to travel at any time to go anywhere. For years, I have thought about how horrible it's going to be when I get older and my driver's license gets taken away and I can no longer be independent. But now, I'm excited knowing that by the time I'm too old to drive, autonomous vehicles will be commonplace. Have you been alone and felt ill and were unable to drive yourself to the doctor's office? No problem now. Do you have car trouble? Pull to the side of the road where another car picks you up within minutes and you continue your trip. If the autonomous vehicle senses an issue with the car, it can take itself to the shop.

OWNERSHIP.

This is where the true revolution begins. When you stop and think about modern society, you begin to realize how insane we are. We all own cars. Yet how often do we drive them? I drive 10 to 15 minutes to work, where my car then sits in a huge parking lot all day, then I drive 10 or 15 minutes back home, where it then sits in a purpose-built garage in my house. So, on a given workday, my car is parked 98% of them time! Every member of my household has his/her own car. All of my neighbors have cars. I look down the street and there are two to three cars in every driveway. With autonomous vehicles, sharing cars is simple, and they never need to park. Imagine every single car can be shared and we not responsibilities of ownership. If I need a ride anywhere, there will always be a car somewhere in the vicinity. We've had this with limited availability already with taxis, and recently with private drivers through Uber, and numerous car sharing businesses. But with all these current systems, the inventory of cars is limited and getting a ride is still a waiting game. When every car is shared, things change radically. You just tap a button on your smartphone and the closest car picks you up and takes you where ever you want to go. My office will now have grassy parks instead of parking lots. When I go Christmas shopping I don't need to circle the mall for 45 minutes trying a find a space to park. I no longer drive to long-term parking at the airport and then ride the bus to the terminal. No more parking fees. No more stashing Quarters in the car for parking meters. The autonomous cars will most likely be all electric, such as Teslas, so they can charge themselves when needed. No more range anxiety with an autonomous electric vehicle. When the battery starts getting low, the car can stop for a charge and you can switch to a freshly charged car that is waiting for you. After 200 to 300 miles, you need to stretch your legs anyway. Finally, when car ownership is removed from the equation, so is car theft.

FUN STUFF.

If cars can drive themselves, then they can do some tasks without a human at all. Package and mail delivery won't need a human driver anymore and can happen 24 hours a day. Did you buy too much stuff at Home Depot? Load up 3 cars or trucks with everything you bought and send them to your house where they'll be waiting when you get home. Your friend who lives 20 minutes away wants to borrow something from you, so you toss it in a car and the car drives it to their house. It doesn't even need to drive back. Want to go for a long hike, have a car drop you off at the trailhead and have it, or another car, waiting for you 10 miles away at the other end of the trail. Going for a nice walk and it suddenly starts to rain? Grab your phone and call the closest car to come rescue you and get you home. As the cars get more intelligent, they'll predict your patterns and they'll be waiting for you after work. They'll be lined up at the grocery store waiting in the check out lines. Your child gets out of school at 2:30 but you can't leave work to pick him up? Have an autonomous car pick him up. The possibilities are endless when you start thinking about it.

*  *  *


That is my vision of the near future. No more car ownership, no more parking lots, no more insurance, and no more accidents. A car picks you up, drops you off, then repeats this with the next person who needs a ride. With cars getting maximum use, the number of cars manufactured will drop a hundred-fold. We just pay for the time or mileage we travel. Anyone at any age or physical ability can get a ride. I will miss driving my car, but I also can't wait for all the new possibilities this will bring! And the most amazing thing is I don't think we need to wait long. The first steps of this vision are already starting and in ten years we will be 50% of the way there. Approaching the final goal of 100% autonomous vehicles could take significantly longer, but once we reach a tipping point, legislation could make it happen even sooner.