Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/piotr_fhog/gradientMex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void fhog( float *M, float *O, float *H, int h, int w, int binSize,
const int hb=h/binSize, wb=w/binSize, nb=hb*wb, nbo=nb*nOrients;
float *N, *R1, *R2; int o, x;
// compute unnormalized constrast sensitive histograms
R1 = (float*) wrCalloc(wb*hb*nOrients*2,sizeof(float));
R1 = (float*) wrCalloc(wb*hb*nOrients*2 + 2,sizeof(float));
gradHist( M, O, R1, h, w, binSize, nOrients*2, softBin, true );
// compute unnormalized contrast insensitive histograms
R2 = (float*) wrCalloc(wb*hb*nOrients,sizeof(float));
Expand Down