I have a `.jpg` image named `r`.
I am using the following code to plot a Histogram:

    r // ImageData // Flatten // Histogram

Is it correct?
However, I am unable to use Histogram3D. I know I need to convert my data but I am having difficulties figuring out how.