<commit_before>#pragma once
#include "pch.h"

/**
*sum of squard difference (distance metric)
*starting from ax,ay in image a and bx,by in image b, with a width and height given
*indicies out of bounds results in MAX_DOUBLE
*/
double ssd(Mat& a, Mat& b, int ax, int ay, int bx, int by, int width, int height){
	//check <0 >width >height, els MAX_DOUBLE
	//for 0 to height
		//for 0 to width
			//sum += (a[ay+y][ax+x] - b[by+y][bx+x])^2
}

/**
*result(y,x) is dot product of filter and img centered at y,x
*/
void imfilter(Mat& img, Mat& filter, Mat* result){
	//TODO:: for each y,x in img, apply dot product of filter and image centered at y,x
	//store in result[y][x]
}

/**
*resizes the image to size(img)*ratio, blurs if downsampling
*result stores new image matrix
*/
void imresize(Mat& img, float ratio, Mat* result){

}

/**
*singlular vaue decomposition, results are returned in destU, destS, and destV
*may pass in nil to disregaurd certian results
*/
void svd(Mat& a, Mat*destU, Mat*destS, Mat*destV){
	//TODO::compute singluar value decomposition of a
}

/**
*uses RANSAC to compute map from a onto b with maximum number of points
*threadhold is the maximum distance between to valid matches
*H is the resulting 3x3 projective trasnformation
*num_matches is the number of points used to compute the homography
*/
void findHomographyRANSAC(KeyPoints& a, KeyPoints& b, double threshhold, Mat* H, int* num_matches){
<commit_msg>removed mat_ops from feature2d.cpp<commit_after>#pragma once
#include "pch.h"


/**
*uses RANSAC to compute map from a onto b with maximum number of points
*threadhold is the maximum distance between to valid matches
*H is the resulting 3x3 projective trasnformation
*num_matches is the number of points used to compute the homography
*/
void findHomographyRANSAC(KeyPoints& a, KeyPoints& b, double threshhold, Mat* H, int* num_matches){

{'fraction_non_alphanumeric': 0.1008537886872999, 'fraction_numerical': 0.0048025613660619, 'mean_word_length': 4.61377245508982, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5087365', 'n_tokens_mistral': 619, 'n_tokens_neox': 607, 'n_words': 267}