Formatting fixes
This commit is contained in:
parent
300d6878bb
commit
1cea75be70
4 changed files with 31 additions and 32 deletions
|
|
@ -140,10 +140,7 @@ def sharpness_edge(image: np.ndarray) -> float:
|
|||
n: int = 20
|
||||
edge: np.ndarray = np.array([[-1] * n + [1] * n])
|
||||
return float(
|
||||
np.sum(
|
||||
[np.sum(ndimage.filters.convolve(gray, W) ** 2)
|
||||
for W in [edge, edge.T]]
|
||||
)
|
||||
np.sum([np.sum(ndimage.filters.convolve(gray, W) ** 2) for W in [edge, edge.T]])
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue