|
|
|
|
|
|
|
|
self.cb_image[i, j, x] = gammaCorrection(self.img_mat[i, j, x])
|
|
|
self.cb_image[i, j, x] = gammaCorrection(self.img_mat[i, j, x])
|
|
|
|
|
|
|
|
|
rechen_Mat = np.copy(self.T_reversed.dot(sim_mat).dot(self.T))
|
|
|
rechen_Mat = np.copy(self.T_reversed.dot(sim_mat).dot(self.T))
|
|
|
print(rechen_Mat)
|
|
|
|
|
|
|
|
|
|
|
|
# Einzelne Pixelwertberechnung
|
|
|
# Einzelne Pixelwertberechnung
|
|
|
for i in range(self.rows):
|
|
|
for i in range(self.rows):
|
|
|
for j in range(self.cols):
|
|
|
for j in range(self.cols):
|
|
|
|
|
|
|
|
|
for x in range(3):
|
|
|
for x in range(3):
|
|
|
self.sim_image[i, j, x] = reverseGammaCorrection(self.cb_image[i, j, x])
|
|
|
self.sim_image[i, j, x] = reverseGammaCorrection(self.cb_image[i, j, x])
|
|
|
|
|
|
|
|
|
print(self.img_mat[78, 86])
|
|
|
|
|
|
print(self.sim_image[78, 86])
|
|
|
|
|
|
return self.sim_image
|
|
|
return self.sim_image
|