MrinalJain17 / mydia

A simple and efficient wrapper for reading videos as NumPy tensors
https://mrinaljain17.github.io/mydia/
MIT License
25 stars 3 forks source link

Feature: Provide other methods for normalization of pixels #8

Closed MrinalJain17 closed 6 years ago

MrinalJain17 commented 6 years ago

Currently, each pixel is divided by 255 to be in the range (0, 1), inclusive.

Other methods like min-max normalization, z-score normalization should be provided.

MrinalJain17 commented 6 years ago

Each video will be normalized by subtracting the MIN and dividing by DIFF, where

MIN = Minimum pixel value in the video
DIFF = Difference b/w the maximum and minimum pixel value in the video

In addition to this, MIN and MAX could also be provided by the user to normalize the video in that range.

This will be implemented in the next (2.1.0) release

MrinalJain17 commented 6 years ago

Resolved in Release 2.1.0 - a5c975b6bbb5912581db2d5c3ade1bc5d9e4eef4