Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Studying...

Md. Tahmid Hasan thasan3003

💭
Studying...
View GitHub Profile
@thasan3003
thasan3003 / Image_matching_and_Homogeneous_transformation.py
Created Nov 26, 2019
Finding key-points (Harris corner detection), Descriptor (SIFT like descriptor), Matching (Euclidean distance, Cosine similarity, Nearest Neighbor Distance Ratio), Finding Homography matrix (using SVD), Homogeneous transformation (using Backward Warping and Bi-linear Interpolation)
View Image_matching_and_Homogeneous_transformation.py
# ==================================================
# Md. Tahmid Hasan
# Web: tahmidhasan3003
# ==================================================
import cv2
import numpy as np
import math
from matplotlib import pyplot as plt
@thasan3003
thasan3003 / Finding Block in a Graph.cpp
Last active Sep 26, 2019
This algorithm finds blocks in a graph. Detailed description is given in code as comment.
View Finding Block in a Graph.cpp
/*
====================================================
################## Code Author ##################
====================================================
Md. Tahmid Hasan
#tahmidhasan3003
====================================================
Code Title: Finding Block in a Graph.cpp
====================================================
############## Algorithm Reference ##############
@thasan3003
thasan3003 / S-DES Key Generation.cpp
Created Dec 2, 2018
This is only the key generation part of S-DES.
View S-DES Key Generation.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
using namespace std;
int p10[10]= {3,5,2,7,4,10,1,9,8,6}, p8[8]= {6,3,7,4,8,5,10,9};
@thasan3003
thasan3003 / Playfair Cipher.cpp
Created Dec 2, 2018
Playfair Cipher is another most common encryption decryption algorithm in cryptography. It is a type of substitution cipher technique. It is an example of block cipher.
View Playfair Cipher.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
using namespace std;
char table[5][5];
@thasan3003
thasan3003 / Caesar Cipher.cpp
Created Dec 2, 2018
Caesar Cipher is the most common encryption decryption algorithm in cryptography. It is a type of substitution cipher technique.
View Caesar Cipher.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
using namespace std;
string encDec(string inputText, int key, bool encryption)
@thasan3003
thasan3003 / Simple Math Expression.cpp
Last active Nov 17, 2019
This can solve simple mathematical expressions including parentheses, division, multiplication, addition and subtraction respectively with spaces and without spaces. But it cannot detect wrong expressions.
View Simple Math Expression.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
#include<sstream>
using namespace std;
@thasan3003
thasan3003 / Longest Common Subsequence.cpp
Last active Dec 2, 2018
Longest Common Subsequence in C++
View Longest Common Subsequence.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
#define fo freopen("inlcs.txt","r",stdin)
#define N cout<<endl
#define MAX 100
@thasan3003
thasan3003 / Merge Sort.cpp
Last active Dec 2, 2018
Merge Sort in C++
View Merge Sort.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
#define L 100
using namespace std;
@thasan3003
thasan3003 / Insertion Sort.cpp
Last active Dec 2, 2018
Insertion Sort in C/C++
View Insertion Sort.cpp
/*
Md Tahmid Hasan
CSE, BSMRSTU
tahmidhasan3003
*/
#include<bits/stdc++.h>
using namespace std;
void insertion_sort(int *a,int s)