DICOM Image Plane Editor

Recently I had to have a few MRIs done. Many times in an MRI more than one view of the body is taken. Most DICOM software will allow you to compare two series and will show lines indicate where each view is on the different image. If you have moved, even 1mm, in the MRI machine these numbers will not match up, making visualization a little difficult with the lines off.

To solve this, I wrote a ruby script. Point it to a folder full of DICOM files and it will allow you to apply an offset to the image plane in a series. You can then visually match features and apply an offset to have a more accurate view of where you are looking at in the body.

The code can be found on github: https://github.com/ldm314/dicom-offset