13 using namespace shogun;
15 #define LIBLBP_INDEX(ROW,COL,NUM_ROWS) ((COL)*(NUM_ROWS)+(ROW))
129 SG_UNSTABLE(
"CLBPPyrDotFeatures::CLBPPyrDotFeatures()",
"\n");
221 SG_ERROR(
"Dimensions don't match, vec2_dim=%d, vec_nDim=%d\n", vec2_len,
vec_nDim);
231 int32_t ww,
hh, x, y, j;
241 for(x=1; x < ww-1; x++)
243 for(y=1; y< hh-1; y++)
256 dot_prod += vec2[offset+pattern];
266 if(ww % 2 == 1) ww--;
267 if(hh % 2 == 1) hh--;
270 for(x=0; x < ww; x++)
271 for(j=0; j <
hh; j++)
276 for(y=0; y <
hh; y++)
277 for(j=0; j < ww; j++)
289 SG_ERROR(
"Dimensions don't match, vec2_dim=%d, vec_nDim=%d\n", vec2_len,
vec_nDim);
298 int32_t offset, ww,
hh, x, y, j;
309 for(x=1; x < ww-1; x++)
311 for(y=1; y< hh-1; y++)
324 vec2[offset+pattern]+=alpha;
332 if(ww % 2 == 1) ww--;
333 if(hh % 2 == 1) hh--;
336 for(x=0; x < ww; x++)
337 for(j=0; j <
hh; j++)
342 for(y=0; y <
hh; y++)
343 for(j=0; j < ww; j++)