I'm currently try to normalise depth image i receive from a depth camera with cv2.
I tried the following already: I used this line of code to normalise the images I receive between a value of 0 and 1 :
cv2.normalize(depth_array, depth_array, 0, 1, cv2.NORM_MINMAX)
The problem I have with this sort of normalisation is that my depth images are not normalised between two set values but normalised between the maximum and minimum values of my depth_array which results in the closest objects being always black.
I want to change that it normalised between two set values, like [0 8] -> [0 1]. When googleing I have not found anything that does what I want to do. Is there a way to normalise an image between two set values?