convert_xyz2rgb
- typhon.physics.convert_xyz2rgb(xyz, xyz2rgb='opencv')[source]
- Convert image in xyz color system to image in rgb color system. - Parameters:
- xyz (3darray) – Image in xyz color system [height,width, xyz] 
- xyz2rgb (str, optional) – - Selects the transformation matrix. There are two possible matrices. - ”opencv”: according to the open cv package. 
- ”hdtv”: according to John Walker “Colour Rendering of Spectra” for HDTV. 
 - Defaults to “opencv”. 
 
- Returns:
- Image in rgb color system [height,width, rgb]. 
- Return type:
- rgb (3darray) 
 - References - https://docs.opencv.org/3.4/de/d25/imgproc_color_conversions.html#color_convert_rgb_xyz https://www.fourmilab.ch/documents/specrend/specrend.c