Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10928

Modified Files:
        ufraw_ufraw.c 
Log Message:
Fix hot pixel elimination code.

Index: ufraw_ufraw.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -d -r1.195 -r1.196
--- ufraw_ufraw.c       15 Oct 2009 11:30:12 -0000      1.195
+++ ufraw_ufraw.c       18 Oct 2009 05:40:07 -0000      1.196
@@ -909,7 +909,7 @@
  * Reasonable values for uf->conf->hotpixel are in the range 0.5-10.
  *
  * Note that the algorithm uses pixel values from previous (processed) and
- * next (unprocessed) row and whether or not pixels are marked makes a
+ * next (unprocessed) row and whether or not pixels are marked may make a
  * difference for the hot pixel count.
  */
 static void ufraw_shave_hotpixels(ufraw_data *uf, dcraw_image_type *img,
@@ -947,20 +947,16 @@
                    continue;
                if (v > hi)
                    hi = v;
-               v = p[-w][c];
+               v = p[-width][c];
                if (v > t)
                    continue;
                if (v > hi)
                    hi = v;
-               v = p[w][c];
+               v = p[width][c];
                if (v > t)
                    continue;
                if (v > hi)
                    hi = v;
-#if 0
-               if (uf->hotpixels < 100)
-                   printf("%u %u %u: %u->%u\t\n", w, h, c, p[0][c], hi);
-#endif
                /* mark the pixel using the original hot value */
                if (uf->mark_hotpixels) {
                    for (i = -10; i >= -20 && w + i >= 0; --i)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to