I am working on Octave with a brain MRI dataset.
The data is in the form of hundreds of .mat fils.
I load the data file using: x = load("filename.mat") and the images are stored in the form of an array from 0 to 256.
Then when I try to imshow(x.image) a window pops up with 512 x 512 graph but is completely black.
It also throws a warning saying: unsupported type for cdata (= int16 matrix). Valid types are uint8, uint16, double, single, and bool.
I have also tried casting the image array using: imshow(cast(x, "double")) and all the other data types mentioned above, but the result is almost the same.
Help me out here.