'Displaying multidimensional numpy array of sequence of images on a website

I am currently working on a task of brain MRI segmentation on BraTS Dataset where, a web portal is created to take a volume of images as a input and then similarly display the segmented output.

As a input I am receiving a volume of images i.e. a NumPy array (.npy file) with the shape (240,240,155), where 240x240 is the shape of each image in the volume and such 155 images are present in a volume.

First I want to load a .npy file for which I found this npyjs but I was not able to find a way to display all these sequence of images (which are currently in the form of numpy array) on a website, so let me know if there is any way and how to do it ?



Sources

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

Source: Stack Overflow

Solution Source