My 3 Biggest Benefits of Meal Prepping

I have always wanted to write a blog, but I never knew how or what I wanted to write about. Over the last few years I have become really passionate for helping others in the health and fitness realm…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Histogram equalization

I am doing face recognition. Here we have alot of faces with luminous variability. So for classification purpose I have pre-process the face with histogram equalization method, that is very useful for correct prediction in case of luminous variation.

since we used a normalized histogram of {x}. In order to map the values back into their original range, the following simple transformation needs to be applied on the result:

y’ = y (max{x} — min{x}) + min{x}

img = cv2.imread(‘image001.jpg’,0)

equ = cv2.equalizeHist(img)

res = np.hstack((img,equ)) #stacking images side-by-side

cv2.imwrite(‘response.png’,res)

Add a comment

Related posts:

The Unnamed Tavern

M y grandpa looked like Joseph Stalin. Thick mustache, thicker eyebrows and the thickest high-density hair on his head. He seemed scary. And strict. And rough. But also, he had a big belly. I don’t…

Lahore Qalandars vs Peshawar Zalmi Match 15 PSL 8 Highlights 26 Feb 2023

Lahore Qalandars vs Peshawar Zalmi Match 15 PSL 8 Highlights 26 Feb 2023. Watch Online Lahore Qalandars vs Peshawar Zalmi Match 15 HBL PSL 8 26 Feb 2023 Highlights Youtube Video. Watch here latest…

The Ultimate Guide to Crypto Tokenomics

Investing in cryptocurrencies is a delicate action that needs proper understanding so you don’t invest in worthless cryptocurrencies due to hype. For you to separate bad crypto projects from good…