This file contains 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 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 |
This file contains 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 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) |
This file contains 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
************************** | |
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 |