1 / 11

Illustrative Examples

Illustrative Examples. Elizabeth Longnecker. Wrapping Procedures. ( gimp-airbrush-default drawable num-strokes strokes).

ethan
Download Presentation

Illustrative Examples

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Illustrative Examples Elizabeth Longnecker

  2. Wrapping Procedures (gimp-airbrush-default drawable num-strokes strokes) • ;;; Procedure:;;; image-airbrush-line!;;; Parameters:;;; image, an image;;; pressure, a real;;;   col1, a real;;;   row1, a real;;;   col2, a real;;;   row2, a real;;; Preconditions:;;;   0 <= pressure <= 100;;; Purpose:;;;   Draw a line with set airbrush pressure and ;;; the current foreground color, ;;;   beginning at (col1,row1) and ending at (col2, ;;; row2).;;; Produces:;;;   image, the original image (define _image-airbrush-line!  (lambda (image pressure col1 row1 col2 row2)    (gimp-airbrush (image-get-layer image)                   pressure                           4                           (vector col1 row1 col2 row2))    (cond ((context-immediate-updates?) (context-update-displays!)))    image))(define image-airbrush-line!  (guard-proc 'image-airbrush-line!              _image-airbrush-line!              (list 'image 'real 'real 'real 'real 'real)              (list image? real? real? real? real? real?)))

  3. Wrapping Procedures (gimp-by-color-select drawable color threshold operation antialias feather feather-radius sample-merged) (define color-select  (lambda (image color threshold)    (gimp-by-color-select (image-get-layer image)                          color                          threshold                          0                          FALSE                          FALSE                          0                          FALSE))) ;;; Procedure;;; color-select;;; Purpose;;; wrapped form of gimp-by-color-select;;; Defaults:;;; operation: 0 (CHANNEL-OP-ADD);;; antialias: FALSE;;; feather: FALSE;;; feather-radius: 0 ;;; sample-merged: FALSE;;; Parameters;;; image - an image;;; color - color to select;;; threshold - how far an rgb value can be off from specified color;;; Pre-Conditions;;; image is not NULL;;; Post-Conditions;;; color is selected;;; Produces;;; image with certain range of color selected

  4. Manual Actions • ;;; Procedure: • ;;; create-frame • ;;; Parameters: • ;;; image, an image • ;;; width, a real number • ;;; Purpose: • ;;; to create a frame around • ;;; an image of width • ;;; thickness • ;;; Preconditions: • ;;; Produces: (define create-frame (lambda (image width) (image-select-rectangle! image 0 0 image-width width) (image-fill-selection! image) (image-select-rectangle! image 0 0 width image-height) (image-fill-selection! image) (image-select-rectangle! image 0 (- image-height width) image-width width) (image-fill-selection! image) (image-select-rectangle! image (- image-width width) width image-height) (image-fill-selection! image)))

  5. Artistic Examples Ninety parallel sinusoids with linearly increasing period, Noll 1967 Computer composition with lines, Noll 1964

  6. Artistic Examples Schotter, Nees 1968-70

  7. Artistic Examples Infinity, Maeda 1993

  8. Genetic Art • What is it? • AI concept, artificial evolution • Combine “genetic algorithms with computer graphics” (Baluja, Jochem, Pomerleau, 1994, p.326) • With the user’s guidance, create natural selection • Idea that if the user chooses the most aesthetic images, these traits will carry on to the children • Start with simple images and combine them to make complex, interesting images

  9. Genetic Art • Randomly choose a node in the donator chromosome • Randomly choose a node in the receiver chromosome • Delete everything at and below the receiver tree • Delete everything at and above the donator tree • Combine the DNA to create a new tree • (Baluja, Jochem, Pomerleau, 1994)

  10. Genetic Art Two parent chromosome structures Five potential children (Baluja, Jochem, Pomerleau, 1994)

  11. References • Baluja, Shumeet, Jochem, Todd, and Pomerleau, Dean. (1994). Simulating user's preferences: towards automated artificial evolution for computer generated images. Connection Science, 6(2 & 3), Retrieved from http://citeseerx.ist.psu.edu doi: 10.1.1.12.8580 • Nees, Georg. (Artist). (1968-70). Schotter. [Web]. Retrieved from http://amethyst.vam.ac.uk/images/image/58619-popup.html • Noll, A. Michael. (Artist). (1964). Computer composition with lines. [Web]. Retrieved from http://www.citi.columbia.edu/amnoll/CompArtExamples.html • Noll, A. Michael. (Artist). (1967). Ninety parallel sinusoids with linearly increasing period. [Web]. Retrieved from http://www.citi.columbia.edu/amnoll/CompArtExamples.html

More Related