Need Photoshop “Difference” Plugin

I want to make an image layer that consists of all the parts of a second layer that differs from a third layer.  That is, for each pixel, compare layer 1 and layer 2.  If they differ, put the layer 2 pixel in that position in layer 3.

I haven’t found a way to do this with the image calculation stuff yet, though I have the germ of an idea about using this to create a mask giving those pixels, and then make the layer from that.

Has anybody already done this?

Why, you ask, do I want this?  Because I’m being silly / anal, basically. There are still  a few tools that work most usefully by modifying an image layer. I’d like to be able to make a background copy layer, do some work with those tools, then automatically create a layer containing only the pixels I changed, and delete the background copy.  This makes it much easier to take a second (or fifteenth) pass at some bit of retouching without putting other work at risk, and is pleasingly consistent with the philosophy of lossless editing.

Because I’m using it on individual layers of a Photoshop image, a standalone utility (even if it understood Photoshop files) wouldn’t be very convenient; I need a plugin, or a Photoshop action.

ETA: The germ didn’t work, but another  new idea did pretty well. The key point was using threshold on the differences. I do each channel separately, apply threshold to each, and combine the resulting masks, then make a new layer via copy. The action doesn’t properly clean up after itself yet, and I haven’t tested it in the presence of existing alpha channels or other complexities. And I haven’t applied anything stronger than visual tests to its accuracy. But I’m already using it.

What is “Space Opera”?

Since it’s not an official term anywhere, it’s never had any kind of official control of the definition.  So people probably don’t all agree.  And it may be evolving over time; language does that, especially English.

The Wikipedia article (at least as of today) seems to capture this idea, and has more details about the history and evolution.

It was a solidly pejorative term originally, when Wilson Tucker invented it. However, by the time I encountered it, it was at worst ambiguous.

As many of you probably know, I’m a big Doc Smith fan. He’s often considered the defining example of space opera, in the good senses. So I’m not willing to go with a solidly negative definition for the term.

I’ve found a lot of people using the term to just mean “science fiction action-adventure”, and I don’t find that a satisfactory definition. It’s too big a field, and there’s already a good term for it, so I don’t want to let them have mine.

To me, space opera has several characteristics:

  • Very large scope. Size is measured from the protagonist’s point of view, so if they’re restricted to one solar system, saving that whole solar system counts; on the other hand, Doc Smith has his Lensmen fighting an extra-universal threat, and operating across two galaxies.  The scope probably grows a lot in the course of the story.
  • Science Fiction.  And space travel.
  • Discovery-driven. The action is required or made possible or both by new discoveries, either scientific or exploratory. New fields of science or the universe (or both) are constantly being opened up.
  • Protagonist is dominant player in the discovery.

I don’t know if it’s a defining characteristic, or a common outcome of the other defining characteristics; but space opera tends towards moral clarity (or being simplistic; your choice).

So.  Doc Smith is clearly space opera (Skylark and Lensman series in particular).  George O. Smith’s Venus Equilateral is clearly space opera. But what about more modern works?

Well, Vernor Vinge’s A Fire Upon the Deep seems to qualify. It’s not quite focused on one protagonist, but the main characters play a really big role in saving everything. Lois McMaster Bujold’s Vorkosigan stories don’t, though; they’re not discovery-driven, and they take place in something of a backwater of even the human universe, yet with knowledge that the rest exists. (I love them to death anyway; my taste is not limited to space opera.)  David Weber’s Honor Harrington series is borderline; the action takes place mostly in a small peripheral star kingdom, with the Solarian League visible but not involved in the background. Also, Honor isn’t the driver of much of the discovery, though she’s certainly terribly important in the action overall. They also tend a bit more than I prefer towards simplistic black-and-white views of events. Mike Shepherd’s Kris Longknife books fall in almost exactly the same place as Weber, I think; borderline.

Advice on Lens Brands

This got sufficient praise when I posted it as a comment to a question on LiveJournal that I’m reprinting it as an article here, where I can find it when needed.  The question was initially about Sigma vs. Nikon lenses.  I currently consider Sigma, Tokina, and Tamron to be the third-party lensmakers who sometimes make first-rate mainstream lenses (no offense intended to specialists and weird people like Zeiss, Cosina/Voigtlander, or Coastal Optics (now a division of Jenoptik Optical Systems, it looks like)).

