[Master Index]
[Index for export/lyngby]
lyngby_ui_voxelmask
(export/lyngby/lyngby_ui_voxelmask.m)
Function Synopsis
varargout = buttonHelp(h, hg)
Help text
lyngby_ui_voxelmask - User interface for voxelmask editing
function lyngby_ui_voxelmask(command,parameter1)
This function is used to control the window for setting up the
VOXEL_MASK global variable.
The VOXEL_MASK variable is usually "VOXEL_MASK = 1" which means
that all voxels are included (ie, no voxelmask). If VOXEL_MASK
is sparse the number of rows should correspond to the full
volume and the number of columns to the number of voxels in
the masked volume.
Select the appropriate command from the popup menu and press
"Go!". The VOXEL_MASK global variable will be updated and the
window can be closed with the "Close" button.
"~isnan from first volume" means that all voxels different from
NaN in the first volume (corresponding to FILENAME_STARTINDEX)
will be included in the mask.
"~isnan from ANALYZE file" will read an user-specified ANALYZE
file and include voxels in the mask that are different from
NaN.
"~0 from ANALYZE file" will read an user-specified ANALYZE
file and include voxels in the mask that are different from
0.
"Threshold from first volume" will find the voxels in the
first volume that are above the threshold.
This function is called from lyngby_ui_loadfile when the
'voxel mask' 'edit' button is pressed. The 'Apply' button
should be pressed before the voxel mask is called.
Example:
% Reduce the volume with the voxel mask
lyngby_global
V_big = lyngby_getvolume(FILENAME_STARTINDEX);
V_small = V_big * VOXEL_MASK;
% To get back to the full volume transpose the voxelmask
V_big2 = V_small * VOXEL_MASK';
See also LYNGBY, LYNGBY_UI_MAIN, LYNGBY_UI_LOADFILE,
LYNGBY_GLOBAL.
$Id: lyngby_ui_voxelmask.m,v 1.3 2003/09/15 10:28:44 fnielsen Exp $
Cross-Reference Information
This function calls
This function is called by
Produced by mat2html on Wed Jul 29 15:43:40 2009
Cross-Directory links are: OFF