def calc_deconv_matrix(matrix_vector_dab_he):
"""
Custom calculated matrix of lab's stains DAB + Hematoxylin
The raw matrix was moved to the global scope before main() function as a constant
"""
matrix_vector_dab_he[2, :] = np.cross(matrix_vector_dab_he[0, :], matrix_vector_dab_he[1, :])
matrix_dh = linalg.inv(matrix_vector_dab_he)
return matrix_dh
评论列表
文章目录