Selection tools: Part III, the Magic Wand

Compared to many other types of software, graphics programs have some of the simplest or most descriptive terms to describe various functions. It is not hard to guess the purpose of the Crop or Text tools. You may not immediately understand the roles of the Magic Wand, but after seeing what it can do, it’s not hard to see why it has this name.

The Magic Wand bases its selections primarily on colour. The advantage of this technique is that it can find natural edges in a flash, so there is less need for painful edge-tracing.

The process behind the Magic Wand is simple. When you click on part of your image, anything nearby that is a similar colour will also be selected (where you initially click is known as the ‘sampled area’ or ‘sampled pixel’). For example, click part of a blue sky with the Magic Wand and you’ll find that the most of the sky will be selected.

Tolerance

The Magic Wand’s tolerance value will determine how similar a colour has to be to the sampled pixel in order to be included in the selection. Set a value of zero and only that precise colour will be selected; conversely, if the tolerance is set too high, it may start to include unwanted parts of the image, particularly at borders. Trying different values will help select the maximum desired area, but don’t get obsessed with trying to catch everything in one click. As discussed later in this column, there are ways to fine-tune selections.

Contiguous selection

Depending on your program, there may-be an option for a ‘contiguous’ selection. This means that in order to be included with the selection, pixels must be touching other pixels than fall within the tolerance range — and connect to the sampling point. For example, if you have a blue sky that it is cut down the middle by a white cloud, then using the Magic Wand setting on the left side will select only the left section of sky (with the contiguous setting turned on). This is because there is no connecting blue area between both halves. If there was just a small sliver of blue connecting both halves, then the entire blue sky would be highlighted.

If you turn off the contiguous option, everything in the picture that falls with the tolerance value will be highlighted. If someone is wearing a blue shirt and you sample the sky without the contiguous setting, the shirt will also be selected (assuming it falls with the same tolerance range). Both techniques have their uses, but the non-contiguous option features more in colour management and high-end techniques. It can also be used to remove purple fringing (purple artefacts introduced by digital cameras). By default, most Magic Wands are set to contiguous.

Tricks to use

One overlooked but exceptionally useful aspect of any selection tool is inversion. In other words, you exchange the selected sections with those that were not selected. Most programs have this feature listed under the Selection menu or similar (such as Select-Inverse or Selection-Invert). The reason this option is so powerful is that frequently it is easier to highlight everything you do not want and then use the invert option to highlight the desired object.

Consider the picture of the polar bear shown here. It was far easier to select the water (which is mainly blue) than to select the bear, which is black, yellow, white and other colours. Even using this technique, the Magic Wand does not make a perfect selection on the first attempt. A small part of the left side of the bear’s head ended up in the wrong selection zone, and smaller dots in the water were not included, see here. There are many solutions to these problems, but one of the easiest is to use the Freehand lasso tool.See understanding selection tools part one. In programs such as Paint Shop Pro and Photoshop, if you hold down the <Shift> key while using any selection tool, the new area you highlight will be added to the overall selected area. Likewise, <Alt> will subtract the new area. In the bear image, most of the hard work had been done with the Magic Wand, so the Freehand lasso was used in a flash to tidy up the stragglers. The ‘add’ option was used for the small dots in the water and the subtract option for the small area on left hand side of the bear’s head. Finally Selection-Invert highlighted only the bear.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Scott Mendham

PC World
Show Comments

Cool Tech

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Breitling Superocean Heritage Chronographe 44

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?