Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to use createCLAHE in python's namesapce cv2?

I've read the opencv-python-toturial and saw a example as below:

import numpy as np
import cv2
img = cv2.imread('tsukuba_l.png',0)
# create a CLAHE object (Arguments are optional).
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
cl1 = clahe.apply(img)
cv2.imwrite('clahe_2.jpg',cl1)

I've installed opencv but cannot find the cv2.createCLAHE method, is this a bug? My opencv version is 2.4.2 and Python 2.7.5.

how to use createCLAHE in python's namesapce cv2?

I've read the opencv-python-toturial and saw a example as below:

import numpy as np
import cv2
img = cv2.imread('tsukuba_l.png',0)
# create a CLAHE object (Arguments are optional).
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
cl1 = clahe.apply(img)
cv2.imwrite('clahe_2.jpg',cl1)

I've installed opencv but cannot find the cv2.createCLAHE method, is this a bug? My opencv version is 2.4.2 and Python 2.7.5.

how to use createCLAHE in python's namesapce cv2?

I've read the opencv-python-toturial and saw a example as below:

import numpy as np
import cv2
img = cv2.imread('tsukuba_l.png',0)
# create a CLAHE object (Arguments are optional).
clahe = cv2.createCLAHE(clipLimit=2.0, tileGridSize=(8,8))
cl1 = clahe.apply(img)
cv2.imwrite('clahe_2.jpg',cl1)

I've installed opencv but cannot find the cv2.createCLAHE method, is this a bug? My opencv version is 2.4.2 and Python 2.7.5.