mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Create codespell.yml (#1698)
* fixup! Format Python code with psf/black push * Create codespell.yml * fixup! Format Python code with psf/black push
This commit is contained in:
@@ -541,7 +541,7 @@ cl = IndexCalculation()
|
||||
# instantiating the class with the values
|
||||
#cl = indexCalculation(red=red, green=green, blue=blue, redEdge=redEdge, nir=nir)
|
||||
|
||||
# how set the values after instantiate the class cl, (for update the data or when dont
|
||||
# how set the values after instantiate the class cl, (for update the data or when don't
|
||||
# instantiating the class with the values)
|
||||
cl.setMatrices(red=red, green=green, blue=blue, redEdge=redEdge, nir=nir)
|
||||
|
||||
@@ -551,8 +551,8 @@ indexValue_form1 = cl.calculation("CCCI", red=red, green=green, blue=blue,
|
||||
redEdge=redEdge, nir=nir).astype(np.float64)
|
||||
indexValue_form2 = cl.CCCI()
|
||||
|
||||
# calculating the index with the values directly -- you can set just the values preferred --
|
||||
# note: the *calculation* fuction performs the function *setMatrices*
|
||||
# calculating the index with the values directly -- you can set just the values
|
||||
# preferred note: the *calculation* function performs the function *setMatrices*
|
||||
indexValue_form3 = cl.calculation("CCCI", red=red, green=green, blue=blue,
|
||||
redEdge=redEdge, nir=nir).astype(np.float64)
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ def test_gen_gaussian_kernel():
|
||||
# canny.py
|
||||
def test_canny():
|
||||
canny_img = imread("digital_image_processing/image_data/lena_small.jpg", 0)
|
||||
# assert ambiguos array for all == True
|
||||
# assert ambiguous array for all == True
|
||||
assert canny_img.all()
|
||||
canny_array = canny.canny(canny_img)
|
||||
# assert canny array for at least one True
|
||||
|
||||
Reference in New Issue
Block a user