[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] anuj-distance-field 3f98756 88/95: * src/sdf/ftbsdf.c (compu
From: |
Anuj Verma |
Subject: |
[freetype2] anuj-distance-field 3f98756 88/95: * src/sdf/ftbsdf.c (compute_edge_distance): Grammer fix. |
Date: |
Sun, 2 Aug 2020 01:10:42 -0400 (EDT) |
branch: anuj-distance-field
commit 3f98756d6c2637a8c675f207c5df433cec526e1d
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
* src/sdf/ftbsdf.c (compute_edge_distance): Grammer fix.
---
[GSoC]ChangeLog | 4 ++++
src/sdf/ftbsdf.c | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index ddb4a91..4570ca3 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,5 +1,9 @@
2020-07-31 Anuj Verma <anujv@iitbhilai.ac.in>
+ * src/sdf/ftbsdf.c (compute_edge_distance): Grammer fix.
+
+2020-07-31 Anuj Verma <anujv@iitbhilai.ac.in>
+
[sdf -> bsdf] Add explanation of the approximation.
* src/sdf/ftbsdf.c (compute_gradient => compute_edge_distance):
diff --git a/src/sdf/ftbsdf.c b/src/sdf/ftbsdf.c
index e26f18c..696d549 100644
--- a/src/sdf/ftbsdf.c
+++ b/src/sdf/ftbsdf.c
@@ -187,11 +187,12 @@
/* distance of the pixel to edge pretty accurately. A real */
/* simple approximation is ( 0.5f - alpha ), assuming that */
/* the outline is parallel to the x or y axis. But in this */
- /* algorithm that is pretty accurate the edge distance. */
+ /* algorithm we use a different approximation which is qui- */
+ /* te accurate even for non axis aligned edges. */
/* */
/* * The only remaining piece of information that we cannot */
/* approximate directly from the alpha is the direction of */
- /* the edge. That is where we use the Sobel's operator to */
+ /* the edge. This is where we use the Sobel's operator to */
/* compute the gradient of the pixel. The gradient give us */
/* a pretty good approximation of the edge direction. */
/* We use a 3x3 kernel filter to compute the gradient. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] anuj-distance-field 3f98756 88/95: * src/sdf/ftbsdf.c (compute_edge_distance): Grammer fix.,
Anuj Verma <=