Convert Mat Image to uint32_t type

Hey guys!

Wanted to know how can I convert a mat image to a uint32_t type data structure?

TIA

what should be inside your uint32 ? a single channel ? 4 uchar bytes ?
please explain, what you have, and what you are trying to do.