When I read a series of 2D dicom file and get the 3D volume, I want to further process the data in my application. So I copy the 3D volume data to a local buffer. But the value inside the 3D volume is unsigned long. How can I map the unsigned long value to rgb value between 0~255?