Commit b3f9a797 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][imageregistration] Change docstring for improve_linear_shift

parent 8283ae8c
......@@ -171,16 +171,13 @@ def normalize(x):
def improve_linear_shift(data, v, h, epsilon, steps, nimages=None, shift_approach="linear"):
Function to find the best shift between the images. It loops ``h_max * h_step`` times,
Function to find the best shift between the images. It loops ``steps`` times,
applying a different shift each, and trying to find the one that has the best result.
:param array_like data: The stack of images.
:param 2-dimensional array_like v: The vector with the direction of the shift.
:param number h_max: The maximum value that h can achieve, being h the shift between
images divided by the vector v (i.e the coordinates of the shift in base v).
:param number h_step: Spacing between the ``h`` tried. For any `` shift = h * v * idx``,
where ``idx`` is the index of the image to apply the shift to, this is the distance
between two adjacent values of h.
:param float epsilon: Maximum value of h
:param int steps: Number of different tries of h.
:param int nimages: The number of images to be used to find the best shift. It has to
be smaller or equal as the length of the data. If it is smaller, the images used
are chosen using `numpy.random.choice`, without replacement.
Supports Markdown
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