imData=ImageData[cc] // Dimensions
{51,27}
I cannot remember the Mathematica data layout for GreyScale data (obviously between 0 and 1, and apparently 1 value per pixel in the cell, arranged by columns and rows I would guess). The format of this and other image formats is on Wolfram's website in Documentation section and perhaps in Help also.
You need to say what you wish X,Y,Z to be (color? space? color and space?).
Partition[Flatten[x], 3] // Dimensions
Will re-arrange the {51,27} dimension matrix to be {459, 3} in dimension. I'm unsure if that arranged the data as you need it, of course.
When you post on Communities you might want to limit your post length using this:
x // Short
{{0.113725,0.105882,<<24>>,0.121569},<<49>>,{<<1>>}}