Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.12"

Expand Down Expand Up @@ -133,13 +133,13 @@ jobs:
zip -r docs/build/html/mvtb_notebooks.zip docs/notebooks

- name: Upload notebooks zip artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: mvtb_notebooks
path: docs/build/html/mvtb_notebooks.zip
if-no-files-found: error

- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v5
if: github.event_name == 'push'
with:
path: docs/build/html
Expand All @@ -155,4 +155,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5
1 change: 0 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
-e .[docs]
sphinx-autorun @ git+https://github.com/petercorke/sphinx-autorun.git
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"sphinx.ext.doctest",
"sphinx.ext.autosectionlabel",
"sphinx.ext.inheritance_diagram",
"sphinx_autorun",
"sphinx_pyrunblock",
"sphinx.ext.intersphinx",
"sphinx_favicon",
"sphinx_copybutton",
Expand All @@ -69,8 +69,8 @@
autoclass_content = "both" # use __init__ or class docstring
add_function_parentheses = False

# -- sphinx-autorun setup ----------------------------------------------------
# options for spinx_autorun, used for inline examples
# -- sphinx-pyrunblock setup --------------------------------------------------
# options for sphinx_pyrunblock, used for inline examples
# choose UTF-8 encoding to allow for Unicode characters, eg. ansitable
# Python session setup, turn off color printing for SE3, set NumPy precision
autorun_languages = {}
Expand Down
60 changes: 58 additions & 2 deletions docs/source/image_class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Image attributes
Describe the attributes of an :class:`~machinevisiontoolbox.Image`.

.. autosummary::
:toctree: stubs
:nosignatures:

~__repr__
Expand All @@ -53,6 +54,7 @@ Predicates
Test attributes of an ``Image``.

.. autosummary::
:toctree: stubs
:nosignatures:

~isbgr
Expand All @@ -68,6 +70,7 @@ Color planes and channels
Return information about the color planes of an ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~nplanes
Expand All @@ -92,6 +95,7 @@ Image coordinates
Describe the pixel coordinates of an ``Image``.

.. autosummary::
:toctree: stubs
:nosignatures:

~contains
Expand All @@ -107,6 +111,7 @@ NumPy pixel data
Return ``Image`` pixel data as a NumPy array.

.. autosummary::
:toctree: stubs
:nosignatures:

~array
Expand All @@ -125,6 +130,7 @@ Getting pixels
Access individual pixels or groups of pixels.

.. autosummary::
:toctree: stubs
:nosignatures:

~__getitem__
Expand All @@ -137,6 +143,7 @@ Image datatype
Describe or change the datatype of ``Image`` pixel values.

.. autosummary::
:toctree: stubs
:nosignatures:

~astype
Expand All @@ -161,6 +168,7 @@ Sub images
Extract sub-images or planes from an ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~blue
Expand All @@ -176,6 +184,7 @@ Color space and gamma
Convert between color spaces and perform gamma encoding and decoding.

.. autosummary::
:toctree: stubs
:nosignatures:

~chromaticity
Expand All @@ -193,6 +202,7 @@ Composition
Combine multiple ``Image`` instances into a single ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~anaglyph
Expand All @@ -210,6 +220,7 @@ Monadic functions
Operate elementwise on an ``Image`` instance and returns a new ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~abs
Expand All @@ -230,6 +241,7 @@ Dyadic functions
Operate elementwise on two ``Image`` instances and return a new ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~apply2
Expand All @@ -243,6 +255,7 @@ Linear filtering
Linear filtering operations including convolution, corner and edge detection.

.. autosummary::
:toctree: stubs
:nosignatures:

~canny
Expand All @@ -266,6 +279,7 @@ Non-linear (morphological) filtering
Variety of non-linear morphological operations.

.. autosummary::
:toctree: stubs
:nosignatures:

~close
Expand All @@ -277,7 +291,7 @@ Variety of non-linear morphological operations.
~medianfilter
~morph
~open
~rank
~rankfilter
~thin
~thin_animate
~triplepoint
Expand All @@ -290,6 +304,7 @@ Image labeling
Binary, greyscale and color image segmentation using various algorithms.

.. autosummary::
:toctree: stubs
:nosignatures:

~labels_binary
Expand All @@ -302,6 +317,7 @@ Image similarity
Various scalar image similarity measures.

.. autosummary::
:toctree: stubs
:nosignatures:

