Skip to content

Commit

Permalink
release v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalitz committed Feb 14, 2023
1 parent 4cdcbed commit 270e499
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 39 deletions.
1 change: 1 addition & 0 deletions doc/src/draw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -507,3 +507,4 @@ This is a special case of the flood_fill algorithm that is designed
to remove dark borders produced by photocopiers or flatbed scanners
around the border of the image.


19 changes: 10 additions & 9 deletions doc/src/externallibraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Numpy

Instantiates a Gamera image from a Numeric multi-dimensional
array *array*.

The array must be one of the following types and will map to
the corresponding Gamera image type:

Expand Down Expand Up @@ -107,7 +107,7 @@ an image, you can use numpy, as in the following example:

**Example 1:** to_numpy

|to_numpy_plugin_00_00| |to_numpy_plugin_00_01|
|to_numpy_plugin_00_00| |to_numpy_plugin_00_01|

.. |to_numpy_plugin_00_00| image:: images/to_numpy_plugin_00_00.png
:height: 129
Expand All @@ -119,7 +119,7 @@ an image, you can use numpy, as in the following example:

**Example 2:** to_numpy

|to_numpy_plugin_01_00| |to_numpy_plugin_01_01|
|to_numpy_plugin_01_00| |to_numpy_plugin_01_01|

.. |to_numpy_plugin_01_00| image:: images/to_numpy_plugin_01_00.png
:height: 67
Expand All @@ -131,7 +131,7 @@ an image, you can use numpy, as in the following example:

**Example 3:** to_numpy

|to_numpy_plugin_02_00| |to_numpy_plugin_02_01|
|to_numpy_plugin_02_00| |to_numpy_plugin_02_01|

.. |to_numpy_plugin_02_00| image:: images/to_numpy_plugin_02_00.png
:height: 99
Expand All @@ -143,7 +143,7 @@ an image, you can use numpy, as in the following example:

**Example 4:** to_numpy

|to_numpy_plugin_03_00| |to_numpy_plugin_03_01|
|to_numpy_plugin_03_00| |to_numpy_plugin_03_01|

.. |to_numpy_plugin_03_00| image:: images/to_numpy_plugin_03_00.png
:height: 67
Expand All @@ -155,7 +155,7 @@ an image, you can use numpy, as in the following example:

**Example 5:** to_numpy

|to_numpy_plugin_04_00| |to_numpy_plugin_04_01|
|to_numpy_plugin_04_00| |to_numpy_plugin_04_01|

.. |to_numpy_plugin_04_00| image:: images/to_numpy_plugin_04_00.png
:height: 67
Expand Down Expand Up @@ -226,7 +226,7 @@ May fail for very large images.

**Example 1:** to_pil

|to_pil_plugin_00_00| |to_pil_plugin_00_01|
|to_pil_plugin_00_00| |to_pil_plugin_00_01|

.. |to_pil_plugin_00_00| image:: images/to_pil_plugin_00_00.png
:height: 129
Expand All @@ -238,7 +238,7 @@ May fail for very large images.

**Example 2:** to_pil

|to_pil_plugin_01_00| |to_pil_plugin_01_01|
|to_pil_plugin_01_00| |to_pil_plugin_01_01|

.. |to_pil_plugin_01_00| image:: images/to_pil_plugin_01_00.png
:height: 67
Expand Down Expand Up @@ -360,8 +360,9 @@ Encodes the image into a 'buffer' required by wx.Image.
*scaled_image* to a wx.Bitmap, you can do so as follows:

.. code:: Python

wximg = wx.EmptyImage(scaled_image.ncols, scaled_image.nrows)
scaled_image.to_buffer(wximg.GetDataBuffer())
wxbmp = wx.BitmapFromImage(wximg)


61 changes: 31 additions & 30 deletions doc/src/features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,20 @@ rotated projections at +/- 45 degrees.


Fourier descriptor for arbitrary (not necessarily connected) shapes
according to equations (18) and (19) in
according to equations (18) and (19) in

C. Dalitz, C. Brandt, S. Goebbels, D. Kolanus:
`Fourier Descriptors for Broken Shapes`__.
EURASIP Journal on Advances in Signal Processing 2013:161, 2013

The coefficient c_0 is used for scale normalisation. The
absolute values of the coefficients A(0), A(N-1) A(1), A(N-2), ... are
The coefficient c_0 is used for scale normalisation. The
absolute values of the coefficients A(0), A(N-1) A(1), A(N-2), ... are
returned.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | X | |
+-------+----------+--------+
Expand Down Expand Up @@ -258,17 +258,17 @@ returned.

Returns *moments* of the image.

The first two elements of the returned ``FloatVector`` are the
The first two elements of the returned ``FloatVector`` are the
center of gravity on *x* and *y* axis normalized by width and height,
respectively. The following seven entries are the
respectively. The following seven entries are the
*normalized central moments* (*u20,u02,u11,u30,u12,u21,u03*). For their
definition, see Gonzalez, Woods: "Digital Image Processing",
Prentice Hall, second edition (2002).

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | |
+-------+----------+--------+
Expand Down Expand Up @@ -303,9 +303,9 @@ invariant, it is helpful for distinguishing similar symbols of
different size.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| | | X |
+-------+----------+--------+
Expand Down Expand Up @@ -345,9 +345,9 @@ The elements of the returned ``FloatVector`` are:
1. horizontal

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | X |
+-------+----------+--------+
Expand Down Expand Up @@ -389,9 +389,9 @@ The elements of the returned ``FloatVector`` are:
horizonal ``nholes`` for each of the strips in order top to bottom.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | |
+-------+----------+--------+
Expand Down Expand Up @@ -426,9 +426,9 @@ invariant, it is helpful for distinguishing similar symbols of
different size.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| | | X |
+-------+----------+--------+
Expand Down Expand Up @@ -473,9 +473,9 @@ a number of properties:
5. Number of *y*-axis crossings with respect to the *y*-axis through the center of mass

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | X |
+-------+----------+--------+
Expand Down Expand Up @@ -510,9 +510,9 @@ the first feature is the first row containing a black pixel, and
the second feature is the last row containing a black pixel.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | X |
+-------+----------+--------+
Expand Down Expand Up @@ -546,9 +546,9 @@ The percentage of black pixels within the rectangular bounding box
of the image. Result in range (0, 1].

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | X |
+-------+----------+--------+
Expand Down Expand Up @@ -582,9 +582,9 @@ Divides the image into a 4 x 4 grid of 16 regions and calculates
the volume within each. This feature is also known as "zoning" method.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | |
+-------+----------+--------+
Expand Down Expand Up @@ -618,9 +618,9 @@ Divides the image into an 8 x 8 grid of 64 regions and calculates
the volume within each. This feature is also known as "zoning" method.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | | |
+-------+----------+--------+
Expand Down Expand Up @@ -670,9 +670,9 @@ The moments *A00* and *A11* are not computed because these are constant
under the used normalization scheme.

+---------------------------+
| **Invariant to:** |
| **Invariant to:** |
+-------+----------+--------+
| scale | rotation | mirror |
| scale | rotation | mirror |
+-------+----------+--------+
| X | X | X |
+-------+----------+--------+
Expand Down Expand Up @@ -723,3 +723,4 @@ The return values are the absolute values of
The moments *A00* and *A11* are not computed because these are constant
under the used normalization scheme.


1 change: 1 addition & 0 deletions doc/src/utility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,4 @@ Changes to subimages will affect all other subimages viewing the same data.
Returns minimal view so that outside of the view only Pixels with
*PixelValue* exists. When no *PixelValue* is given, white is used.


0 comments on commit 270e499

Please sign in to comment.