bug-gift
[Top][All Lists]
Advanced

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

[bug-GIFT] Buglet in feature extraction


From: Carlo E. Prelz
Subject: [bug-GIFT] Buglet in feature extraction
Date: Wed, 1 Oct 2003 11:31:58 +0200
User-agent: Mutt/1.5.4i

Hello there. While experimenting with the feature extraction part of
GIFT on larger images, I had to fix this buglet:

--- extract_block_features.c.orig       2003-10-01 11:26:44.000000000 +0200
+++ extract_block_features.c    2003-10-01 11:27:24.000000000 +0200
@@ -206,7 +206,7 @@
                }
                for (i = 0; (i < block_size) && (y+i < im->height); i++) {
                  for (j = 0; (j < block_size) && (x+j < im->width); j++) {
-                   colour = im->pixel[(y + j)*im->width + (x + i)];
+                   colour = im->pixel[(y + i)*im->width + (x + j)];
                    col_counts[k][colour]++;
                  }
                }

I am not subscribed to this list, so please copy any comment to my
address.

All the best

Carlo

-- 
  *         Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - address@hidden             che bisogno ci sarebbe
  *               di parlare tanto di amore e di rettitudine? (Chuang-Tzu)




reply via email to

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