This week was all about image manipulation using JES and Python. While I learned last week about the RGB model of color and how it affects pixels in a digital image, the assignments this week were all about "physical" manipulation, such as shrinking, resizing, copying, and applying some fun effects such as mirroring and creating negatives.
Although I'm beginning to get a good grasp of JES and Jython, I still had some difficulty with the collage part of Lab 5. My original plan was to create a dynamic resizing function that would take in any number of images and then resize them if necessary to fit within the blank "canvas's" bounds. My first thought was to implement some sort of pixel edge detection, but unfortunately I could not get it to work. I had to resort to resizing all my images in to a fixed size, applying a random effect, and then copying it to the final collage.
I'd like to see a solution that uses a dynamic resizing/scaling algorithm as I believe that is how I could make a program out of this lab that would work to any scale, e.g. a 65000 x 65000 collage with 512 photos, or something large like that.
The Coding Bat exercises were a great way to warm up and practice my Python. I struggled a bit with some of them more than others, but struggling is simply part of the learning process. Practicing logical thinking and translating it to code will hopefully make me a better programmer in the long run
It was a little tough getting in the mindset of doing long stretches of real programming, but I believe I am warmed up and well prepared for the rest of the class.
Here's an example of a collage my program created. Shia LaBeouf ended up relatively unscathed by my random picture effects, but considering he's probably got a bunch of other stuff affecting him already in real life, I'll let it slide.
Although I'm beginning to get a good grasp of JES and Jython, I still had some difficulty with the collage part of Lab 5. My original plan was to create a dynamic resizing function that would take in any number of images and then resize them if necessary to fit within the blank "canvas's" bounds. My first thought was to implement some sort of pixel edge detection, but unfortunately I could not get it to work. I had to resort to resizing all my images in to a fixed size, applying a random effect, and then copying it to the final collage.
I'd like to see a solution that uses a dynamic resizing/scaling algorithm as I believe that is how I could make a program out of this lab that would work to any scale, e.g. a 65000 x 65000 collage with 512 photos, or something large like that.
The Coding Bat exercises were a great way to warm up and practice my Python. I struggled a bit with some of them more than others, but struggling is simply part of the learning process. Practicing logical thinking and translating it to code will hopefully make me a better programmer in the long run
It was a little tough getting in the mindset of doing long stretches of real programming, but I believe I am warmed up and well prepared for the rest of the class.
Here's an example of a collage my program created. Shia LaBeouf ended up relatively unscathed by my random picture effects, but considering he's probably got a bunch of other stuff affecting him already in real life, I'll let it slide.
Comments
Post a Comment