Commit 1883c776 authored by André Anjos's avatar André Anjos 💬

Doc and identiation fixes

parent 788367d6
Pipeline #5196 failed with stages
in 7 minutes and 49 seconds
......@@ -350,9 +350,9 @@ class FingerCrop (Preprocessor):
img_h, img_w = image.shape
# Calculates the mask edges along the columns
edges = numpy.zeros(2, img_w)
edges = numpy.zeros((2, img_w), dtype=int)
edges[0,:] = mask.argmax(axis=0) # get upper edges
edges[1,:] = len(mask) - numpy.flipup(mask).argmax(axis=0) - 1
edges[1,:] = len(mask) - numpy.flipud(mask).argmax(axis=0) - 1
bl = edges.mean(axis=0) #baseline
x = numpy.arange(0,img_w)
......@@ -442,7 +442,7 @@ class FingerCrop (Preprocessor):
return retval
def __call__(self, data):
def __call__(self, data, annotations):
"""Reads the input image or (image, mask) and prepares for fex.
Parameters:
......
......@@ -107,10 +107,10 @@ protocol, do the following:
submit your job for SGE execution, you can run it in parallel (using 4
parallel tasks) by adding the options ``--parallel=4 --nice=10``.
Optionally, you may use the ``parallel` resource configuration which already
sets the number of parallel jobs to the number of hardware cores you have
installed on your machine (as with :py:func:`multiprocessing.cpu_count`) and
sets ``nice=10``. For example:
Optionally, you may use the ``parallel`` resource configuration which
already sets the number of parallel jobs to the number of hardware cores you
have installed on your machine (as with
:py:func:`multiprocessing.cpu_count`) and sets ``nice=10``. For example:
.. code-block:: sh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment