multidimensional (4D) color conversion
I have 3 3D numpy arrays of shape 600 x 600 x 200 representing the X, Y, Z directions. The arrays contain dip azimuth, dip magnitude, and edge magnitude calculated from a geophysical dataset. I would like to stack them into a 4D array of shape 600x600x600x3 where azimuth is Hue, dip is Saturation, and edge is Value. *Question*: Would color skimage.color.hsv2rg take this 4D array as input and convert it to RGB? My goal is to then split the 3 R,G,B arrays and load them into a commercial software where I can visualize them using RGB blending? Thanks, Matteo Matteo Niccoli P. Geo., M.sc. Geophysics and data science [image: WordPress] <http://mycarta.wordpress.com/>[image: LinkedIn] <http://www.linkedin.com/in/matteo-niccoli-031aa426>[image: Twitter] <http://twitter.com/@my_carta>[image: Custom link] <https://github.com/mycarta>[image: Custom link] <https://www.researchgate.net/profile/Matteo_Niccoli2>
Answered on image.sc here: https://forum.image.sc/t/multidimensional-4d-color-conversion/44134 Thanks for the Q, Matteo! On Fri, 16 Oct 2020, at 9:44 AM, Matteo Niccoli wrote:
I have 3 3D numpy arrays of shape 600 x 600 x 200 representing the X, Y, Z directions. The arrays contain dip azimuth, dip magnitude, and edge magnitude calculated from a geophysical dataset. I would like to stack them into a 4D array of shape 600x600x600x3 where azimuth is Hue, dip is Saturation, and edge is Value.
*Question*: Would color `skimage.color.``hsv2rg take this 4D array as input and convert it to RGB?` `` `My goal is to then split the 3 R,G,B arrays and load them into a commercial software where I can visualize them using RGB blending?` `` `Thanks,` `Matteo` ``
Matteo Niccoli P. Geo., M.sc. Geophysics and data science WordPress <http://mycarta.wordpress.com/>LinkedIn <http://www.linkedin.com/in/matteo-niccoli-031aa426>Twitter <http://twitter.com/@my_carta>Custom link <https://github.com/mycarta>Custom link <https://www.researchgate.net/profile/Matteo_Niccoli2> _______________________________________________ scikit-image mailing list -- scikit-image@python.org To unsubscribe send an email to scikit-image-leave@python.org https://mail.python.org/mailman3/lists/scikit-image.python.org/ Member address: jni@fastmail.com
participants (2)
-
Juan Nunez-Iglesias
-
Matteo Niccoli