Skip to content

Commit

Permalink
#45 renaming tutorial3, discarding references to tutorial 5
Browse files Browse the repository at this point in the history
  • Loading branch information
myselfhimself committed Dec 22, 2020
1 parent b0df2ca commit 459a81a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions docs/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ The Python binding for G'MIC or ``gmic-py`` (although you "pip install gmic" and
Below you will discover core knowledge of ``gmic-py`` to optimize your scripts' processing speed a bit.
This will maybe be boring, but investing time there will allow you to spare CPU time and avoid superfluous file reads-writes, especially if you use ``gmic-py`` in some bigger back-end or front-end applications.

One thing which will be dealt with only in :ref:`Tutorial 5 - numpy, PIL, Scikit-image` though, is the interaction of ``gmic-py`` with third-party `numpy <https://numpy.org/>`_-based libraries and `IPython <https://ipython.org/>`_-based environments.
Note though, that some of knowledge of how the ``GmicImage`` class works is needed, so you might want to read the related section below beforehand.

In this tutorial, let us see how the 3 building blocks of gmic-py can be used together: the interpreter, single images, and images lists.
Expand Down Expand Up @@ -561,7 +560,7 @@ For accessing pixels, ``numpy`` provides a ``[]`` coordinates accessor ``numpy.n

The ``GmicImage`` class pixel accessor is just ``\(\)`` parentheses call on a ``GmicImage`` instance. That is to say, each ``GmicImage`` object is callable.
The signature for this accessor is ``mygmicimage(x=0,y=0,z=0,s=0)``, each parameter is optional and defaults to 0.
**Important:** for now, the ``GmicImage`` pixel accessor is read-only. You are encouraged to use I/O functions described in :ref:`Tutorial 5 - numpy, PIL, Scikit-image other libraries for writing.
**Important:** for now, the ``GmicImage`` pixel accessor is read-only. You are encouraged to use I/O functions described in :ref:`Numpy support` or :ref:`PIL support` or :ref:`Scikit-Image support`.

`Side note:` **s** stands for spectrum, it is interchangeable with c for channel in most G'MIC literature.

Expand Down Expand Up @@ -788,8 +787,8 @@ Now you know more about reusing a G'MIC interpreter handle and calling it severa
Congratulations!


Tutorial 3 - filtering GIF and videos
#########################################
Tutorial 3 - filtering a GIF into a flipbook
#############################################

This tutorial will lead you into filtering frames of animated content using ``gmic-py``:

Expand Down
Binary file modified examples/tutorial3-animated-files/flipbook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/tutorial3-animated-files/flipbook_oneliner.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@
print("Now is your turn to print this file on paper: flipbook.png")

# Wrap-up one-liner standalone command
g.run(
"https://upload.wikimedia.org/wikipedia/commons/c/cb/2016-09-16_20-30-00_eclipse-lunaire-ann2.gif remove[0] stars , repeat $! blur[$>] {$>*2} done frame 40,3 append_tiles ,4 rotate 90 resize_ratio2d 2100,2970 output flipbook_oneliner.png display"
)
# g.run(
# "https://upload.wikimedia.org/wikipedia/commons/c/cb/2016-09-16_20-30-00_eclipse-lunaire-ann2.gif remove[0] stars , repeat $! blur[$>] {$>*2} done frame 40,3 append_tiles ,4 rotate 90 resize_ratio2d 2100,2970 output flipbook_oneliner.png display"
# )

0 comments on commit 459a81a

Please sign in to comment.