Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

XMRI volume dataset alignment

The `xmri-lib.lsp' code may be used to generate aligned datasets: Sets of raw 256x256x256 arrays sharing a single coordinate system. A sample session of this sort looks like

jsp@betz jsp-glia/mri> skandha4 align-jsp-4
...
jsp@betz jsp-glia/mri> skandha4 align-jsp-4

where `align-jsp-4.lsp' is a file containing

;; 95Mar24 hack to generate aligned JSP dataset for Lloyd

(require "xmri-lib.lsp")

(xmri-dump-four-aligned-datasets
  (xmri-dataset "JSP" "E1753" "S2" 1)
  (xmri-dataset "JSP" "E1753" "S4" 1)
  (xmri-dataset "JSP" "E1753" "S5" 1)
  (xmri-dataset "JSP" "E1753" "S6" 1)
  :chat-fn #'xmri-line	;; Delete this line for quieter operation
)

(exit)

and results in an output fileset in the current directory looking like

jsp@betz jsp-glia/mri> ls -lart
total 262147
drwxr-xr-x    7 root     sys          512 Mar 22 13:28 ../
-rw-r--r--    1 jsp      user         203 Mar 24 18:48 JSP_E1753.lsp
-rw-r--r--    1 jsp      user     33554432 Mar 24 18:52 JSP_E1753_S2.mri
-rw-r--r--    1 jsp      user     33554432 Mar 24 18:56 JSP_E1753_S4.mri
-rw-r--r--    1 jsp      user     33554432 Mar 24 18:59 JSP_E1753_S5.mri
drwxr-xr-x    2 jsp      sys          512 Mar 24 19:02 ./
-rw-r--r--    1 jsp      user     33554432 Mar 24 19:03 JSP_E1753_S6.mri
jsp@betz jsp-glia/mri> 

where the `*.mri' files are 256x256x256x16bit raw arrays with no header whatever, and `JSP_E1753.lsp' contains

(:SEQUENCE UNION
           0
           (:AXIS A :COORD-0 -90 :COORD-N 94.5)
           1
           (:AXIS S :COORD-0 -85.9 :COORD-N 98.6)
           2
           (:AXIS R :COORD-0 90 :COORD-N -94.5))

and is interpreted as follows:

To align only three datasets at a time, use a file like:

;; 95Mar24 hack to generate aligned JSP dataset for Lloyd

(require "xmri-lib.lsp")

(xmri-dump-three-aligned-datasets
  (xmri-dataset "JSP" "E1753" "S2" 1)
  (xmri-dataset "JSP" "E1753" "S4" 1)
  (xmri-dataset "JSP" "E1753" "S5" 1)
  :chat-fn #'xmri-line	;; Delete this line for quieter operation
)

(exit)

Currently only alignment of three or four files datasets is supported: Talk to Jeff or look at the code in `xmri-lib.lsp:' if you need something else.


Go to the first, previous, next, last section, table of contents.