Sketchify

A MATLAB script that converts images into a series of points that can be drawn with an EtchASketch

Description:

Sketchify was a group project I worked on with Lacthu Vu and Mario Levya in the course 2.086 - Numerical Computation for Mechanical Engineers, taught by Professor Daniel Frey in the spring semester of 2020. It is written is MATLAB, and uses image processing libraries to pre-process an image for us to run our algorithms that make the sketch.

The process of going from image to sketch involves 3 phases, simplified here for brevity:

  1. Image preprocessing

    • We run edge detection on the original image, turning it into an array of 1s and 0s.

  2. Line Generation

    1. We developed (with the help of Prof Daniel Frey) an algorithm to determine the optional direction to create line segments that connect the 1s along the edges of objects in the image.

  3. Tracing

    1. We developed another algorithm that arbitrarily picks a line segment as a starting point, and repeatedly finds the nearest point at the other end of the line segment to continue the trace.

For more info about the technical process, check out our final report or github repository. Otherwise, you can see the process of transitioning from image to sketch below.

image2.png
Previous
Previous

HandyMaps

Next
Next

Sound-Reactive Circuit