I first thought it would be 3 dimensions (one for R, one for G, one for B). However what about the width and height?
More a physics/image processing question I think.
So, I have a few possible answers to this question myself: 3, 5, 9.
3 is from where you just count the R, G and B as a separate dimension. But then you are ignoring the width and height of the image.
5 is from considering width and height on top of each RGB channel.
9 is from considering width, height and intensity for each channel, so it becomes 3+3+3 hence 9 dimensions.
Any clarity in what is considered a 'dimension' in regards to images will help my understanding, thanks!