Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Antonioli committed Feb 29, 2024
1 parent 1aeec73 commit 9a4e822
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/qimp/ImageEncoding/Encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,11 @@ def binarization(image: np.ndarray) -> list:
list: Binary values of the pixels of the image.
"""
binarizedangles = np.chararray((image.shape[0], image.shape[1]), itemsize=8)
print(binarizedangles)

for i in range(image.shape[0]):
for j in range(image.shape[1]):
print("here is", np.binary_repr(int(image[i][j]), width=8))
binarizedangles[i][j] = np.binary_repr(int(image[i][j]), width=8)
print("i save:", binarizedangles[i][j])

return binarizedangles


Expand Down

0 comments on commit 9a4e822

Please sign in to comment.