mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 19:16:31 +08:00
@@ -21,6 +21,7 @@ def binary_blobs(length=512, blob_size_fraction=0.1, n_dim=2,
|
||||
Should be in [0, 1].
|
||||
seed : int, optional
|
||||
Seed to initialize the random number generator.
|
||||
If `None`, a random seed from the operating system is used.
|
||||
|
||||
Returns
|
||||
-------
|
||||
|
||||
@@ -346,8 +346,6 @@ class AffineTransform(ProjectiveTransform):
|
||||
|
||||
"""2D affine transformation of the form:
|
||||
|
||||
..:math:
|
||||
|
||||
X = a0*x + a1*y + a2 =
|
||||
= sx*x*cos(rotation) - sy*y*sin(rotation + shear) + a2
|
||||
|
||||
@@ -574,8 +572,6 @@ class PiecewiseAffineTransform(GeometricTransform):
|
||||
class SimilarityTransform(ProjectiveTransform):
|
||||
"""2D similarity transformation of the form:
|
||||
|
||||
..:math:
|
||||
|
||||
X = a0 * x - b0 * y + a1 =
|
||||
= m * x * cos(rotation) - m * y * sin(rotation) + a1
|
||||
|
||||
@@ -746,8 +742,6 @@ class SimilarityTransform(ProjectiveTransform):
|
||||
class PolynomialTransform(GeometricTransform):
|
||||
"""2D transformation of the form:
|
||||
|
||||
..:math:
|
||||
|
||||
X = sum[j=0:order]( sum[i=0:j]( a_ji * x**(j - i) * y**i ))
|
||||
Y = sum[j=0:order]( sum[i=0:j]( b_ji * x**(j - i) * y**i ))
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ def dtype_limits(image, clip_negative=True):
|
||||
----------
|
||||
image : ndarray
|
||||
Input image.
|
||||
clip_negative : bool
|
||||
clip_negative : bool, optional
|
||||
If True, clip the negative range (i.e. return 0 for min intensity)
|
||||
even if the image dtype allows negative values.
|
||||
"""
|
||||
@@ -67,9 +67,9 @@ def convert(image, dtype, force_copy=False, uniform=False):
|
||||
Input image.
|
||||
dtype : dtype
|
||||
Target data-type.
|
||||
force_copy : bool
|
||||
force_copy : bool, optional
|
||||
Force a copy of the data, irrespective of its current dtype.
|
||||
uniform : bool
|
||||
uniform : bool, optional
|
||||
Uniformly quantize the floating point range to the integer range.
|
||||
By default (uniform=False) floating point values are scaled and
|
||||
rounded to the nearest integers, which minimizes back and forth
|
||||
@@ -284,7 +284,7 @@ def img_as_float(image, force_copy=False):
|
||||
----------
|
||||
image : ndarray
|
||||
Input image.
|
||||
force_copy : bool
|
||||
force_copy : bool, optional
|
||||
Force a copy of the data, irrespective of its current dtype.
|
||||
|
||||
Returns
|
||||
@@ -308,7 +308,7 @@ def img_as_uint(image, force_copy=False):
|
||||
----------
|
||||
image : ndarray
|
||||
Input image.
|
||||
force_copy : bool
|
||||
force_copy : bool, optional
|
||||
Force a copy of the data, irrespective of its current dtype.
|
||||
|
||||
Returns
|
||||
@@ -332,7 +332,7 @@ def img_as_int(image, force_copy=False):
|
||||
----------
|
||||
image : ndarray
|
||||
Input image.
|
||||
force_copy : bool
|
||||
force_copy : bool, optional
|
||||
Force a copy of the data, irrespective of its current dtype.
|
||||
|
||||
Returns
|
||||
@@ -357,7 +357,7 @@ def img_as_ubyte(image, force_copy=False):
|
||||
----------
|
||||
image : ndarray
|
||||
Input image.
|
||||
force_copy : bool
|
||||
force_copy : bool, optional
|
||||
Force a copy of the data, irrespective of its current dtype.
|
||||
|
||||
Returns
|
||||
@@ -381,7 +381,7 @@ def img_as_bool(image, force_copy=False):
|
||||
----------
|
||||
image : ndarray
|
||||
Input image.
|
||||
force_copy : bool
|
||||
force_copy : bool, optional
|
||||
Force a copy of the data, irrespective of its current dtype.
|
||||
|
||||
Returns
|
||||
|
||||
Reference in New Issue
Block a user