From 14e151a03363edf08106af9ddbd6599b520b0456 Mon Sep 17 00:00:00 2001
From: Ties de Kock <ties@tiesdekock.nl>
Date: Wed, 12 Jun 2013 17:13:12 +0200
Subject: [PATCH] refer to original image for grayscale input

---
 xbob/flandmark/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xbob/flandmark/__init__.py b/xbob/flandmark/__init__.py
index 355796a..fb661e8 100644
--- a/xbob/flandmark/__init__.py
+++ b/xbob/flandmark/__init__.py
@@ -84,7 +84,7 @@ class Localizer(_flandmark.Localizer):
       return super(Localizer, self).__call__(gray)
 
     elif image.ndim == 2:
-      return super(Localizer, self).__call__(gray)
+      return super(Localizer, self).__call__(image)
 
     else:
       raise TypeError, "Localizer accepts images as numpy.ndarray objects with either 2 or 3 dimensions"
-- 
GitLab