You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: static_detector.m
    path of file: ./repos/HOG-Pedestrian-Detector
    
    the code of the file until where you have to start completion: function static_detector(model)
% STATIC_DETECTOR given a folder containing PNG or JPG images applies
%                 the specified libSVM model to scan through every image 
%                 for pedestrians in a sliding window basis.
%  
% All the parameters are ha
    
function to compute the windows coordiantes at level 0 pyramid image
function [bb_size, new_cords] = compute_level0_coordinates(wxl, coordinates, inds, scale)

    % Consts
    bb_width = 64;
    bb_height = 128;
    
    % Vars
    new_cords = zeros(size(inds,2),2);
    bb_size = zeros(size(inds,2),2);
    
    % for each positive window index...
    for i=1:size(inds,2)
        
        % linear index of the window
        ind = inds(i);
        
        % find the positive window original level 
        level = 0;

        while ind > sum(wxl(1:level))
        	level = level + 1;
        end