*   *   *   *   *

Who’s ahead in which parts of their lens lineup changes over time—so one thing that influences the advice you get is the age of the adviser. I’m 55 myself :-).

For a while, zoom lenses were only made by third-party companies (absolute statements probably aren’t absolutely true, but this is how I perceived it in the 1970s). Then the camera companies made overly-conservative zooms, and the third-party companies made better zooms. This covered parts of the 80s. Then the camera companies started making first-rate zooms.

Also, the camera-companies started making second- and third-rate zooms, and even some primes. And the third-party companies didn’t always do their best anyway.

So, TODAY, IMAO, the situation is confused to the point where there’s no simple general advice. You have to specifically consider each type of lens and decide which ones are good and which aren’t. Nikon isn’t ALWAYS better or worse than Canon—or than Sigma, either. (Sigma was a third-tier company even 10 years ago, but they aren’t today.)

One thing to keep in mind is that, if you’re buying Nikon’s consumer-grade lenses like the 18-200 or the 70-300, there’s a lot less to lose going to Sigma, Tamron, or Tokina. Those aren’t Nikon’s top work. Similarly, the Sigma 120-400/4.5-5.6 may actually be better than the Nikon 80-400/4.5-5.6 (though Nikon just did or is about to update that lens, so who knows?). It’s the Nikon 200-400/4, the $5000 professional lens, that Sigma probably doesn’t have a real competitor for.

Also remember that wide-range zooms always carry compromises. You simply can’t make an 18-200 and sell it for a 3-figure price that’s first-rate throughout. However, the convenience can be important, and the quality might be good enough for you. Don’t pretend you always need “the best”—at least not while talking about a D40x :-). Be realistic, it’ll stand you in good stead; probably save you thousands of dollars. Junk is never worth it, but the very best is probably completely out of your reach, too. You HAVE TO compromise—and even the “very best” has flaws which the people who use its full capabilities all know about and have to work around. The best photographers I know don’t own a single piece of “perfect” equipment; instead they own lots of very good equipment that they fully understand. They avoid using it for the things it’s bad at.

You’re probably better off with Sigma’s pro-grade lenses than with Nikon’s consumer-grade lenses. Although every now and then, a consumer-grade lens happens to be really outstanding anyway. (As a rough guideline, fixed-aperture zooms, especially if the aperture is fast for the focal lengths, are nearly always considered pro-grade lenses. Slow, variable-aperture zooms are nearly always consumer lenses. Primes are nearly always pro-grade lenses. I believe Sigma uses the “EX” designation for what THEY think are the pro-grade lenses. But even this is, in the end, a matter of opinion.)

And if you want the very best autofocus 50mm/1.4—that’s almost certainly the Sigma; but it costs a lot more than the Nikon. (The Zeiss manual focus 50/1.4 may be better, partly depending on what you care about.)

When reading customer reviews, consider the number sold. Something sold by the tens of thousands is nearly certain to have more bad reviews than something sold by the tens. 🙂

Here’s a trick I used. I still think it’s clever. Go someplace like photo.net where you can search by the lens, and look at the pictures taken with each lens you’re considering. Some kinds of problems won’t show up at web resolution, others will. But in addition to what you can see yourself, there’s a second source of information: If a number of photographers who take really gorgeous pictures all use a particular lens, you’re pretty safe in concluding that lens is pretty good. This path led me to the Tokina 12-24/4, which indeed was a fine lens (and quite cheap), and which served me well when I was on a DX sensor.

Here Comes 2010!

So far I’ve cleaned up email archives and filed them in the right year folders, and made sure the 2010 folders exist for photo and miscellaneous filing. And updated my email whitelist some (people who go directly to my main inbox, rather than ending up in “additional”).

Soon, it will be time to go help a friend release a CD, and then on to the Minn-StF party and this year’s set of New Year’s Eve informal portraits.

May we all have a 2010 much better than 2009!  Even if you had a wonderful 2009.