Open dvenkatsagar opened 8 years ago
It is because your data type is an arraybuffer. If you convert it to an array or array-like object, then everything should be ok. For example, just converting it into a Uint8Array
by doing var array = new Uint8Array(arraybuffer)
should work.
Ok that worked. Thank you.
I have 245 images, each size 512x512(A ct scan set containing a series of dicom images). I created a image
volume
out them using an external library and converted that to a ndarray which is in this format:From there I have taken a slice of an image in the series (as they are dcm set and are in the form of a volume) like this :
and I get the output of
img
as this :Now when I try to unpack the image like this :
It gives me an error message as given in the title :
Is there way to get around this problem. The basic example given in the docs work, but when it comes to this, it doesnt work for some reason.
With regards, Sagar DV