~ncc
Expand All @@ -318,6 +334,7 @@ Shape changing
Changing the shape of an ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~decimate
Expand All @@ -336,6 +353,7 @@ Image distortion
Distorting the image within an ``Image`` instance.

.. autosummary::
:toctree: stubs
:nosignatures:

~interp2d
Expand All @@ -353,6 +371,7 @@ Multiview operations
Stereo image processing, rectification, and display.

.. autosummary::
:toctree: stubs
:nosignatures:

~DSI_refine
Expand All @@ -367,6 +386,7 @@ Tensor conversion
Convert between ``Image`` objects and PyTorch tensors.

.. autosummary::
:toctree: stubs
:nosignatures:

~tensor
Expand Down Expand Up @@ -396,6 +416,7 @@ Arithmetic and bitwise logical operations can be performed elementwise on:


.. autosummary::
:toctree: stubs
:nosignatures:

~__add__
Expand All @@ -422,6 +443,7 @@ Logical operations can be performed elementwise on: ``Image`` ☆ ``Image``.
The result is always an ``Image`` with boolean pixel values:

.. autosummary::
:toctree: stubs
:nosignatures:

~__eq__
Expand All @@ -443,6 +465,7 @@ Arithmetic and bitwise logical operations can be performed elementwise on:
The result is always an ``Image``. A scalar value is broadcast across the whole image.

.. autosummary::
:toctree: stubs
:nosignatures:

~__iadd__
Expand All @@ -464,6 +487,7 @@ A scalar value is broadcast across the whole image to create a new ``Image`` in
In place stacking allows for planes to be appended.

.. autosummary::
:toctree: stubs
:nosignatures:

~__imod__
Expand All @@ -473,6 +497,7 @@ Image statistics
----------------

.. autosummary::
:toctree: stubs
:nosignatures:

~max
Expand Down Expand Up @@ -501,6 +526,7 @@ Histograms
""""""""""

.. autosummary::
:toctree: stubs
:nosignatures:

~hist
Expand All @@ -510,6 +536,7 @@ Image moments
"""""""""""""

.. autosummary::
:toctree: stubs
:nosignatures:

~humoments
Expand All @@ -522,6 +549,7 @@ Other
"""""

.. autosummary::
:toctree: stubs
:nosignatures:

~flatnonzero
Expand All @@ -537,6 +565,7 @@ Region features
Find homogeneous regions, text or fiducual tags.

.. autosummary::
:toctree: stubs
:nosignatures:

~blobs
Expand All @@ -549,6 +578,7 @@ Fiducial features
^^^^^^^^^^^^^^^^^

.. autosummary::
:toctree: stubs
:nosignatures:

~fiducial
Expand All @@ -559,6 +589,7 @@ Line features
Find lines in an image.

.. autosummary::
:toctree: stubs
:nosignatures:

~Hough
Expand All @@ -569,6 +600,7 @@ Point/corner features
Find distincitive points in an image.

.. autosummary::
:toctree: stubs
:nosignatures:

~AKAZE
Expand All @@ -586,6 +618,7 @@ File
^^^^

.. autosummary::
:toctree: stubs
:nosignatures:

~metadata
Expand All @@ -596,6 +629,7 @@ Graphical
^^^^^^^^^

.. autosummary::
:toctree: stubs
:nosignatures:

~disp
Expand All @@ -606,6 +640,7 @@ Text
^^^^

.. autosummary::
:toctree: stubs
:nosignatures:

~print
Expand All @@ -618,6 +653,7 @@ Comparison helpers
Utilities for scalar equality checks between images.

.. autosummary::
:toctree: stubs
:nosignatures:

~sameas
Expand All @@ -628,6 +664,7 @@ Constant images
Create images that are constant, random, or have a simple geometric pattern.

.. autosummary::
:toctree: stubs
:nosignatures:

~Chequerboard
Expand All @@ -648,6 +685,7 @@ Render simple graphical annotations into an image. The equivalent functions ``p
from SpatialMath Toolbox create graphical overlays rather than changing the the image data.

.. autosummary::
:toctree: stubs
:nosignatures:

~draw_box
Expand All @@ -662,4 +700,22 @@ Test images
-----------

Sometimes, for pedagogy and unit tests, it is helpful to create, process and numerically
display small example images.
display small example images.

Deprecated aliases
-------------------

These names are kept for backward compatibility and will emit a deprecation warning.

.. autosummary::
:toctree: stubs
:nosignatures:

~A
~adaptive_threshold
~column
~image
~ithresh
~ncdf
~rank
~thresh
Loading
Loading