Formatting fixes

This commit is contained in:
Richard Bowman 2021-03-31 09:40:31 +01:00
parent 300d6878bb
commit 1cea75be70
4 changed files with 31 additions and 32 deletions

View file

@ -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]])
)