I\'m trying to use NumPy and CV2 by doing pixel math on an array of pixels then using a lookup table and replacing that pixel with the lookup table\'s value.
This wo
You can try OpenCV's Look Up Table to apply a LUT in one shot. Here is the documentation
C++
void LUT(InputArray src, InputArray lut, OutputArray dst, int interpolation=0 )
Python
cv2.LUT(src, lut[, dst[, interpolation]]) → dst