seeing the world through rose-colored glasses · rose-colored glasses 4 are you familiar with the...

30
Michael Stewart [email protected] hcientist.com Seeing the World through Rose-Colored Glasses

Upload: others

Post on 08-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael [email protected]

hcientist.com

Seeing the World through Rose-Colored Glasses

Page 2: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Michael Stewart

Academic Experience

B.S. in Computer Science: UNC ’07

M.S. in Computer Science: VT ’13

Ph.D. in Computer Science: VT ’17

2

Industry Experience

IBM

Red Hat

Xerox Research Centre Europe

Page 3: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Michael StewartTeaching Experience: I have been an Instructor for 1 course, a co-instructor for 1 course, and a teaching assistant for 13 courses:

1.Spring 2005: 3D Computer Modeling and Animation (COMP 006D) – Teaching Assistant

2.Fall 2009: Introduction to Software Design (CS 1114) – Graduate Teaching Assistant

3.Fall 2010: Engineering Exploration (ENGE 1024) – Workshop Leader

4.Spring 2011: Exploration of the Digital Future (ENGE 1104) – Workshop Leader

5.Fall 2011: Introduction to Media Computation (CS 1124) – Co-Instructor

6.Spring 2012: Introduction to Media Computation (CS 1124) – Instructor

7.Fall 2014: Preparing the Future Professoriate (GRAD 5104) – Graduate Teaching Assistant

8.Spring 2015: Preparing the Future Professoriate (GRAD 5104) – Graduate Teaching Assistant

9.Summer 2015: Global Perspectives in Higher Education (GRAD 5954) – Graduate Teaching Assistant1

10.Fall 2015: Preparing the Future Professoriate (GRAD 5104) – Graduate Teaching Assistant

11.Spring 2016: Preparing the Future Professoriate (GRAD 5104) – Graduate Teaching Assistant

12.Summer 2017: Global Perspectives in Higher Education (GRAD 5954) – Graduate Teaching Assistant1

13.Fall 2016: Preparing the Future Professoriate (GRAD 5104) – Graduate Teaching Assistant

14.Spring 2017: Preparing the Future Professoriate (GRAD 5104) – Graduate Teaching Assistant

15.Summer 2017: Global Perspectives in Higher Education (GRAD 5954) – Graduate Teaching Assistant1

1 Global Perspectives in Higher Education (GRAD 5954) is a study abroad course. I am the primary organizer of this experience. With support of Vice President and Dean of Graduate Education Karen DePauw, I contact our participating institutions abroad, plan our travel, lodging, meals, and itinerary. I then help in the successful execution of these plans by traveling with the group and facilitating successful interactions between our cohort and our hosts.

3

Page 4: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Overview

1. Images and Color

2. Media Computation API

3. Rose-Colored Glasses

4

Page 5: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Are you familiar with the idiom, “rose-colored glasses”?

Page 6: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

HAVE YOU DONE ANYTHING WITH IMAGES BEFORE (ON A COMPUTER)?

6

Page 7: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

HOW DO COMPUTERS REPRESENT IMAGES?

7

Page 8: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia
Page 9: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia
Page 10: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Raster and Vector Graphics

10

Page 11: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Raster and Vector Graphics

11

Page 12: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Raster Graphics: Array of Pixels

array of pixels

a pixel has a position and a color

12

Page 13: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

HOW DO COMPUTERS REPRESENT COLORS?

13

Page 14: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

“Ones and Zeroes”

–Technically Correct

14

Page 15: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Many possible representations

Red, Green, and Blue Values

Additive Color (light, like from a monitor)

CMYK

Cyan, Magenta, Yellow, blacK, subtractive

15

Page 16: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Representing Images

16

Image:

Array of Pixels

Pixel:

R,G,B values (0, 255)

X,Y values for position in image

Page 17: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Overview

1. Images and Color

2. Media Computation API

3. Rose-Colored Glasses

17

Page 18: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

MEDIACOMPFOR JAVA

