homework 2
Non code:
Create a large pixel image. the larger the better. Think about how to use the main space in an interesting way.
Code:
5 things (4,5 are advanced, feel free to try them though!)
- create a unique and fun drawing tool, where you draw into a pixel array that’s uploaded to a texture. Try to push the drawing in different ways — not just via the circle but in other ways. Make something fun.
- Load in an image, and as you copy the pixels from that image to another, (see the image loading code) flip the image. Flip it in the pixel copy, not in the drawing
- take a look at the loadInImageAndDrawInterpretation example — make an interesting graphical interpretation of an image — think especially about the limits of perception. have fun with this.
- do min max contrast stretching of the image. Find the minimum and maximum values of the pixels in an image, and then convert pixels from the source to destination like ((pixel – min) / (max – min))*255. take a look at the histogram of both the source and destination. how do they compare?
- do histogram equalization, as described here: http://en.wikipedia.org/wiki/Histogram_equalization
Example files: click here to download