<commit_before>#pragma once
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>

#include "constants.hpp"

#include <vector>


namespace sift {
using std::vector;
using cv::Mat;
using cv::KeyPoint;

void findSiftInterestPoint(Mat& image, vector<KeyPoint>& keypoints);

void buildGaussianPyramid(Mat& image, vector<vector<Mat>>& pyr,
                            int nOctaves);

void cleanPoints(Mat& image, int curv_thr ); //based on contrast
                                            //and principal curvature ratio

Mat downSample(Mat& image);

vector<vector<Mat>> buildDogPyr(vector<vector<Mat>> gauss_pyr);

vector<double> computeOrientationHist(const Mat& image);
// Calculates the gradient vector of the feature

void getScaleSpaceExtrema(vector<vector<Mat>>& dog_pyr,
                            vector<KeyPoint>& keypoints);
    
}<commit_msg>Reorder function declarations in sift.hpp<commit_after>#pragma once
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>

#include "constants.hpp"

#include <vector>


namespace sift {
using std::vector;
using cv::Mat;
using cv::KeyPoint;

Mat downSample(Mat& image);

void buildGaussianPyramid(Mat& image, vector<vector<Mat>>& pyr, int nOctaves);

vector<vector<Mat>> buildDogPyr(vector<vector<Mat>> gauss_pyr);

void getScaleSpaceExtrema(vector<vector<Mat>>& dog_pyr,
                          vector<KeyPoint>& keypoints);

// clean points based on contrast and principal curvature ratio
void cleanPoints(Mat& image, int curv_thr);

// calculate the gradient vector of the features
vector<double> computeOrientationHist(const Mat& image);

void findSiftInterestPoint(Mat& image, vector<KeyPoint>& keypoints);
}
{'fraction_non_alphanumeric': 0.11247086247086246, 'fraction_numerical': 0.004662004662004662, 'mean_word_length': 4.382445141065831, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5951994', 'n_tokens_mistral': 548, 'n_tokens_neox': 525, 'n_words': 134}