Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image...
-
Upload
georgina-mccoy -
Category
Documents
-
view
217 -
download
2
Transcript of Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image...
![Page 1: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/1.jpg)
Elizabeth Longnecker
ILLUSTRATIVE EXAMPLES
![Page 2: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/2.jpg)
;;; 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
WRAPPING PROCEDURES
(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?)))
(gimp-airbrush-default drawable num-strokes strokes)
![Page 3: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/3.jpg)
;;; 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
WRAPPING PROCEDURES
(define color-select (lambda (image color threshold) (gimp-by-color-select (image-get-layer image) color threshold 0 FALSE FALSE 0 FALSE)))
(gimp-by-color-select drawable color threshold operation antialias feather feather-radius sample-merged)
![Page 4: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/4.jpg)
;;; Procedure:
;;; create-frame
;;; Parameters:
;;; image, an image
;;; width, a real number
;;; Purpose:
;;; to create a frame around
;;; an image of width
;;; thickness
;;; Preconditions:
;;; Produces:
MANUAL ACTIONS
(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)))
![Page 5: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/5.jpg)
ARTISTIC EXAMPLES
Ninety parallel sinusoids with linearly increasing period, Noll 1967
Computer composition with lines, Noll 1964
![Page 6: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/6.jpg)
ARTISTIC EXAMPLES
Schotter, Nees 1968-70
![Page 7: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/7.jpg)
ARTISTIC EXAMPLES
Infinity, Maeda 1993
![Page 8: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/8.jpg)
• 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
GENETIC ART
![Page 9: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/9.jpg)
1. Randomly choose a node in the donator chromosome
2. Randomly choose a node in the receiver chromosome
3. Delete everything at and below the receiver tree
4. Delete everything at and above the donator tree
5. Combine the DNA to create a new tree
(Baluja, Jochem, Pomerleau, 1994)
GENETIC ART
![Page 10: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/10.jpg)
GENETIC ART
Two parent chromosome structures
Five potential children
(Baluja, Jochem, Pomerleau, 1994)
![Page 11: Elizabeth Longnecker. ;;; Procedure: ;;;image-airbrush-line! ;;; Parameters: ;;;image, an image ;;;pressure, a real ;;; col1, a real ;;; row1, a real.](https://reader036.fdocuments.us/reader036/viewer/2022062713/56649ced5503460f949bac9e/html5/thumbnails/11.jpg)
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
REFERENCES