Article 4CR3X Taking the derivative of a muscle car

Taking the derivative of a muscle car

by
John
from John D. Cook on (#4CR3X)

I've been getting a lot of spam lately saying my web site does not rank well on "certain keywords." This is of course true: no web site ranks well for every keyword.

I was joking about this on Twitter, saying that my site does not rank well for women's shoes, muscle cars, or snails because I don't write about these topics. J. D. Long replied saying I should write more about muscle cars.

My first thought was to do an example drawing a Shelby Cobra with cubic splines. This would not be such an artificial example. Mathematical splines are named after physical splines, devices that have been used in designing, among other things, cars.

Instead, I downloaded an image of a Shelby Cobra from Wikipedia

cobra1.jpg

and played with it in Mathematica. Specifically, I applied a Sobel filter which you can think of as a kind of derivative, looking for edges, places where the pixel values have a sharp change.

cobra3.jpg

Here's the same image with the colors reversed.

cobra5.jpg

Here's the Mathematica code to do the edge detection.

 cobra = Import["c:/users/mail/desktop/cobra.jpg"] ImageConvolve[cobra, {{-1, 0, 1}, {-2, 0, 2}, {-1, 0, 1}}]
NfmjvkasPUM
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments