Spaces:
Sleeping
Sleeping
fix titles in curves
Browse files
app.py
CHANGED
|
@@ -17,13 +17,13 @@ def histogram(img: np.ndarray) -> Curve:
|
|
| 17 |
range=(0, 1)
|
| 18 |
)
|
| 19 |
hist_curves.append(
|
| 20 |
-
SingleCurve(bins[:-1], hist, style='rgb'[ch]
|
| 21 |
)
|
| 22 |
hist_curve = Curve(
|
| 23 |
hist_curves,
|
| 24 |
xlabel="Intensity",
|
| 25 |
ylabel="Frequency",
|
| 26 |
-
title="Histogram"
|
| 27 |
)
|
| 28 |
return hist_curve
|
| 29 |
|
|
@@ -84,10 +84,11 @@ def s_curve_visualization(global_params={}) -> Curve:
|
|
| 84 |
exposure)
|
| 85 |
return Curve(
|
| 86 |
[
|
| 87 |
-
SingleCurve(x, y, style='m-'),
|
| 88 |
-
SingleCurve(x, x, style='k--'),
|
| 89 |
],
|
| 90 |
-
xlabel="Input", ylabel="Output",
|
|
|
|
| 91 |
)
|
| 92 |
|
| 93 |
|
|
|
|
| 17 |
range=(0, 1)
|
| 18 |
)
|
| 19 |
hist_curves.append(
|
| 20 |
+
SingleCurve(bins[:-1], hist, style='rgb'[ch], linestyle="-")
|
| 21 |
)
|
| 22 |
hist_curve = Curve(
|
| 23 |
hist_curves,
|
| 24 |
xlabel="Intensity",
|
| 25 |
ylabel="Frequency",
|
| 26 |
+
# title="Histogram"
|
| 27 |
)
|
| 28 |
return hist_curve
|
| 29 |
|
|
|
|
| 84 |
exposure)
|
| 85 |
return Curve(
|
| 86 |
[
|
| 87 |
+
SingleCurve(x, y, style='m', linestyle='-'),
|
| 88 |
+
SingleCurve(x, x, style='k', linestyle='--'),
|
| 89 |
],
|
| 90 |
+
xlabel="Input", ylabel="Output",
|
| 91 |
+
title=f"Tone Curve {shadow_boost:.2f}, {highlight_boost:.2f}, {contrast:.2f}, {exposure:.2f}"
|
| 92 |
)
|
| 93 |
|
| 94 |
|