Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

clahe opencv

bgr = cv2.imread(image_path)
lab = cv2.cvtColor(bgr, cv2.COLOR_BGR2LAB)
lab_planes = cv2.split(lab)
gridsize=8
clahe = cv2.createCLAHE(clipLimit=2.0,tileGridSize=(gridsize,gridsize))
lab_planes[0] = clahe.apply(lab_planes[0])
lab = cv2.merge(lab_planes)
bgr = cv2.cvtColor(lab, cv2.COLOR_LAB2BGR)
Comment

PREVIOUS NEXT
Code Example
Python :: convert string to dictionary python 
Python :: tf dropout 
Python :: venv python 
Python :: find largest 10 number in dataframe 
Python :: make blinking text python 
Python :: input age in python 
Python :: python selenium get text of div 
Python :: swapping of two numbers in python 
Python :: get index of highest value in array python 
Python :: how to create a virtual environment in python 3 
Python :: django admin customization 
Python :: count the number of rows in a database table in Django 
Python :: python snakes 
Python :: pgcd python 
Python :: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091) 
Python :: how to import axes3d 
Python :: transpose array python 
Python :: round to the nearest integer python 
Python :: selenium webdriver manager python 
Python :: using df.astype to select categorical data and numerical data 
Python :: how to update python 
Python :: input multiple values in python 
Python :: merge two dictionaries in a single expression 
Python :: title() function in python 
Python :: python subtract lists 
Python :: remove add button django admin 
Python :: write list to file python 
Python :: python verzeichnis erstellen 
Python :: short form of if statement in python 
Python :: as type in pandas 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =