Astrophotography mode: Here's how the Pixel 4's killer new camera feature works

PIxel 4 in-hand
PIxel 4 in-hand (Image credit: Hayato Huseman / Android Central)

There's been a lot of hype surrounding the Pixel 4's new astrophotography mode, with plenty of users (including myself!) posting jaw-dropping shots of the stars in the sky all over social media. Astrophotography, the capturing of stars and other celestial objects, isn't new to smartphones; Huawei's P30 Pro featured this ability all the way back in March, but as per usual, Google's approach is a bit different.

The Pixel 4 uses a combination of long exposures, HDR+, and Semantic Segmentation to pull off miraculous results.

If you've ever tried to shoot the night sky with a dedicated camera like a DSLR, you're undoubtedly familiar with the process of shooting long exposures, where you allow the camera's shutter to stay open for longer than usual to capture more light. This works well with a large sensor, but the comparatively tiny sensor in a phone like the Pixel 4 naturally pulls in less light, so it needs to expose for even longer.

The problem with exposing for too long, though, is that the Earth's natural rotation starts to affect how the sky is captured, and you'll quickly end up with star trails, or white lines in the sky as a result of the stars' different positions at the beginning and end of the exposure. So how does Google compensate for this while still allowing the Pixel 4 to take in enough light for a clean image?

Astrophotography is built into the Night Sight camera mode in the Pixel's stock camera app, and kicks in automatically when it detects dark enough conditions. A capture can take as long as four minutes to complete, but it isn't a four-minute exposure; instead, the Pixel takes a succession of 15-second exposures and stitches them together in real time, using the phone's gyroscope and computational data to align each new exposure with the last. Think of it like an advanced form of HDR+, with some exposures prioritizing highlights and others shadows.

Google also has a new feature called Semantic Segmentation that, similar to Apple's Deep Fusion, identifies different objects in the shot and processes them differently. This lets the PIxel 4 sharpen the stars and brighten the foreground, for instance, independently of each other. In addition, there are new enhancements to the noise reduction processing that helps fight against random white pixels that would otherwise appear in shots.

Combine all of this tech together, and the Pixel 4 is able to pull off miraculous photos in even the darkest of conditions, provided you keep it in one place for long enough. While one of the merits of Night Sight is the ability to capture impressive low light photos even while shooting handheld, the nature of any long exposure means you'll need to prop the Pixel 4 against a nearby object or mount it on a tripod.

Whether or not you understand how it works, the important thing with astrophotography is that you go out and take some new shots of your own! Grab a tripod and your Pixel 4, go out somewhere with as little noise pollution as you can manage, and get to shooting.

Hayato Huseman

Hayato was a product reviewer and video editor for Android Central.

  • I would love to have the Astrophotography feature but don't want a Pixel 4. Hopefully this is a feature that will still be around for the Pixel 5.
  • The APK has been around since launch basically. Look for Gcam 7.2.
  • What good is a wide angle lens for astrophotography? None.
  • That's wrong. If you use a DSLR for astrophotograpy, it is best to use a wide angle which will automatically be a small focal length. This makes it possible to expose longer without seeing star trails.
    If you want to zoom in, you will be looking at a smaller section of the sky and starts will pass by much faster in such a smaller section which corresponds to more pixels on your chip than with a wide angle, hence the trails. So for any zoom, zoom lens or in general a large focal length, you will need a tracking mount that follows the movement of the stars.
    There is a rule of thumb for the maximum exposure depending on the focal length, devide 500 by the focal length and you get your maximum exposure time without star trails.
    So for a wide angle such as 14mm it will be a round 35 seconds and for a zoom with 100mm it will be 5 seconds, so not enough time to capture a lot of light for more details of the night sky.
    Of course if you want to take images of jupiter or some nebula and galaxies, a wide angle is of no use as you will want to zoom in on those smaller objects, but then you'll need a telescope anyway. This would also fall under a subcategory of astrophotograpy called deep sky photography, at least the nebula and galaxy type of photos.