HW01: First version of report added
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user