HW01: First version of report added

This commit is contained in:
Christos Choutouridis
2025-04-29 20:36:41 +03:00
parent d771baa443
commit cb7a1f2a7c
7 changed files with 213 additions and 0 deletions
+2
View File
@@ -79,12 +79,14 @@ modes = ["greedy", "non-greedy", "post-disturbance"]
# Run equalization
for mode in modes:
print("Perform histogram equalization in mode: ", mode)
equalized_img = perform_hist_eq(input_array, mode)
out_filename = f"demo_outputs/equalization_{mode}.png"
plot_comparison(input_array, equalized_img, f"Histogram Equalization ({mode})", out_filename)
# Run matching
for mode in modes:
print("Perform histogram matching in mode: ", mode)
matched_img = perform_hist_matching(input_array, ref_array, mode)
out_filename = f"demo_outputs/matching_{mode}.png"
plot_comparison(input_array, matched_img, f"Histogram Matching ({mode})", out_filename)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

After

Width:  |  Height:  |  Size: 208 KiB