:orphan:

Examples
========

End-to-end examples demonstrating PyGROG's API for non-Cartesian MRI
reconstruction using GROG-accelerated sparse FFT operators.


.. raw:: html

  <div id='sg-tag-list' class='sphx-glr-tag-list'></div>


.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example follows a realistic non-Cartesian pipeline:">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example01_basic_usage_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example01_basic_usage`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Basic Usage: mri-nufft Baseline vs PyGROG</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example focuses on stack/batch behavior and trajectory handling.">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example02_stacked_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example02_stacked`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Batched and Stacked Reconstructions with PyGROG</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example uses a common data pipeline for both PyGROG gadgets:">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example03_gadgets_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example03_gadgets`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Gadgets with mri-nufft Data: Subspace and B0 ORC</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example introduces two utility routines from pygrog.utils:">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example04_calibration_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example04_calibration`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Utils Tour: Coil Compression and NLINV</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the solve method exposed on every PyGROG operator (``SparseFFT``, MaskedFFT and their pygrog.gadgets decorators), and the pygrog.PolynomialPreconditioner accelerator.">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example05_solvers_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example05_solvers`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Iterative Solve: CG, LSMR, and Polynomial Preconditioning</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Iterative reconstructions (CG, FISTA) repeatedly evaluate the normal operator A^H A.  PyGROG ships a Toeplitz-embedded short-circuit: op.normal(image) builds a small PSF once and replaces every forward+adjoint NUFFT pair by a pad → FFT → multiply → IFFT → crop sequence.">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example06_toeplitz_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example06_toeplitz`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Toeplitz-Embedded Self-Adjoint A^H A for SparseFFT Gadgets</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="PyGROG ships native adapters for the full preprocessing chain:">

.. only:: html

  .. image:: /generated/autoexamples/images/thumb/sphx_glr_example07_interoperability_thumb.png
    :alt:

  :doc:`/generated/autoexamples/example07_interoperability`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">End-to-end CS reconstruction with sigpy, deepinv and mrpro</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /generated/autoexamples/example01_basic_usage
   /generated/autoexamples/example02_stacked
   /generated/autoexamples/example03_gadgets
   /generated/autoexamples/example04_calibration
   /generated/autoexamples/example05_solvers
   /generated/autoexamples/example06_toeplitz
   /generated/autoexamples/example07_interoperability


.. only:: html

  .. container:: sphx-glr-footer sphx-glr-footer-gallery

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

      :download:`Download all examples in Python source code: autoexamples_python.zip </generated/autoexamples/autoexamples_python.zip>`

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

      :download:`Download all examples in Jupyter notebooks: autoexamples_jupyter.zip </generated/autoexamples/autoexamples_jupyter.zip>`


.. only:: html

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

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