'Directly display YBR_Full image [closed]

I have a dicom file. I use pydicom to dcmread it. By calling pixelarray, I get a numpy 4-dimensional array which represents a video: one dimension for frame (I have like 1000 frames) and the other three for image. I wish to display this video. More precisely, the user will move the slider enter image description here to see the frame they want to see .

This all works out well except when the video has color space different from RGB. Assume this is the case and the video is a sequence of YBR_Full images. My attempt is to use convert_color_space to convert each and every one of them into RGB and then display them. But this is taking forever as I have so many images . Is there any way to display the video without coverting the color space ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source