HiI would like to save out near_ir images from the scans for computer vision labelling. However the near_ir sensor is not equalised to 0-255 standard for images and are either black or when I try to equalise completely washed out. I have tried converting to uint8 and 16 with no success.
However when visualised with the ouster-viz tool the IR-images look great. What am I missing to be able to save out equalised near_ir images?
example snippet of my code below:
scans=client.Scans(source)
scan = nth(scans,84)
IR=scan.field(client.ChanField.NEAR_IR)
IR_img = IR_destaggered.astype(np.uint16)
cv2.imwrite('test2',IR_img)