January 2018
Intermediate to advanced
268 pages
6h 20m
English
The basic logic remains the same here. We are using seam carving to remove an object. Once we select the region of interest, we make all the seams pass through this region. We do this by manipulating the energy matrix after every iteration. We have added a new function called compute_energy_matrix_modified to achieve this. Once we compute the energy matrix, we assign a value of zero to this region of interest. This way, we force all the seams to pass through this area. After we remove all the seams related to this region, we keep adding the seams until we expand the image to its original width.
Read now
Unlock full access