Categories
Programming Visualization

More Experiments Around RGB Averaging

I decided to replicate the showing/hiding the dominant hues in images with showing/hiding around the average RGB values instead. I created a class called RGBColor (just holds red, green, and blue values), similar to the one I created called HSBColor. I could have used the java.awt.Color class, but that insists on a range of 0-1 […]

Categories
art Programming Visualization

Eliminating the Dominant Hue from an Image

I thought it would be interesting to invert the idea of showing only the dominant hue, and show everything but that instead. I used the exact same code, but inverted the if statement so: if (!hueInRange(hue, lower, upper)) became if (hueInRange(hue, lower, upper)) Effect is as follows, as with most of these, my favourite effect […]

Categories
Programming Visualization

Folders of Images, Compare and Contrast

Now I’ve experimented with things, I wanted to make something that would allow me to compare different effects on the same photo, and loop through a folder of pictures looking for nice effects. I overrode mousePressed() to change the image on click. The big challenge here was running out of Java Heap space once I […]

Categories
Programming Visualization

Visualising A Photo Series

Whenever I’m scrolling through pictures I’ve taken, it seem like they are in sections – here’s when I was near the beach, he’s the park, the night sky and fireworks. I thought if you visualised the way that the dominant colors changed, patterns would emerge. I found the perfect layout for this, the sunflower layout, […]

Categories
Programming Visualization

Showing Only the Dominant Hue In an Image

Having extracted the dominant hue from the images, we can manipulate the image such that pixels that are not (or close to) the dominant hue are instead made grayscale. I converted to grayscale using the brightness of the image in the HSB. This worked really nicely. From my earlier experiments I decided on a hue […]

Categories
Programming Visualization

Extracting Dominant Color: RGB Averaging Doesn’t Work

This makes sense – two colors can have the same R values, but wildly different G and B values. The result of averaging them will bear no relation to the originals. However just to prove it, it was very easy to tweak my code to average the RGB values instead of counting the hues. The […]

Categories
Programming Visualization

Extracting the Dominant Color from an Image in Processing

I’ve had an idea in mind for a while now, that requires extracting the dominant color from an image. I had no idea how to do this, and worried it would be really hard. The first thing was extracting the pixels from the image for processing, this was super easy thanks to this handy image […]

Categories
Career Programming

Medium Term: Tradeoffs and Refactoring

Ages ago, I wrote this post on meeting deadlines – things I’d learned, what had worked. One thing I wrote is about thinking “medium term”: Think Medium Term I don’t hack. I worry, actually, that I literally can’t hack. I can’t fight with something, and be happy with a one line fix labelled “DO NOT […]

Categories
Education Presentation

Pycon AU: Making Python More Fun for Everyone

Interesting talk from the creators of SingPath – games to help people learn to code. Left me wanting to try the game! Some insights about women and what they find off-putting – nothing unexpected. Notes below: Intrinsic vs. extrinsic motivation: autonomy, mastery, purpose (Dan Pink’s book – Amazon). Want to extrinsically motivate people without killing […]

Categories
Career Programming Social Networking women in computer science

On Building The Things You Want

I think my best reason of why we need more women working in technology can be explained with two websites. OKCupid is a dating site, it’s very successful, and they have a great blog. Part of the premise is that users answer all these questions – it’s very data-driven. The other one is a Spanish […]