18

Barbara Ericson

Mark Guzdial

Page 19: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

MediaComp APIFileChooser.pickAFile

launches a file chooser and returns a String for the “path” to the selected file

Picture

constructor expects a String with the path to a picture file (e.g. *.jpg, *.png)

getPixels

returns an array of Pixels

getWidth

getHeight

getPixel

explore

open a picture explorer that shows a Picture and allows the user to inspect Pixels

show

displays a Picture

19

more about the API: http://tiny.cc/csc130mc

Page 20: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

MediaComp API

FileChooser.pickAFile

launches a file chooser and returns a String for the “path” to the selected file

Picture

constructor expects a String with the path to a picture file (e.g. *.jpg, *.png)

explore

open a picture explorer that shows a Picture and allows the user to inspect Pixels

20

more about the API: http://tiny.cc/csc130mc

Page 21: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Let’s do it!1.Download (and unzip):

1.mediacomp.jar: http://tiny.cc/csc130

2.ExplorePicture.java (example): http://tiny.cc/csc130ex

2.Create New Java Project named: ExplorePicture

3.Drag ExplorePicture.java into the src folder (choose Copy)

1.you should notice red X’s to indicate there are errors

4.Right-click on the java project and choose Build Path ▶ Add Libraries…

5.Choose User Library and click Next

6.Click the User Libraries… button

7.Click New… enter the name mediacomp and click OK.

8.With the newly created user library selected, click Add External JARs…

1.Browse to the mediacomp.jar that you downloaded in 1.1 (above) and click Open

2.Click OK

3.Ensure that your new user library is still selected and click Finish21

Page 22: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

YOU SHOULD HAVE A PICTURE DISPLAYING ON YOUR SCREENIF YOU CLICK ON THE PICTURE, THE X, Y, R, G, AND B VALUES SHOULD ALL UPDATE TO REFLECT THE SELECTED PIXEL

22

Page 23: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

MediaComp API (cont’d)Pixel

getColor

getRed…

setColor

setRed

getX, getY

Color

constructor

getRed, getGreen, getBlue

23

more about the API: http://tiny.cc/csc130mc

Page 24: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Overview

1. Images and Color

2. Media Computation API

3. Rose-Colored Glasses

24

Page 25: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Rose-Colored Glasses

Page 26: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

How could we make the Picture look like it is rosier?

26

Page 27: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

Let’s do this too!1.Download (and unzip) RoseColoredGlasses.java http://tiny.cc/roseglass

2.Create new Java Project named RoseColoredGlasses

3.drag RoseColoredGlasses.java into the new project’s src folder (choose Copy)

4.Right-click on the java project and choose Build Path ▶ Add Libraries…

5.Choose User Library and click Next

6.Select the mediacomp library and click Finish

27

Page 28: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

RECAPREPRESENTING IMAGES AND COLORS, MEDIACOMP API, ROSE-COLORED GLASSES

28

Page 29: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael [email protected]

Thank you CSC 130!

http://tiny.cc/phoenixify

Page 30: Seeing the World through Rose-Colored Glasses · Rose-Colored Glasses 4 Are you familiar with the idiom, “rose-colored glasses”? Michael Stewart | tgm@vt.edu | hcientist.com Virginia

Michael Stewart | [email protected] | hcientist.com Virginia Tech Center for Human-Computer Interaction

ReferencesMedia Computation JAR: http://tiny.cc/csc130

Media Computation API Reference: http://courses.cs.vt.edu/~cs1114/api/mediacomp/

rose-colored glasses image: http://funny.pho.to/through-rose-colored-glasses/

other glasses: https://commons.wikimedia.org/wiki/File:Conrad_von_Soest,_'Brillenapostel'_(1403)_rose-coloured-glasses.jpg

vector vs. raster image: https://en.wikipedia.org/wiki/File:VectorBitmapExample.svg

color cube image: https://miac.unibas.ch/SIP/02-Fundamentals.html

30