media computation in python
play

Media Computation in Python Tony Allevato Virginia Tech - PowerPoint PPT Presentation

Media Computation in Python Tony Allevato Virginia Tech Motivation What is media computation? Who are we trying to reach? Why do this instead of a traditional introductory CS approach? Paradigm Focus is procedural rather than


  1. Media Computation in Python Tony Allevato Virginia Tech

  2. Motivation What is media computation? Who are we trying to reach? Why do this instead of a “traditional” introductory CS approach?

  3. Paradigm Focus is procedural rather than object-oriented Usually getRed(pixel) instead of pixel.getRed() However, object-oriented style is still available So whether you’re objects-early or objects-late , media computation can work for you

  4. Main Topics Arithmetic expressions Loops Variables Collection-based for value in list Conditional statements Count-based Basic lists for i in range(...) Functional Simple and nested decomposition

  5. What’s Missing? Some Python concepts have weaker coverage or “don’t fit” Dictionaries String manipulation Condition-based loops File input/output

  6. Environments

  7. The Dilemma There is no native Python distribution that Can manipulate modern image/sound formats out of the box... ...and is cross-platform ... ...and has an IDE suitable for absolute beginners ... ...and is easy to install and configure So, what are our options?

  8. JES (Jython Environment for Students) Developed by Mark Guzdial and Barbara Ericson at Georgia Tech Runs on Jython (Python using the Java JVM) We get Java’s image/sound processing for free Java is cross-platform Custom student-oriented IDE written in Java Most people have Java installed already

  9. Pythy: Online IDE for Python Developed by Tony Allevato and Stephen Edwards at Virginia Tech Web-based IDE, runs entirely in the browser No installation — just log in, find your course, and get started Previewing an early version for you today — keep an eye out at SIGCSE and ITiSCE for more

  10. Pythy Features Translates Python code to Javascript to run entirely client- side (Skulpt) Automatically saves all code in Git repositories on the server — no risk of data loss Students can manage their own media files to use on assignments “Examples” support live-push to student browsers for in-class coding Automated grading using Python unit tests

  11. Examples

  12. Getting Started Go to https://pythy.cs.vt.edu Create an account Choose JMU CS Academy as your organization Choose Summer I 2013 as your term Click Enroll for the June 25 section of Media Comp Untested in IE. Chrome, Safari, Firefox preferred.

  13. Examples Image Processing Sound processing Basic image filters Guitar string synthesis Steganography Creating charts from drawing primitives

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend