brainlit
brainlit copied to clipboard
Method to scale intensity range to [0,1]
Make a method in image_process.py with the following specs: Input: numpy array Output: array with values shifted/scaled to the range [0,1]
i.e. the minimal value in the array becomes 0 and the maximal value becomes 1.
If no one is assigned this issue then I would like to work on it
If we have input with all same values, i.e. [5, 5, 5, 5, 5]. In such case would the output be [0.5, 0.5, 0.5, 0.5, 0.5] ?
Good question. I don't have any strong preferences, but my weak preference is that the output will always have an element with value 0. So in your case, the output would be [0, 0, 0, 0, 0].