diff --git a/doc/examples/color_exposure/README.txt b/doc/examples/color_exposure/README.txt new file mode 100644 index 00000000..cfaa1da3 --- /dev/null +++ b/doc/examples/color_exposure/README.txt @@ -0,0 +1,2 @@ +Manipulating exposure and color channels +---------------------------------------- diff --git a/doc/examples/plot_adapt_rgb.py b/doc/examples/color_exposure/plot_adapt_rgb.py similarity index 100% rename from doc/examples/plot_adapt_rgb.py rename to doc/examples/color_exposure/plot_adapt_rgb.py diff --git a/doc/examples/plot_equalize.py b/doc/examples/color_exposure/plot_equalize.py similarity index 100% rename from doc/examples/plot_equalize.py rename to doc/examples/color_exposure/plot_equalize.py diff --git a/doc/examples/plot_ihc_color_separation.py b/doc/examples/color_exposure/plot_ihc_color_separation.py similarity index 100% rename from doc/examples/plot_ihc_color_separation.py rename to doc/examples/color_exposure/plot_ihc_color_separation.py diff --git a/doc/examples/plot_local_equalize.py b/doc/examples/color_exposure/plot_local_equalize.py similarity index 100% rename from doc/examples/plot_local_equalize.py rename to doc/examples/color_exposure/plot_local_equalize.py diff --git a/doc/examples/plot_log_gamma.py b/doc/examples/color_exposure/plot_log_gamma.py similarity index 100% rename from doc/examples/plot_log_gamma.py rename to doc/examples/color_exposure/plot_log_gamma.py diff --git a/doc/examples/plot_regional_maxima.py b/doc/examples/color_exposure/plot_regional_maxima.py similarity index 100% rename from doc/examples/plot_regional_maxima.py rename to doc/examples/color_exposure/plot_regional_maxima.py diff --git a/doc/examples/plot_tinting_grayscale_images.py b/doc/examples/color_exposure/plot_tinting_grayscale_images.py similarity index 100% rename from doc/examples/plot_tinting_grayscale_images.py rename to doc/examples/color_exposure/plot_tinting_grayscale_images.py diff --git a/doc/examples/edges/README.txt b/doc/examples/edges/README.txt new file mode 100644 index 00000000..ff6d7e2c --- /dev/null +++ b/doc/examples/edges/README.txt @@ -0,0 +1,2 @@ +Edges and lines +--------------- diff --git a/doc/examples/plot_canny.py b/doc/examples/edges/plot_canny.py similarity index 100% rename from doc/examples/plot_canny.py rename to doc/examples/edges/plot_canny.py diff --git a/doc/examples/plot_circular_elliptical_hough_transform.py b/doc/examples/edges/plot_circular_elliptical_hough_transform.py similarity index 100% rename from doc/examples/plot_circular_elliptical_hough_transform.py rename to doc/examples/edges/plot_circular_elliptical_hough_transform.py diff --git a/doc/examples/plot_contours.py b/doc/examples/edges/plot_contours.py similarity index 100% rename from doc/examples/plot_contours.py rename to doc/examples/edges/plot_contours.py diff --git a/doc/examples/plot_convex_hull.py b/doc/examples/edges/plot_convex_hull.py similarity index 100% rename from doc/examples/plot_convex_hull.py rename to doc/examples/edges/plot_convex_hull.py diff --git a/doc/examples/plot_edge_filter.py b/doc/examples/edges/plot_edge_filter.py similarity index 100% rename from doc/examples/plot_edge_filter.py rename to doc/examples/edges/plot_edge_filter.py diff --git a/doc/examples/plot_line_hough_transform.py b/doc/examples/edges/plot_line_hough_transform.py similarity index 100% rename from doc/examples/plot_line_hough_transform.py rename to doc/examples/edges/plot_line_hough_transform.py diff --git a/doc/examples/plot_marching_cubes.py b/doc/examples/edges/plot_marching_cubes.py similarity index 100% rename from doc/examples/plot_marching_cubes.py rename to doc/examples/edges/plot_marching_cubes.py diff --git a/doc/examples/plot_medial_transform.py b/doc/examples/edges/plot_medial_transform.py similarity index 100% rename from doc/examples/plot_medial_transform.py rename to doc/examples/edges/plot_medial_transform.py diff --git a/doc/examples/plot_polygon.py b/doc/examples/edges/plot_polygon.py similarity index 100% rename from doc/examples/plot_polygon.py rename to doc/examples/edges/plot_polygon.py diff --git a/doc/examples/plot_shapes.py b/doc/examples/edges/plot_shapes.py similarity index 100% rename from doc/examples/plot_shapes.py rename to doc/examples/edges/plot_shapes.py diff --git a/doc/examples/plot_skeleton.py b/doc/examples/edges/plot_skeleton.py similarity index 100% rename from doc/examples/plot_skeleton.py rename to doc/examples/edges/plot_skeleton.py diff --git a/doc/examples/features_detection/README.txt b/doc/examples/features_detection/README.txt new file mode 100644 index 00000000..82d1ab54 --- /dev/null +++ b/doc/examples/features_detection/README.txt @@ -0,0 +1,2 @@ +Detection of features and objects +--------------------------------- diff --git a/doc/examples/plot_blob.py b/doc/examples/features_detection/plot_blob.py similarity index 100% rename from doc/examples/plot_blob.py rename to doc/examples/features_detection/plot_blob.py diff --git a/doc/examples/plot_brief.py b/doc/examples/features_detection/plot_brief.py similarity index 100% rename from doc/examples/plot_brief.py rename to doc/examples/features_detection/plot_brief.py diff --git a/doc/examples/plot_censure.py b/doc/examples/features_detection/plot_censure.py similarity index 100% rename from doc/examples/plot_censure.py rename to doc/examples/features_detection/plot_censure.py diff --git a/doc/examples/plot_corner.py b/doc/examples/features_detection/plot_corner.py similarity index 100% rename from doc/examples/plot_corner.py rename to doc/examples/features_detection/plot_corner.py diff --git a/doc/examples/plot_daisy.py b/doc/examples/features_detection/plot_daisy.py similarity index 100% rename from doc/examples/plot_daisy.py rename to doc/examples/features_detection/plot_daisy.py diff --git a/doc/examples/plot_gabor.py b/doc/examples/features_detection/plot_gabor.py similarity index 100% rename from doc/examples/plot_gabor.py rename to doc/examples/features_detection/plot_gabor.py diff --git a/doc/examples/plot_gabors_from_astronaut.py b/doc/examples/features_detection/plot_gabors_from_astronaut.py similarity index 100% rename from doc/examples/plot_gabors_from_astronaut.py rename to doc/examples/features_detection/plot_gabors_from_astronaut.py diff --git a/doc/examples/plot_glcm.py b/doc/examples/features_detection/plot_glcm.py similarity index 100% rename from doc/examples/plot_glcm.py rename to doc/examples/features_detection/plot_glcm.py diff --git a/doc/examples/plot_hog.py b/doc/examples/features_detection/plot_hog.py similarity index 100% rename from doc/examples/plot_hog.py rename to doc/examples/features_detection/plot_hog.py diff --git a/doc/examples/plot_holes_and_peaks.py b/doc/examples/features_detection/plot_holes_and_peaks.py similarity index 100% rename from doc/examples/plot_holes_and_peaks.py rename to doc/examples/features_detection/plot_holes_and_peaks.py diff --git a/doc/examples/plot_local_binary_pattern.py b/doc/examples/features_detection/plot_local_binary_pattern.py similarity index 100% rename from doc/examples/plot_local_binary_pattern.py rename to doc/examples/features_detection/plot_local_binary_pattern.py diff --git a/doc/examples/plot_multiblock_local_binary_pattern.py b/doc/examples/features_detection/plot_multiblock_local_binary_pattern.py similarity index 100% rename from doc/examples/plot_multiblock_local_binary_pattern.py rename to doc/examples/features_detection/plot_multiblock_local_binary_pattern.py diff --git a/doc/examples/plot_orb.py b/doc/examples/features_detection/plot_orb.py similarity index 100% rename from doc/examples/plot_orb.py rename to doc/examples/features_detection/plot_orb.py diff --git a/doc/examples/plot_template.py b/doc/examples/features_detection/plot_template.py similarity index 100% rename from doc/examples/plot_template.py rename to doc/examples/features_detection/plot_template.py diff --git a/doc/examples/plot_windowed_histogram.py b/doc/examples/features_detection/plot_windowed_histogram.py similarity index 100% rename from doc/examples/plot_windowed_histogram.py rename to doc/examples/features_detection/plot_windowed_histogram.py diff --git a/doc/examples/filters/README.txt b/doc/examples/filters/README.txt new file mode 100644 index 00000000..e7e55450 --- /dev/null +++ b/doc/examples/filters/README.txt @@ -0,0 +1,2 @@ +Filtering and restoration +------------------------- diff --git a/doc/examples/plot_denoise.py b/doc/examples/filters/plot_denoise.py similarity index 100% rename from doc/examples/plot_denoise.py rename to doc/examples/filters/plot_denoise.py diff --git a/doc/examples/plot_entropy.py b/doc/examples/filters/plot_entropy.py similarity index 100% rename from doc/examples/plot_entropy.py rename to doc/examples/filters/plot_entropy.py diff --git a/doc/examples/plot_nonlocal_means.py b/doc/examples/filters/plot_nonlocal_means.py similarity index 100% rename from doc/examples/plot_nonlocal_means.py rename to doc/examples/filters/plot_nonlocal_means.py diff --git a/doc/examples/plot_phase_unwrap.py b/doc/examples/filters/plot_phase_unwrap.py similarity index 100% rename from doc/examples/plot_phase_unwrap.py rename to doc/examples/filters/plot_phase_unwrap.py diff --git a/doc/examples/plot_rank_mean.py b/doc/examples/filters/plot_rank_mean.py similarity index 100% rename from doc/examples/plot_rank_mean.py rename to doc/examples/filters/plot_rank_mean.py diff --git a/doc/examples/plot_restoration.py b/doc/examples/filters/plot_restoration.py similarity index 100% rename from doc/examples/plot_restoration.py rename to doc/examples/filters/plot_restoration.py diff --git a/doc/examples/numpy_operations/README.txt b/doc/examples/numpy_operations/README.txt new file mode 100644 index 00000000..265f8a5f --- /dev/null +++ b/doc/examples/numpy_operations/README.txt @@ -0,0 +1,2 @@ +Operations on NumPy arrays +-------------------------- diff --git a/doc/examples/plot_camera_numpy.py b/doc/examples/numpy_operations/plot_camera_numpy.py similarity index 100% rename from doc/examples/plot_camera_numpy.py rename to doc/examples/numpy_operations/plot_camera_numpy.py diff --git a/doc/examples/plot_view_as_blocks.py b/doc/examples/numpy_operations/plot_view_as_blocks.py similarity index 100% rename from doc/examples/plot_view_as_blocks.py rename to doc/examples/numpy_operations/plot_view_as_blocks.py diff --git a/doc/examples/segmentation/README.txt b/doc/examples/segmentation/README.txt new file mode 100644 index 00000000..c1d1fbeb --- /dev/null +++ b/doc/examples/segmentation/README.txt @@ -0,0 +1,2 @@ +Segmentation of objects +----------------------- diff --git a/doc/examples/plot_join_segmentations.py b/doc/examples/segmentation/plot_join_segmentations.py similarity index 100% rename from doc/examples/plot_join_segmentations.py rename to doc/examples/segmentation/plot_join_segmentations.py diff --git a/doc/examples/plot_label.py b/doc/examples/segmentation/plot_label.py similarity index 100% rename from doc/examples/plot_label.py rename to doc/examples/segmentation/plot_label.py diff --git a/doc/examples/plot_local_otsu.py b/doc/examples/segmentation/plot_local_otsu.py similarity index 100% rename from doc/examples/plot_local_otsu.py rename to doc/examples/segmentation/plot_local_otsu.py diff --git a/doc/examples/plot_marked_watershed.py b/doc/examples/segmentation/plot_marked_watershed.py similarity index 100% rename from doc/examples/plot_marked_watershed.py rename to doc/examples/segmentation/plot_marked_watershed.py diff --git a/doc/examples/plot_ncut.py b/doc/examples/segmentation/plot_ncut.py similarity index 100% rename from doc/examples/plot_ncut.py rename to doc/examples/segmentation/plot_ncut.py diff --git a/doc/examples/plot_otsu.py b/doc/examples/segmentation/plot_otsu.py similarity index 100% rename from doc/examples/plot_otsu.py rename to doc/examples/segmentation/plot_otsu.py diff --git a/doc/examples/plot_peak_local_max.py b/doc/examples/segmentation/plot_peak_local_max.py similarity index 100% rename from doc/examples/plot_peak_local_max.py rename to doc/examples/segmentation/plot_peak_local_max.py diff --git a/doc/examples/plot_rag.py b/doc/examples/segmentation/plot_rag.py similarity index 100% rename from doc/examples/plot_rag.py rename to doc/examples/segmentation/plot_rag.py diff --git a/doc/examples/plot_rag_draw.py b/doc/examples/segmentation/plot_rag_draw.py similarity index 100% rename from doc/examples/plot_rag_draw.py rename to doc/examples/segmentation/plot_rag_draw.py diff --git a/doc/examples/plot_rag_mean_color.py b/doc/examples/segmentation/plot_rag_mean_color.py similarity index 100% rename from doc/examples/plot_rag_mean_color.py rename to doc/examples/segmentation/plot_rag_mean_color.py diff --git a/doc/examples/plot_rag_merge.py b/doc/examples/segmentation/plot_rag_merge.py similarity index 100% rename from doc/examples/plot_rag_merge.py rename to doc/examples/segmentation/plot_rag_merge.py diff --git a/doc/examples/plot_random_walker_segmentation.py b/doc/examples/segmentation/plot_random_walker_segmentation.py similarity index 100% rename from doc/examples/plot_random_walker_segmentation.py rename to doc/examples/segmentation/plot_random_walker_segmentation.py diff --git a/doc/examples/plot_regionprops.py b/doc/examples/segmentation/plot_regionprops.py similarity index 100% rename from doc/examples/plot_regionprops.py rename to doc/examples/segmentation/plot_regionprops.py diff --git a/doc/examples/plot_segmentations.py b/doc/examples/segmentation/plot_segmentations.py similarity index 100% rename from doc/examples/plot_segmentations.py rename to doc/examples/segmentation/plot_segmentations.py diff --git a/doc/examples/plot_threshold_adaptive.py b/doc/examples/segmentation/plot_threshold_adaptive.py similarity index 100% rename from doc/examples/plot_threshold_adaptive.py rename to doc/examples/segmentation/plot_threshold_adaptive.py diff --git a/doc/examples/plot_watershed.py b/doc/examples/segmentation/plot_watershed.py similarity index 100% rename from doc/examples/plot_watershed.py rename to doc/examples/segmentation/plot_watershed.py diff --git a/doc/examples/transform/README.txt b/doc/examples/transform/README.txt new file mode 100644 index 00000000..dcc361fb --- /dev/null +++ b/doc/examples/transform/README.txt @@ -0,0 +1,2 @@ +Geometrical transformations and registration +-------------------------------------------- diff --git a/doc/examples/plot_edge_modes.py b/doc/examples/transform/plot_edge_modes.py similarity index 100% rename from doc/examples/plot_edge_modes.py rename to doc/examples/transform/plot_edge_modes.py diff --git a/doc/examples/plot_matching.py b/doc/examples/transform/plot_matching.py similarity index 100% rename from doc/examples/plot_matching.py rename to doc/examples/transform/plot_matching.py diff --git a/doc/examples/plot_piecewise_affine.py b/doc/examples/transform/plot_piecewise_affine.py similarity index 100% rename from doc/examples/plot_piecewise_affine.py rename to doc/examples/transform/plot_piecewise_affine.py diff --git a/doc/examples/plot_pyramid.py b/doc/examples/transform/plot_pyramid.py similarity index 100% rename from doc/examples/plot_pyramid.py rename to doc/examples/transform/plot_pyramid.py diff --git a/doc/examples/plot_radon_transform.py b/doc/examples/transform/plot_radon_transform.py similarity index 100% rename from doc/examples/plot_radon_transform.py rename to doc/examples/transform/plot_radon_transform.py diff --git a/doc/examples/plot_ransac.py b/doc/examples/transform/plot_ransac.py similarity index 100% rename from doc/examples/plot_ransac.py rename to doc/examples/transform/plot_ransac.py diff --git a/doc/examples/plot_ransac3D.py b/doc/examples/transform/plot_ransac3D.py similarity index 100% rename from doc/examples/plot_ransac3D.py rename to doc/examples/transform/plot_ransac3D.py diff --git a/doc/examples/plot_register_translation.py b/doc/examples/transform/plot_register_translation.py similarity index 100% rename from doc/examples/plot_register_translation.py rename to doc/examples/transform/plot_register_translation.py diff --git a/doc/examples/plot_seam_carving.py b/doc/examples/transform/plot_seam_carving.py similarity index 100% rename from doc/examples/plot_seam_carving.py rename to doc/examples/transform/plot_seam_carving.py diff --git a/doc/examples/plot_ssim.py b/doc/examples/transform/plot_ssim.py similarity index 100% rename from doc/examples/plot_ssim.py rename to doc/examples/transform/plot_ssim.py diff --git a/doc/examples/plot_swirl.py b/doc/examples/transform/plot_swirl.py similarity index 100% rename from doc/examples/plot_swirl.py rename to doc/examples/transform/plot_swirl.py diff --git a/doc/examples/applications/README.txt b/doc/examples/xx_applications/README.txt similarity index 100% rename from doc/examples/applications/README.txt rename to doc/examples/xx_applications/README.txt diff --git a/doc/examples/applications/plot_coins_segmentation.py b/doc/examples/xx_applications/plot_coins_segmentation.py similarity index 100% rename from doc/examples/applications/plot_coins_segmentation.py rename to doc/examples/xx_applications/plot_coins_segmentation.py diff --git a/doc/examples/applications/plot_geometric.py b/doc/examples/xx_applications/plot_geometric.py similarity index 100% rename from doc/examples/applications/plot_geometric.py rename to doc/examples/xx_applications/plot_geometric.py diff --git a/doc/examples/applications/plot_morphology.py b/doc/examples/xx_applications/plot_morphology.py similarity index 100% rename from doc/examples/applications/plot_morphology.py rename to doc/examples/xx_applications/plot_morphology.py diff --git a/doc/examples/applications/plot_rank_filters.py b/doc/examples/xx_applications/plot_rank_filters.py similarity index 100% rename from doc/examples/applications/plot_rank_filters.py rename to doc/examples/xx_applications/plot_rank_filters.py diff --git a/doc/source/user_guide/numpy_images.txt b/doc/source/user_guide/numpy_images.txt index 46f21afa..f4b3cf42 100644 --- a/doc/source/user_guide/numpy_images.txt +++ b/doc/source/user_guide/numpy_images.txt @@ -81,9 +81,9 @@ disk: :: ... (nrows / 2)**2) >>> camera[outer_disk_mask] = 0 -.. image:: ../auto_examples/images/plot_camera_numpy_1.png +.. image:: ../auto_examples/numpy_operations/images/plot_camera_numpy_1.png :width: 45% - :target: ../auto_examples/plot_camera_numpy.html + :target: ../auto_examples/numpy_operations/plot_camera_numpy.html Boolean arithmetic can be used to define more complex masks: :: diff --git a/doc/source/user_guide/transforming_image_data.txt b/doc/source/user_guide/transforming_image_data.txt index f5b92e45..472b55dc 100644 --- a/doc/source/user_guide/transforming_image_data.txt +++ b/doc/source/user_guide/transforming_image_data.txt @@ -78,8 +78,8 @@ using an array of labels to encode the regions to be represented with the same color. -.. image: ../auto_examples/images/plot_join_segmentations_1.png - :target: ../auto_examples/plot_join_segmentations.html +.. image: ../auto_examples/segmentation/images/plot_join_segmentations_1.png + :target: ../auto_examples/segmentation/plot_join_segmentations.html :align: center :width: 80% @@ -87,9 +87,9 @@ same color. .. topic:: Examples: - * :ref:`example_plot_tinting_grayscale_images.py` - * :ref:`example_plot_join_segmentations.py` - * :ref:`example_plot_rag_mean_color.py` + * :ref:`example_color_exposure_plot_tinting_grayscale_images.py` + * :ref:`example_segmentation_plot_join_segmentations.py` + * :ref:`example_segmentation_plot_rag_mean_color.py` Contrast and exposure @@ -157,16 +157,16 @@ details are enhanced in large regions with poor contrast. As a further refinement, histogram equalization can be performed in subregions of the image with :func:`equalize_adapthist`, in order to correct for exposure gradients across the image. See the example -:ref:`example_plot_equalize.py`. +:ref:`example_color_exposure_plot_equalize.py`. -.. image:: ../auto_examples/images/plot_equalize_1.png - :target: ../auto_examples/plot_equalize.html +.. image:: ../auto_examples/color_exposure/images/plot_equalize_1.png + :target: ../auto_examples/color_exposure/plot_equalize.html :align: center :width: 90% .. topic:: Examples: - * :ref:`example_plot_equalize.py` + * :ref:`example_color_exposure_plot_equalize.py` diff --git a/doc/source/user_guide/tutorial_segmentation.txt b/doc/source/user_guide/tutorial_segmentation.txt index 76af842e..e5382528 100644 --- a/doc/source/user_guide/tutorial_segmentation.txt +++ b/doc/source/user_guide/tutorial_segmentation.txt @@ -11,8 +11,8 @@ the coins cannot be done directly from the histogram of grey values, because the background shares enough grey levels with the coins that a thresholding segmentation is not sufficient. -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_1.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_1.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center :: @@ -26,8 +26,8 @@ Simply thresholding the image leads either to missing significant parts of the coins, or to merging parts of the background with the coins. This is due to the inhomogeneous lighting of the image. -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_2.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_2.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center A first idea is to take advantage of the local contrast, that is, to @@ -53,8 +53,8 @@ boundary of the coins, or inside the coins. >>> from scipy import ndimage as ndi >>> fill_coins = ndi.binary_fill_holes(edges) -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_3.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_3.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center Now that we have contours that delineate the outer boundary of the coins, @@ -62,8 +62,8 @@ we fill the inner part of the coins using the ``ndi.binary_fill_holes`` function, which uses mathematical morphology to fill the holes. -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_4.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_4.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center Most coins are well segmented out of the background. Small objects from @@ -83,8 +83,8 @@ has not been segmented correctly at all. The reason is that the contour that we got from the Canny detector was not completely closed, therefore the filling function did not fill the inner part of the coin. -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_5.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_5.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center Therefore, this segmentation method is not very robust: if we miss a @@ -128,8 +128,8 @@ separate the coins from the background. and here is the corresponding 2-D plot: -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_6.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_6.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center The next step is to find markers of the background and the coins based on the @@ -139,8 +139,8 @@ extreme parts of the histogram of grey values:: >>> markers[coins < 30] = 1 >>> markers[coins > 150] = 2 -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_7.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_7.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center Let us now compute the watershed transform:: @@ -148,8 +148,8 @@ Let us now compute the watershed transform:: >>> from skimage.morphology import watershed >>> segmentation = watershed(elevation_map, markers) -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_8.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_8.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center With this method, the result is satisfying for all coins. Even if the @@ -165,7 +165,7 @@ We can now label all the coins one by one using ``ndi.label``:: >>> labeled_coins, _ = ndi.label(segmentation) -.. image:: ../auto_examples/applications/images/plot_coins_segmentation_9.png - :target: ../auto_examples/applications/plot_coins_segmentation.html +.. image:: ../auto_examples/xx_applications/images/plot_coins_segmentation_9.png + :target: ../auto_examples/xx_applications/plot_coins_segmentation.html :align: center diff --git a/tools/travis_script.sh b/tools/travis_script.sh index d3cdb221..4e40e997 100755 --- a/tools/travis_script.sh +++ b/tools/travis_script.sh @@ -69,7 +69,7 @@ touch $MPL_DIR/matplotlibrc echo 'backend : Template' > $MPL_DIR/matplotlibrc -for f in doc/examples/*.py; do +for f in doc/examples/*/*.py; do python "$f" if [ $? -ne 0 ]; then exit 1 @@ -81,7 +81,7 @@ section_end "Run.doc.examples" section "Run.doc.applications" -for f in doc/examples/applications/*.py; do +for f in doc/examples/xx_applications/*.py; do python "$f" if [ $? -ne 0 ]; then exit 1