This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Trie.h" | |
Node::Node() { | |
this->ch = ' '; | |
this->isLeaf = false; | |
this->str = ""; | |
this->children = std::vector<Node*>(ALPHABET_SIZE, NULL); | |
} | |
Node::~Node() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "histograms.h" | |
int main() { | |
std::vector<string> colorImages = getFileNamesInDirectory("C:\\Users\\recep\\Desktop\\MyFiles\\C codes\\ImageRetrival\\Dataset\\Color\\*"); | |
std::vector<string> textureImages = getFileNamesInDirectory("C:\\Users\\recep\\Desktop\\MyFiles\\C codes\\ImageRetrival\\Dataset\\Texture\\*"); | |
std::vector<std::vector<uint32_t>> all64Histograms = computeAll64BinHistograms(colorImages, "Dataset/Color/"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _MSC_VER | |
#define _CRT_SECURE_NO_WARNINGS | |
#endif | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
#define MAX_ACTOR_COUNT 124434 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#include "stdafx.h" | |
#include <iostream> | |
#include <opencv2\opencv.hpp> | |
#include "imgUtility.h" | |
using namespace std; | |
using namespace cv; | |
int main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <iostream> | |
#include <time.h> | |
#include <math.h> | |
#define internal static | |
#define swap(x,y) {int temp = x ; x = y ; y = temp;} | |
#define ELEM_NUM 5 | |
#define MAX 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
//Binary Switch Macros | |
#define HI(num) (((num) & 0x0000FF00) >> 8) | |
#define LO(num) ((num) & 0x000000FF) | |
#define GRAY_LEVEL 256 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import random | |
import mnist_loader | |
class Network(object): | |
def __init__(self,sizes): | |
self.num_layers = len(sizes) | |
self.sizes = sizes | |
#np.random.randn generates random gausian distribution | |
#giving random biases for 2. and other layers' neurons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <string.h> | |
#include <time.h> | |
#define USER_COUNT 8 | |
#define MAX_FRIEND_COUNT 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
#define MIN(x, y) (((x) < (y)) ? (x) : (y)) | |
#define MAXVERTICES 1000 | |
using namespace std; | |
typedef struct Vertex { | |
int id; |