From 2494e3d5cea70ebef8e12498b10bc2e24da4803f Mon Sep 17 00:00:00 2001
From: cristy <urban-warrior@git.imagemagick.org>
Date: Mon, 28 Apr 2014 00:11:40 +0000
Subject: [PATCH]

---
 MagickCore/feature.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/MagickCore/feature.c b/MagickCore/feature.c
index 8d67d9425..a50562fb5 100644
--- a/MagickCore/feature.c
+++ b/MagickCore/feature.c
@@ -1904,12 +1904,12 @@ MagickExport Image *HoughLineImage(const Image *image,const size_t width,
             Is point a local maxima?
           */
           maxima=count;
-          for (v=(-((ssize_t) height/2)); v < (((ssize_t) height/2)); v++)
+          for (v=(-((ssize_t) height/2)); v <= (((ssize_t) height/2)); v++)
           {
             ssize_t
               u;
 
-            for (u=(-((ssize_t) width/2)); u < (((ssize_t) width/2)); u++)
+            for (u=(-((ssize_t) width/2)); u <= (((ssize_t) width/2)); u++)
             {
               if ((u != 0) || (v !=0))
                 {
@@ -2133,12 +2133,12 @@ MagickExport Image *MeanShiftImage(const Image *image,const size_t width,
         previous_location.y=mean_location.y;
         previous_pixel=mean_pixel;
         count=0;
-        for (v=(-((ssize_t) height/2)); v < (((ssize_t) height/2)); v++)
+        for (v=(-((ssize_t) height/2)); v <= (((ssize_t) height/2)); v++)
         {
           ssize_t
             u;
 
-          for (u=(-((ssize_t) width/2)); u < (((ssize_t) width/2)); u++)
+          for (u=(-((ssize_t) width/2)); u <= (((ssize_t) width/2)); u++)
           {
             if ((v*v+u*u) <= ((width/2)*(height/2)))
               {
-- 
2.40.0