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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
What is content-aware image resizing?3m 26s
-
(Locked)
Preprocessing: Defining the energy of an image2m 31s
-
(Locked)
Project: Calculating the energy of an image3m 41s
-
(Locked)
Solution: Calculating the energy of an image2m 20s
-
(Locked)
Using dynamic programming to find low-energy seams3m 31s
-
(Locked)
Project: Finding low-energy seams3m 26s
-
(Locked)
Solution: Finding low-energy seams2m 42s
-
(Locked)
Project: Using backpointers to reconstruct seams3m 50s
-
(Locked)
Solution: Using backpointers to reconstruct seams3m 9s
-
(Locked)
Project: Removing low-energy seams2m 12s
-
(Locked)
Solution: Removing low-energy seams2m 13s
-
-
-