From the course: Fundamentals of Dynamic Programming

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Project: Calculating the energy of an image

Project: Calculating the energy of an image - Python Tutorial

From the course: Fundamentals of Dynamic Programming

Project: Calculating the energy of an image

- [Instructor] As our first step towards implementing content aware seam carving, we will calculate the energy of each pixel of an input image. I have the project files here on my computer. Notice that there is a read me. You can always look at this file if you have questions about how to use these files. There are also some sample images for you to use. You're of course welcome, and encouraged, to find your own images to test your code on. Finally, there are some Python files. We'll walk through these files one by one, starting with energy.py in this video. These Python files provide some structure for the project along with places for you to add your code. Note that the completed versions of these Python files are available in the solutions directory, if you ever get stuck. Before we look at any code, let's make sure our environment is set up. I have Python 3.7 installed on my computer but you can use any version of…

Contents