Skip to content

Bug in esvm_detect #62

@rosenfeldamir

Description

@rosenfeldamir

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions