From 817b090c7c22d2fbd773aac53cf6c8dbb46f14e3 Mon Sep 17 00:00:00 2001 From: Kevin Keraudren Date: Sat, 5 Dec 2015 14:23:23 +0000 Subject: [PATCH] text improvement in seam carving example, added some newlines between plt.imshow() and """PLOT2RST""" --- doc/examples/plot_seam_carving.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/examples/plot_seam_carving.py b/doc/examples/plot_seam_carving.py index 20beb9d0..129b0da0 100644 --- a/doc/examples/plot_seam_carving.py +++ b/doc/examples/plot_seam_carving.py @@ -39,7 +39,6 @@ plt.figure() plt.title('Resized Image') plt.imshow(resized) - """ .. image:: PLOT2RST.current_figure """ @@ -59,9 +58,9 @@ Object Removal -------------- Seam carving can also be used to remove artifacts from images. -This requires to downweigh the pixels to be removed. In the following -code, the rocket is thus approximately masked to decrease the -importance of those pixels. +This requires weighting the artifact with low values. Recall lower weights are +preferentially removed in seam carving. The following code masks the rocket's +region with low weights, indicating it should be removed. """ @@ -78,6 +77,7 @@ plt.figure() plt.title('Object Marked') plt.imshow(masked_img) + """ .. image:: PLOT2RST.current_figure """ @@ -90,6 +90,7 @@ out = transform.seam_carve(img, eimg, 'vertical', 90) resized = transform.resize(img, out.shape) plt.imshow(out) plt.show() + """ .. image:: PLOT2RST.current_figure """