Skip to content

Instantly share code, notes, and snippets.

View sdhegde's full-sized avatar

Sunil Hegde sdhegde

View GitHub Profile
**************************
USING SCOREP & CUBE: (I was unable to get good result with forked application)
**************************
rm -rf CMakeCache.txt CMakeFiles/ cmake_install.cmake Makefile
export SCOREP_ENABLE_PROFILING=1
export SCOREP_EXPERIMENT_DIRECTORY=sdh
export PATH=$PATH:/root/local/bin/
CXX="scorep /usr/bin/g++" cmake3 .
./DisplayImage
scorep-score -r sdh/profile.cubex ... or cube sdh/profile.cubex
@sdhegde
sdhegde / hough
Created January 9, 2020 21:21
line detection
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
import glob
import imutils
img_rgb = cv.imread('/home/sdh/Downloads/multiscale-template-matching-master/images/newspaper3.jpg')
img_gray = cv.cvtColor(img_rgb, cv.COLOR_BGR2GRAY)
blank_image = np.zeros(shape=img_rgb.shape, dtype=np.uint8)
@sdhegde
sdhegde / hough1.py
Last active January 23, 2020 21:18
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
import glob
import math
import itertools
import random
minlinelength = 350
snaplength = 60