+ All Categories
Home > Documents > Illustrative Examples

Illustrative Examples

Date post: 24-Feb-2016
Category:
Upload: ethan
View: 101 times
Download: 0 times
Share this document with a friend
Description:
Illustrative Examples. Elizabeth Longnecker. Wrapping Procedures. ( gimp-airbrush-default drawable num-strokes strokes). - PowerPoint PPT Presentation
Popular Tags:
11
Elizabeth Longnecker ILLUSTRATIVE EXAMPLES
Transcript
Page 1: Illustrative Examples

Elizabeth LongneckerILLUSTRATIVE EXAMPLES

Page 2: Illustrative Examples

;;; 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: Illustrative Examples

;;; 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: Illustrative Examples

;;; 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: Illustrative Examples

ARTISTIC EXAMPLES

Ninety parallel sinusoids with linearly increasing period, Noll 1967

Computer composition with lines, Noll 1964

Page 6: Illustrative Examples

ARTISTIC EXAMPLES

Schotter, Nees 1968-70

Page 7: Illustrative Examples

ARTISTIC EXAMPLES

Infinity, Maeda 1993

Page 8: Illustrative Examples

• 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: Illustrative Examples

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 tree4. Delete everything at and above the donator tree5. Combine the DNA to create a new tree

(Baluja, Jochem, Pomerleau, 1994)

GENETIC ART

Page 10: Illustrative Examples

GENETIC ART

Two parent chromosome structures

Five potential children

(Baluja, Jochem, Pomerleau, 1994)

Page 11: Illustrative Examples

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


Recommended