function H = pmHOG_binner(PHI, MAG)
    H = zeros(1,9);
    
    bin_vect = [-90, -70, -50, -30, -10, 10, 30, 50, 70;
                -70, -50, -30, -10, 10, 30, 50, 70, 90];

    for i = 1:9
        
            mini = bin_vect(1,i);
            maxi = bin_vect(2,i);
            
            LOG_MASK = (PHI >= mini & PHI < maxi);
            
            H(i) = sum(sum(MAG(LOG_MASK)));
    end
    
end