All Nature Shall Paint Herself

The announcement in America of the invention of photography, as reported in The New Yorker (later renamed the New York Tribune), 13 April 1839:

1 min read

The Hough Transform

Lines from Pixels

Part of a brief series that started here.

The world is full of patterns: art, physics, weather, music. In some camps, it’s been proposed that human ability to grasp at patterns is the core of conscious experience. We understand our surroundings, and one another, as a complex carpet of overlapping and expected patterns. The patterns might be hard to fathom at first, then… like the sudden twist in a mystery story, Aha! the experience of understanding. It all makes sense now.

With that possibility for epiphany in mind, here’s a paradoxical pattern to consider: when is a point a line, and when is line a point, especially when that line is.. a curve? And how, may I ask, does this relate to beer?

May we present: The Hough Transform…

9 min read


July 7: One of the last Silicon Valley rides before moving full-time to Sonoma County.

Levi's Stadium, Santa Clara
Google Cloud, Sunnyvale
Space 115, Sunnyvale
Caltrain at Mary, Sunnyvale
Pending Construction, Sunnyvale
Cornfield, Sunnyvale
The Border: Lawrence Expressway
Cabrillo, Santa Clara
Calabasas, Santa Clara

K Pix

Reduced colors

Part of a brief series that started here.

How can we use k-Means to understand and/or manipulate photographic images? As a first example, here’s a classic from the poster-printing world: choosing a very small number of inks to represent a full-tone photo.

In our example, we grab random photos from the web – some work great as posters, some… not so much. But the code will do its best given the narrow constraints: all it knows is grayscale values, and we’ve reduce our calculation to just one dimension: the values along the grayscale histogram from each picture.

4 min read