
.. DO NOT EDIT.
.. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
.. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
.. "auto_examples/features_detection/plot_daisy.py"
.. LINE NUMBERS ARE GIVEN BELOW.

.. only:: html

    .. note::
        :class: sphx-glr-download-link-note

        :ref:`Go to the end <sphx_glr_download_auto_examples_features_detection_plot_daisy.py>`
        to download the full example code.

.. rst-class:: sphx-glr-example-title

.. _sphx_glr_auto_examples_features_detection_plot_daisy.py:


===============================
Dense DAISY feature description
===============================

The DAISY local image descriptor is based on gradient orientation histograms
similar to the SIFT descriptor. It is formulated in a way that allows for fast
dense extraction which is useful for e.g. bag-of-features image
representations.

In this example a limited number of DAISY descriptors are extracted at a large
scale for illustrative purposes.

.. GENERATED FROM PYTHON SOURCE LINES 14-31



.. image-sg:: /auto_examples/features_detection/images/sphx_glr_plot_daisy_001.png
   :alt: 9 DAISY descriptors extracted:
   :srcset: /auto_examples/features_detection/images/sphx_glr_plot_daisy_001.png
   :class: sphx-glr-single-img





.. code-block:: Python


    from skimage.feature import daisy
    from skimage import data
    import matplotlib.pyplot as plt


    img = data.camera()
    descs, descs_img = daisy(
        img, step=180, radius=58, rings=2, histograms=6, orientations=8, visualize=True
    )

    fig, ax = plt.subplots()
    ax.axis("off")
    ax.imshow(descs_img)
    descs_num = descs.shape[0] * descs.shape[1]
    ax.set_title(f"{descs_num} DAISY descriptors extracted:")
    plt.show()


.. rst-class:: sphx-glr-timing

   **Total running time of the script:** (0 minutes 1.463 seconds)


.. _sphx_glr_download_auto_examples_features_detection_plot_daisy.py:

.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-example

    .. container:: sphx-glr-download sphx-glr-download-jupyter

      :download:`Download Jupyter notebook: plot_daisy.ipynb <plot_daisy.ipynb>`

    .. container:: sphx-glr-download sphx-glr-download-python

      :download:`Download Python source code: plot_daisy.py <plot_daisy.py>`

    .. container:: sphx-glr-download sphx-glr-download-zip

      :download:`Download zipped: plot_daisy.zip <plot_daisy.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
