Skip to content

NodeBox Image Processing

by C. Ross Jam on September 24, 2009

nodebox plus PIL.png The image capture to the right is the result of my building the Python Imaging Library such that it can be imported within NodeBox. Basically I’m showing that the module can be imported, used to load an image, and that image can be turned into a Numpy array. Remember, this was going to be a little personal achievement.

Well, just like last time, I learned that NodeBox already has the capability I was looking for. NodeBox has not one, but two, image processing extension libraries. The first is PhotoBot, which is essentially PIL 1.1.4 for NodeBox, and deprecated. So while I was ignorant at least it was ignorance of dusty old code that would have need some revival effort.

The second library, Core Image, is a direct poke in the eye. A MacOS only extension, it uses the os’s built-in image processing facilities. Core Image provides an object model similar to PhotoShop’s where an image is built out of layers that can be individually processed and collectively composited. Since the image processing code is a part of the os, and presumably heavily used, it’s been highly optimized AND should take advantage of any GPU speed boosts.

Basically, Core Image looks like what I was looking for if I had only looked a little more carefully.

No worries though. This is all about spare time hacking and learning.

From → Uncategorized