VINCI Technical Reference, Vinci 3.27.0

Please see sections USAGE and DISCLAIMER if have not already done so. Thank you. - This text is an excerpt of the VINCI documentation (work in progress).

Image-based Calculations

Overview

Requirements

Image-Based Calculation requires a Python interpreter (versions 2.4-2.6 will do). Python should be available on all modern Unix systems (including MacOS X) and no further installation is required. We refer users of MS Windows systems to this excellent and free distribution of Python: http://www.activestate.com/python (installation is just a "double-click", the distribution's footprint is small).

Reference

"Logical" Thresholding

gt ( a, t )

Create a clone of imagebuffer a and set all voxels above threshold t to one, and all voxels below and equal to the treshold to zero.

ge ( a, t )

Similar to gt () but tests for "greater than or equal".

lt ( a, t )

Create a clone of imagebuffer a and set the all voxels below threshold t to one, and all voxels above and equal to the treshold to zero.

le ( a, t )

Similar to lt () but tests for "lesser than or equal".

General Thresholding

th_u ( a, t, r )

Create a clone of imagebuffer a and set the "upper part", i.e. all voxels above threshold t to r, keep all other voxels.

th_ue ( a, t, r )

Similar to th_u[pper] () but tests for "greater than or equal".

th_l ( a, t, r )

Create a clone of imagebuffer a and set the "lower part", i.e. all voxels below threshold t to r, keep all other voxels.

th_le ( a, t, r )

Similar to th_l[ower] () but tests for "lesser than or equal".

th_u0 ( a, t )

:= th_u ( a, t, 0 )

th_ue0 ( a, t )

:= th_ue ( a, t, 0 )

th_u1 ( a, t )

:= th_u ( a, t, 1 )

th_ue1 ( a, t )

:= th_ue ( a, t, 1 )

th_l0 ( a, t )

:= th_l ( a, t, 0 )

th_le0 ( a, t )

:= th_le ( a, t, 0 )

th_l1 ( a, t )

:= th_l ( a, t, 1 )

th_le1 ( a, t )

:= th_le ( a, t, 1 )

Mathematical Standard Functions

In the following definitions, a denotes an image buffer.

pow ( a, t )

computes a**t with any real number exponent t. pow is defined for all voxel values greater zero, for voxels values equal zero with exponents greater equal zero, and for voxel values less than zero with integer exponents; offending result voxels will be set to zero.

a**t

:= pow (a, t)

sqrt ( a )

defined for voxel values greater or equal zero; offending result voxels will be set to zero.

log ( a )

defined for voxel values greater zero; offending result voxels will be set to zero.

exp ( a )

result voxels with under- and overflow will be set to zero.

sin ( a )

defined for voxel values in the range [-263,+263]; offending result voxels will be set to zero.
This is a technical limit set by the programming language C++, 263 is about 83.66*pi.

cos ( a )

defined for voxel values in the range [-263,+263]; offending result voxels will be set to zero.
This is a technical limit set by the programming language C++, 263 is about 83.66*pi.

tan ( a )

defined for voxel values in the range [-263,+263]; offending result voxels will be set to zero.
This is a technical limit set by the programming language C++, 263 is about 83.66*pi.

asin ( a )

defined for voxel values in the range [-1,+1]; offending result voxels will be set to zero.

acos ( a )

defined for voxel values in the range [-1,+1]; offending result voxels will be set to zero.

atan ( a )

results voxels will be in the range (-pi/2,+pi/2).

We could easily add other functions. Please, let us now if you need them.

Multi-Frame Files

MSum ( a, iStart, iEnd )

Sums all frames from frame <iStart>up to and including frame <iEnd> of the multi-frame file associated with image buffer a (in case of ECAT7 data) or the multi-frame series (in case of HRRT data). "Native" frame numbers are used: the first frame of an ECAT7 multi-frame file is "1" (usually), the first frame of a HRRT multi-frame series is "0".

MSum ( a )

Sums all frames of the multi-frame file, or the multi-frame series.

MSum ( a, iStart )

Sums all frames of the multi-frame file, or the multi-frame series starting with frame <iStart>.

MAvg ( a, iStart, iEnd )

Similar to MSum ( a, iStart, iEnd ) but scales the result with 1/#frames. Please note: this function is currently only available for ECAT7 multi-frame files.

MAvg ( a, iStart )

Similar to MSum ( a, iStart ) but scales the result with 1/#frames. Please note: this function is currently only available for ECAT7 multi-frame files.

MAvg ( a )

Similar to MSum ( a ) but scales the result with 1/#frames. Please note: this function is currently only available for ECAT7 multi-frame files.

USAGE

FOR NON-COMMERCIAL SCIENTIFIC RESEARCH USAGE ONLY.

DICLAIMER

THIS SOFTWARE IS PROVIDED AS-IS, WITHOUT ANY EXPRESSED OR IMPLIED WARRANTY. SPECIFICALLY, NEITHER THE MPI FÜR NEUROLOGISCHE FORSCHUNG NOR THE AUTHORS WARRANT THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE SOFTWARE WILL BE CORRECTED. TO THE EXTENT PERMITTED BY LAW, NEITHER THE MPI FÜR NEUROLOGISCHE FORSCHUNG NOR THE AUTHORS SHALL BE LIABLE FOR ANY DAMAGES ARISING OUT OF OR RELATING TO THE USE OF THE SOFTWARE, INCLUDING BUT NOT LIMITED TO INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY LOST PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON YOUR INFORMATION HANDLING SYSTEM.