-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
in line 291 of esvm_detect pyrN = cellfun... is calculated for the number of HOGS that fit inside each level of the pyramid.
however, the prod of a negative size will be positive, which leads to zeros at the end of the matrix X. Later, offsets(2,bb) is referenced, which may be out of range since size(offsets,2) < size(X,2).
instead of :
pyr_N = cellfun(@(x)prod([size(x,1) size(x,2)] -S+1),t.hog);
it should be:
pyr_N = cellfun(@(x)prod(max(0,[size(x,1) size(x,2)] -S+1)),t.hog);
-Amir
Metadata
Metadata
Assignees
Labels
No labels