"Pixels to Pictures" is free courseware authored by MathWorks® to help teach students "the basics of programming while they edit images, build GIFs, and create color filters and face masks that are applied in popular apps."
Recommended Ages: 10+
This repository provides additional MATLAB® live scripts and functions to supplement the Pixels to Pictures courseware. The Courseware Overview is broken down into 5 days. I teach this material through CoderDojo over the course of 10 lessons (roughly half a "day" per lesson). As such, the supplemental scripts refer to these lesson numbers instead of the Course Overview day numbers.
Short walkthrough videos for the first five lessons can be found on my CoderDojo MATLAB YouTube playlist. (Note, as described below, some of the setup steps have changed.)
The supplemental lessons can be used in one of two ways:
-
Open the supplemental project by double-clicking on the
P2P-Supplement.prjproject file from the MATLAB File Panel. This sets everything up for you, and needs to be done each time you open MATLAB and want to use this material. -
Or, if you already have the base Pixels to Pictures content installed with the corresponding
PixelstoPictures.prjproject open, you can run these supplemental lessons by navigating to the supplemental "lessons" folder in MATLAB. (This approach provides direct access the Image Library that comes with Pixels to Pictures.)
- Lesson 2: Combining Images and Matrices (Pixel Art)
- Lesson 5: Applying Color Filters to Create 2-Tone Images
- Lesson 5: Applying Color Filters to Filter 2-Tone Images
- Lesson 5: Applying Color Filters to Create 3-D Images
- Lesson 7: Creating Complex Color Filters
- Lesson 8: Applying Masks using Face Detection
- Lesson 9: Creating Video Montage and Flipbooks
You can use the Webcam Pixelater App to apply the image filters you create to your webcam video feed!