Data Calibration

210 Views Asked by At

I am trying to do Data calibration of Hyperspectral Image of size e.g.,(400,400,150)i.e.,(rows. columns, bands) with standard references... dark image of size(100,400,150) and white Image of size (200,400,150) using the formula,
Calibrated_Data = (Image_data - dark Image) / (white Image - dark Image)

I am using the python, have tried to do using numpy but got an error,
"operands could not be broadcast together with shapes (400,400,150) (100,400,150)"

Also there is an another way to do it but not sure how can I do it in coding with different size matrices,
Calibrated_data(x, y, wavelengths) = data(x, y, wavelengths) - dark(x, wavelengths) / white(x, wavelengths) - dark(x, wavelengths)
Looking for some insights to solve this.
Thank you.

0

There are 0 best solutions below