diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df6e22c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__ +.venv/ diff --git a/assignment1/solution.py b/assignment1/solution.py index 658c493..b60f8b5 100644 --- a/assignment1/solution.py +++ b/assignment1/solution.py @@ -141,11 +141,11 @@ def excercise_two() -> None: size where the value of pixels is determined by whether the value of the corresponding pixels in the source image is greater or lower than the given threshold. """ - two_a() - two_b('./images/bird.jpg', 100, 20) + #two_a() + #two_b('./images/bird.jpg', 100, 20) two_c('./images/bird.jpg', 20, 100) - two_d() - two_e(uz_image.imread_gray('./images/bird.jpg', uz_image.ImageType.uint8).astype(np.uint8)) + #two_d() + #two_e(uz_image.imread_gray('./images/bird.jpg', uz_image.ImageType.uint8).astype(np.uint8)) def two_a() -> tuple[npt.NDArray[np.float64], npt.NDArray[np.uint8]]: @@ -223,6 +223,7 @@ def two_c(image_path: str, number_of_bins_first: int, number_of_bins_second: int image_uint8 = uz_image.imread_gray(image_path, uz_image.ImageType.uint8) image_float64 = uz_image.imread_gray(image_path, uz_image.ImageType.float64) + print(image_uint8) H01 = uz_image.get_image_bins(image_uint8, number_of_bins_first) H02 = uz_image.get_image_bins(image_uint8, number_of_bins_second) @@ -294,11 +295,11 @@ def two_e(image: npt.NDArray[np.uint8]): ###################################################### def excercise_three() -> None: - #three_a() - #mask1, _ = three_b() + three_a() + mask1, _ = three_b() #three_c(uz_image.imread('./images/bird.jpg', uz_image.ImageType.float64), mask1) #three_d() - three_e() + #three_e() def three_a() -> None: @@ -509,9 +510,9 @@ def three_e(): def main() -> None: - excercise_one() + #excercise_one() excercise_two() - excercise_three() +#excercise_three() if __name__ == "__main__": main() diff --git a/assignment2/.png b/assignment2/.png deleted file mode 100644 index 485ee88..0000000 Binary files a/assignment2/.png and /dev/null differ diff --git a/assignment2/assignment2.zip b/assignment2/assignment2.zip deleted file mode 100644 index 22054cc..0000000 Binary files a/assignment2/assignment2.zip and /dev/null differ