P4 — CollatzFilter

I’ve been exploring image filters recently with Processing under my ArcanePropagation project, which I'll share more of soon, but today I implemented a filter based on the collatz function, and it looks kinda cool! Even-valued pixels are divided by two, while odd-valued pixels are multiplied by three and added to one. Code's on my Github!

 
collatz filter applied to a random image

collatzFilter applied to a downsampled image of noise