I have to write a program in c# able to parse DICOM and display axial, coronal and sagittal cuts.
Seems like it's a lot of work, but I have to do it so !
Big first step would be to understand DICOM files I guess.
I've been reading this tutorial http://dicomiseasy.blogspot.ru/ but he's using this RZDCX library that I'm not allowed to buy.
There are still some good explanations about DICOM attributes and I've also been reading some parts of the standard (part 3 above all)
But I'm having big trouble to understand them all. There are those image attributes: pixel representation, pixel data, planar configuration... I guess it's very important to understand them to be able to display the image, and I think I should learn more about how pixels actually work to have a better understanding.
But there is still one thing I really can't figure out :
How or where am I suppose to have this three different cuts? (axial/coronal/sagittal). I've been looking for attributes about them in the standard but I did not find any. So may be we find them with some kind of calculation, but I don't know which variables I should use with which formula?
You are right, this is quite a big task! And you are probably not going to find someone here who can provide a step-by-step tutorial for you, However some hints:
ImagePositionPatient
(0020,0032) , ImageOrientationPatient
(0020,0037) and PixelSpacing
(0028,0030). These can be used to order the slices correctly and calculate interpolated intersection slices.HTH and good luck!