MRI-viewer is a project mainly written in JavaScript, it's free.
Simple web-based viewer for MRI images
This is a simple online viewer for MRI images, a demo which can be seen on my playground.
If you have your own MRI images you wish to present, you can use this framework. You can yourself choose which planes you wish to present.
The first step is getting the images into the right format. MRI images are usually saved in the DICOM image format. You will need a special reader software for this.
I used Synedra View Personal, which is a free download (that runs fine under Wine).
DICOMDIR
file from the CD. <$COMMENT$>\<RelativeCount>
as the output filename. Click OK to save (if you are prompted to restart, you don't have to).PS! You might get a few images that appear to be completely black. I recommend you keep them, as removing images will shift planes in relation to each other.
data.js
fileYou will need to tell the plugin where to find your images. My data.js
file is included in this repos for reference. You will need to modify the window.mri.data
structure. These are the fields:
name
: The title of the website.info
: Some information HTML.sets
: Array of sets, consisting of these fields:name
: The name of the set (e.g. sagittal)id
: ID that will be used to refer to this plane (and must correspond to the subdirectory where the images will be found)firstImage
: Number of the first image (should be 1).lastImage
: Number of the last image.overviewImage
: Thumbnail image that represents this plane.sliderImage
: Image that can be used as an underlay to the slider.sliderDirection
: The direction the slider should travel.markers
: Array of markers, consisting of these fields:name
: The marker's nametext
: More detailed text about the marker (HTML).link
: URL to source materialsource
: Link text to source materialposition
: Array of positions where the marker should be visible:plane
: ID of the plane (see id
above)x
and y
: coordinates where the marker is placed in this planefrom
and to
: image range to show the marker (e.g. from image 4 to image 15)For markers, note that you cannot show one marker in more than one place at a time, meaning that it is valid to have the same marker show up twice on one plane, but not with overlapping from
and to
ranges.
Thanks to St. Olavs Hospital in Trondheim, Norway for allowing me to participate in the study.
To avoid spending too much time on this project, I used the following resources:
This code is licensed under the Creative Commons BY-NC-SA license. This license does not apply to the images used.
.