use cv2 function

added color_histogram.py sample
work on VideoSynth (chessboard)
This commit is contained in:
Alexander Mordvintsev
2011-06-15 13:58:40 +00:00
parent 35aa133d9a
commit 1a208fe132
7 changed files with 138 additions and 68 deletions

View File

@@ -7,7 +7,7 @@
'''
import numpy as np
import cv, cv2
import cv2, cv
def coherence_filter(img, sigma = 11, str_sigma = 11, blend = 0.5, iter_n = 4):
@@ -55,9 +55,9 @@ if __name__ == '__main__':
cv2.imshow('dst', dst)
cv2.namedWindow('control', 0)
cv.CreateTrackbar('sigma', 'control', 9, 15, nothing)
cv.CreateTrackbar('blend', 'control', 7, 10, nothing)
cv.CreateTrackbar('str_sigma', 'control', 9, 15, nothing)
cv2.createTrackbar('sigma', 'control', 9, 15, nothing)
cv2.createTrackbar('blend', 'control', 7, 10, nothing)
cv2.createTrackbar('str_sigma', 'control', 9, 15, nothing)
print 'Press SPACE to update the image\n'