mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 11:59:59 +08:00
Change data types to conform to style guide
This commit is contained in:
@@ -201,7 +201,7 @@ def blob_dog(image, min_sigma=1, max_sigma=50, sigma_ratio=1.6, threshold=2.0,
|
||||
threshold_rel=0.0,
|
||||
exclude_border=False)
|
||||
# Convert local_maxima to float64
|
||||
lm = local_maxima.astype('float64')
|
||||
lm = local_maxima.astype(np.float64)
|
||||
# Convert the last index to its corresponding scale value
|
||||
lm[:,2] = sigma_list[local_maxima[:,2]]
|
||||
local_maxima = lm
|
||||
@@ -303,7 +303,7 @@ def blob_log(image, min_sigma=1, max_sigma=50, num_sigma=10, threshold=.2,
|
||||
exclude_border=False)
|
||||
|
||||
# Convert local_maxima to float64
|
||||
lm = local_maxima.astype('float64')
|
||||
lm = local_maxima.astype(np.float64)
|
||||
# Convert the last index to its corresponding scale value
|
||||
lm[:,2] = sigma_list[local_maxima[:,2]]
|
||||
local_maxima = lm
|
||||
@@ -413,7 +413,7 @@ def blob_doh(image, min_sigma=1, max_sigma=30, num_sigma=10, threshold=0.01,
|
||||
exclude_border=False)
|
||||
|
||||
# Convert local_maxima to float64
|
||||
lm = local_maxima.astype('float64')
|
||||
lm = local_maxima.astype(np.float64)
|
||||
# Convert the last index to its corresponding scale value
|
||||
lm[:,2] = sigma_list[local_maxima[:,2]]
|
||||
local_maxima = lm
|
||||
|
||||
Reference in New Issue
Block a user