[gegl] workshop: tune inpainter and defaults to minimum that performs reasonably well
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] workshop: tune inpainter and defaults to minimum that performs reasonably well
- Date: Sat, 29 Jun 2019 00:05:42 +0000 (UTC)
commit bef482a598a9d2a072976411388abd9426477a75
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Jun 29 02:05:27 2019 +0200
workshop: tune inpainter and defaults to minimum that performs reasonably well
operations/workshop/inpaint.c | 16 ++++++++--------
operations/workshop/pixel-duster.h | 12 ++++++------
2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/operations/workshop/inpaint.c b/operations/workshop/inpaint.c
index dd585850d..496705c31 100644
--- a/operations/workshop/inpaint.c
+++ b/operations/workshop/inpaint.c
@@ -29,28 +29,28 @@
property_int (seek_distance, "seek radius", 30)
value_range (4, 512)
-property_int (min_neigh, "min neigh", 4)
+property_int (min_neigh, "min neigh", 2)
value_range (1, 10)
property_int (min_iter, "min iter", 100)
value_range (1, 512)
-property_int (improvement_iters, "improvement iters", 1)
+property_int (improvement_iters, "improvement iters", 4)
value_range (1, 30)
-property_double (chance_try, "try chance", 0.8)
+property_double (chance_try, "try chance", 0.5)
+ value_range (0.0, 1.0)
+property_double (chance_retry, "retry chance", 0.8)
value_range (0.0, 1.0)
-property_double (ring_gap, "ring gap", 1.2)
+property_double (ring_gap, "ring gap", 1.5)
value_range (0.0, 4.0)
-property_double (ring_gamma, "ring gamma", 1.0)
+property_double (ring_gamma, "ring gamma", 1.2)
value_range (0.0, 4.0)
-property_double (ring_twist, "ring twist", 0.1)
+property_double (ring_twist, "ring twist", 0.040)
value_range (0.0, 1.0)
-property_double (chance_retry, "retry chance", 1)
- value_range (0.0, 1.0)
#else
diff --git a/operations/workshop/pixel-duster.h b/operations/workshop/pixel-duster.h
index 61cbbb5cb..8a5b09c43 100644
--- a/operations/workshop/pixel-duster.h
+++ b/operations/workshop/pixel-duster.h
@@ -79,8 +79,8 @@ typedef struct
#define MAX_K 4
-#define RINGS 4 // increments works up to 7-8 with no adver
-#define RAYS 12 // good values for testing 6 8 10 12 16
+#define RINGS 3 // increments works up to 7-8 with no adver
+#define RAYS 8 // good values for testing 6 8 10 12 16
#define NEIGHBORHOOD (RINGS*RAYS+1)
@@ -580,14 +580,14 @@ static int probe_improve (PixelDuster *duster,
if (!format)
format = babl_format ("RGBA float");
- extract_site (duster, duster->output, dst_x, dst_y, 1.0, &needle[0]);
- g_hash_table_foreach (duster->ht[0], compare_needle, ptr);
+ //extract_site (duster, duster->output, dst_x, dst_y, 1.0, &needle[0]);
+ //g_hash_table_foreach (duster->ht[0], compare_needle, ptr);
extract_site (duster, duster->output, dst_x, dst_y, 1.1, &needle[0]);
g_hash_table_foreach (duster->ht[0], compare_needle, ptr);
- extract_site (duster, duster->output, dst_x, dst_y, 0.9, &needle[0]);
- g_hash_table_foreach (duster->ht[0], compare_needle, ptr);
+ //extract_site (duster, duster->output, dst_x, dst_y, 0.9, &needle[0]);
+ //g_hash_table_foreach (duster->ht[0], compare_needle, ptr);
probe->age++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]