Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 398 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 398 Bytes

NormLuminance

Luminance Normalization of given images

Stimulus normalization is an important step before the conduct an experiment with given stimuli which ensures stimuli have a similar pixel distribution. This code provides normalization of "Values(from the HSV)" of the given image set.

here is the math:

img_lum = (img_lum - np.min(img_lum)) / (np.max(img_lum) - np.min(img_lum))