Australian and New Zealand Society of Nuclear Medicine
IDL Software
(by Leighton Barnden)
This software reads DICOM, Analyze/NIFTI, Interfile, Odyssey, or Trionix image-sets and writes Analyze and Interfile. Internally, all input formats get converted to Analyze because it's so easy to work with. All programs are GUI driven.
abs_cbf.pro (28 Aug 2010)
abs_cbf computes absolute cerebral bloodflow from a HMPAO or ECD first pass study using the method of Matsuda et al EJNM(1992)19:195-200 and EJNM(1995)22:633-637. Brain and aortic arch ROIs and curves are generated. The input (aortic arch) curve is shifted so that its peak is aligned with the brain curve peak. The result in ml/100gm/min is computed via a regression equation from a brain perfusion index related to the blood to brain unidirectional influx constant. Needs lblib of 2007+.
lblib.zip (19 May 2010)
Leighton's library of input/output/display routines. Either single-section-at-a-time or triple othogonal section displays are available. Both display formats feature section browsing and scaling via mouse drag on image. Also zipped is analyze_hdr (the Analyze header structure), read_ifile.pro (to read interfile and convert to Analyze), roi2D_hdr (structure for saved ROIs) and tidy (an IDL macro to recover from a hung program - simply type @tidy). Documented in zipped lblib.mht.
op2d.zip (25 Mar 2010)
Projections and profiles - generate PSF or LSF and perform FWHM and pixel size analysis. Forward project Tomo. Perform FBP. REBIN FANbeam projections. Needs lblib.zip of 2007+.
opto.zip (16 Mar 2010)
Tomo-image operations with auto-display. Also OK for projections. All sorts of operations: image arith, mask, NMSE, concatenate, clip, flip, shift, fill, noise addition & measurement, trans to cor & sag, smooth, erode, dilate, XY dimension/2, intra-imageset ops. Three imageset buffers for flexible operation sequences. Linked orthographic display of all buffers. Documented in zipped opto.mht. Needs lblib.zip of July 2007+.
qonsub.zip (15 Mar 2010)
'qonsub' (pronounced consub) performs subtraction of tomographic image-sets to highlight differences between them. Originally written for epilepsy SPECT, it can also be used with DIMOX, V/Q lung, or any baseline-vs-stimulation study. 'qonsub' integrates coregistration, count normalization, subtraction and flexible display. Thanks to Erin McKay and Stefan Eberl for their coregistration code. Normalisation uses the top 20% of voxels or median in a whole-brain or user ROI (a user-defined ellipsoid refined by thresholding). For V/Q lung, residual V in Q is subtracted after coregistration. The display consists of linked panels, each with a transverse, sagittal and coronal section and localising cross-hairs. Drag the left mouse to browse. The coregistered and normalised scan may be saved for a future physician reporting session. Documentation is in zipped qonsub.mht. Needs lblib of 17May2009+ (below) and odyssey.zip if you want to read odyssey databases.
skel.zip (25 May 2008)
skel.pro doubles as a GUI prototyping program and an introduction to GUI programming and Leighton's 'lblib' input/output, display, ROI and curves. It has instructions at the top on how to adapt it for your application. Documented in zipped skel.htm. Also zipped with it are skint2.pro that contains the MOST basic of GUI programming elements, and skinny.pro that, with a single GUI line, accesses lblib's image input and display features. Needs lblib.zip of 2007+.
odyssey.zip (17 May 2008)
A set of routines (thanks to Erin McKay) to support 'pickpick', a GUI that permits selection of one or more studies directly from a Philips Odyssey database. Several filters assist navigation through the database. On a unix/linux machine, /img# containing the database(s) must be mounted. For a database on a PC (copied there with FTP) or its CD or DVD, manually select CINDEX in the database directory when prompted. You must run the IDL macro 'bld_odyssey_read' (type @bld_odyssey_read) before running any of Leighton's GUI routines (eg opto) that call 'pickpick'. Select 'Odyssey' in the format dropdown menu and click on the adjacent 'Load' button. Extended documentation as odyssey.htm (.gif) is zipped. Needs lblib.zip.
qmpq.zip (2 Jul 2007)
Quick Myocardial Perfusion Quantification! A GUI-driven program to compute stress vs rest myocardial perfusion deficit via subtraction of coregistered stress and rest scans. The full monty (Slomka et al, JNM, 2004; 45,183) out-performs the conventional comparison-of-each-scan-with-normal-database packages. 'qmpq' currently requires input to be short-axis sections and it's myocardial wall definition & coregistration is not as sophisticated as Slomka's. It merits evaluation however, and there's lots of scope for upgrades (?trainee projects?). Documented in zipped qmpq.txt. Thanks to Erin McKay and Stefan Eberl for their coregistration code. Needs lblib.zip of July 2007+.
hgram.zip (7 Mar 2007)
Computes and displays voxel-value histograms of your (masked) images - useful for segmentation or global scaling. Offers basic curve fitting to yield measures of global intensity with optional output from multiple studies to a file formatted for use with SPM. Corrects different odd vs even signal levels in interlaced MR. Documented in zipped hgram.htm. Needs lblib.zip of 2007+.
fil2or3d.zip (17 Feb 2007)
Spatially filter 2D or 3D images in Fourier space. Offers Butterworth, Hann and Gaussian filters. Documented in zipped fil2or3d.htm. Needs lblib.zip of 2007+.
mdis.zip (17 Feb 2007)
Multi-image display of up to thirty 2D images from a single or multiple studies with optional ROI edge overlay. You specify #rows x #columns of images. Documented in zipped mdis.htm. Needs lblib.zip of 2007+.
plot_dat_file.zip (30 Nov 2006)
Generates publication-ready plots from a text file containing your data, axis ranges, titles, etc. Caters for multiple plot panels, each with multiple curves, e.g. EJNM;31,378,2004. Documentation & example is zipped.