Skip to content

Instantly share code, notes, and snippets.

View squarethecircle's full-sized avatar

Sachith Gullapalli squarethecircle

View GitHub Profile
long cPRFCluster::getDifference(string seq, int pos_start, int pos_end, char symbol) {
long i, n = 0;
for (i=pos_start; i<=pos_end; i++) {
if (seq[i]==symbol) n++;
}
if (symbol == 'S')
return n;
else if (symbol == 'R')
{
for (long i = 0; i < Recurrents.size(); i++)
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/nonfree/nonfree.hpp>
#include <opencv2/nonfree/features2d.hpp>
#include "opencv2/legacy/legacy.hpp"
#include "opencv2/legacy/compat.hpp"
#include <ctype.h>
#include <stdio.h>