freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] anuj-distance-field b8015af: * src/sdf/ftbsdf.c (compute_edg


From: Anuj Verma
Subject: [freetype2] anuj-distance-field b8015af: * src/sdf/ftbsdf.c (compute_edge_distance): Grammer fix.
Date: Fri, 31 Jul 2020 08:17:43 -0400 (EDT)

branch: anuj-distance-field
commit b8015af4b2825bbccfc245cf14840633ba39be87
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.      */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]