Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


DisplayAfniSlice.m File Reference

Go to the source code of this file.


Functions

 if (~isfield(Opt,'')|isempty(Opt.))
end if (~isfield(Opt,'fhandle')|isempty(Opt.fhandle))
end if (~isfield(Opt,'colrange')|isempty(Opt.colrange))
end if (~isfield(Opt,'subplot')|isempty(Opt.subplot))
end if (~isfield(Opt,'plane')|isempty(Opt.plane))
end if (~isfield(Opt,'Info')|isempty(Opt.Info))
end if (~isfield(Opt,'iSlc')|isempty(Opt.iSlc))
 prod (Opt.subplot)
make sure enough subplots
are there 
if (prod(Opt.subplot)< szslc(3))
 if (Opt.colrange(1)|Opt.colrange(2))
 if (Mmin==Mmax)
else M (iMsort(1:min(iToScale)-1))
 M (iMsort(iToScale))
 M (iMsort(max(iToScale)+1:nM))
 set (cf,'Name', stit)
 for (i=1:1:nslc)
 subplot (Opt.subplot(1), Opt.subplot(2), i)
 image (Slc.M(:,:, i))
 title (stit)
 axis ([0 szslc(1) 0 szslc(2)])

Variables

 function [err]
see DispAFNISlice the function
is left here for backward
compatibility Display slices
a la AFNI Input 
Parameters
see DispAFNISlice the function
is left here for backward
compatibility Display slices
a la AFNI Input default is
current figure 
subplot = [1 1]
Debug Flag DBG = 1
initailize return variables err = 1
 Opt
end Opt fhandle = gcf
end Opt colrange = [0 0]
 return
end switch Opt plane = Opt.plane
end switch Opt case Ax
end switch Opt case planename = 'Axial'
case Sa
case Co
end number of slices szslc = size(Slc.M)
end perform required scaling
I d like to normalize to cover
the color map from to the
number of colors in the map 
map = colormap
 nmap = max(size(map))
 lb = 0
 nM = prod(szslc)
not all points are to be scaled M = reshape(Slc.M,[nM 1])
 lbval = sort(M) Msort(round(Opt.colrange(1).*nM./100))
 ubval = Msort(round(Opt.colrange(2).*nM./100))
 iToScale = find (Msort >= lbval & Msort <= ubval)
 Mmin = min ( Msort(iToScale) )
 Mmax = max ( Msort(iToScale) )
end end cf = figure(Opt.fhandle)
clf stit = sprintf ('%s--- %s', Opt.Info.RootName, planename)
 nslc = size(Slc.M,3)
axis equal

Function Documentation

axis  ) 
 

Referenced by ExtractClassifiedVolume(), normalizeDialAngle(), normalizeSpaceballAngle(), normalizeSpaceballDelta(), normalizeTabletPos(), VPCheckClassifiedVolume(), VPComputeScanRuns(), vpExtract(), VPInitOctreeLevelStack(), VPLoadRotation(), and vpRotate().

for = 1:1:nslc  ) 
 

if Mmin  = Mmax  ) 
 

if Opt.  colrange(1)|Opt.colrange(2)  ) 
 

make sure enough subplots are there if  ) 
 

end if isfield(Opt,'iSlc')|isempty(Opt.iSlc)  ) 
 

end if isfield(Opt,'Info')|isempty(Opt.Info)  ) 
 

end if isfield(Opt,'plane')|isempty(Opt.plane)  ) 
 

end if isfield(Opt,'subplot')|isempty(Opt.subplot)  ) 
 

end if isfield(Opt,'colrange')|isempty(Opt.colrange)  ) 
 

end if isfield(Opt,'fhandle')|isempty(Opt.fhandle)  ) 
 

if isfield(Opt,'')|isempty(Opt.)  ) 
 

image Slc.  M(:,:, i)  ) 
 

M iMsort(max(iToScale)+1:nM  ) 
 

M iMsort(iToScale  ) 
 

else M iMsort(1:min(iToScale)-1)   ) 
 

prod Opt.  subplot  ) 
 

set cf  ,
'Name'  ,
stit 
 

subplot Opt.  subplot(1),
Opt.  subplot(2),
 

title stit   ) 
 


Variable Documentation

end switch Opt case Ax
 

Definition at line 62 of file DisplayAfniSlice.m.

Referenced by SUMA_Alloc_Axis(), SUMA_DrawAxis(), SUMA_DrawLineAxis(), SUMA_EyeAxisStandard(), SUMA_Free_Axis(), SUMA_MeshAxisStandard(), SUMA_SortedAxisSegmentList(), and SUMA_WorldAxisStandard().

end end cf = figure(Opt.fhandle)
 

Definition at line 117 of file DisplayAfniSlice.m.

Referenced by detrend(), exenddo(), fft_shift2(), ft_shift2(), rfft(), SUMA_Assign_HostName(), SUMA_CommonFieldsInfo(), SUMA_Create_CommonFields(), SUMA_Free_CommonFields(), SUMA_niml_call(), SUMA_niml_hangup(), SUMA_RegisterGroup(), SUMA_Show_CommonFields(), SUMA_which_stream_index(), and SUMA_WhichGroup().

case Co
 

Definition at line 67 of file DisplayAfniSlice.m.

end Opt colrange = [0 0]
 

Definition at line 56 of file DisplayAfniSlice.m.

Debug Flag DBG = 1
 

Definition at line 48 of file DisplayAfniSlice.m.

axis equal
 

Definition at line 125 of file DisplayAfniSlice.m.

end err = 1
 

Definition at line 131 of file DisplayAfniSlice.m.

end Opt fhandle = gcf
 

Definition at line 55 of file DisplayAfniSlice.m.

function[err]
 

Initial value:

 DisplayAfniSlice (Slc, Opt)
%
%   [err] = DisplayAfniSlice (Slc, Opt)
%
%Purpose:
%      
%    OBSOLETE

Definition at line 1 of file DisplayAfniSlice.m.

iToScale = find (Msort >= lbval & Msort <= ubval)
 

Definition at line 94 of file DisplayAfniSlice.m.

lb = 0
 

Definition at line 86 of file DisplayAfniSlice.m.

Referenced by bisect_(), cmpstr(), DRAW_label_EV(), Dtable_from_nimlstring(), Dtable_to_nimlstring(), ef1asc_(), ef1cmc_(), h_indx(), hl_ge(), hl_gt(), hl_le(), hl_lt(), i_indx(), l_ge(), l_gt(), l_le(), l_lt(), listize_Dtable(), main(), median_cut(), PV2S_check_surfaces(), qzhes_(), r_INT_cb_fill(), s_cmp(), s_copy(), setbound(), tridib_(), ts_shift_2byte(), and tsturm_().

lbval = sort(M) Msort(round(Opt.colrange(1).*nM./100))
 

Definition at line 92 of file DisplayAfniSlice.m.

else Slc M = reshape(Slc.M,[nM 1])
 

Definition at line 112 of file DisplayAfniSlice.m.

I d like to normalize to cover the color map from to the number of colors in the map map = colormap
 

Definition at line 84 of file DisplayAfniSlice.m.

Mmax = max ( Msort(iToScale) )
 

Definition at line 108 of file DisplayAfniSlice.m.

end else Mmin = min ( Msort(iToScale) )
 

Definition at line 107 of file DisplayAfniSlice.m.

nM = prod(szslc)
 

Definition at line 87 of file DisplayAfniSlice.m.

nmap = max(size(map))
 

Definition at line 85 of file DisplayAfniSlice.m.

Referenced by AFNI_niml_redisplay_CB(), main(), mri_warp3D_align_fitim(), mri_warp3D_align_setup(), and SPLASH_decodexx().

nslc = size(Slc.M,3)
 

Definition at line 121 of file DisplayAfniSlice.m.

Opt
 

Definition at line 54 of file DisplayAfniSlice.m.

see DispAFNISlice the function is left here for backward compatibility Display slices a la AFNI Input Parameters
 

Definition at line 1 of file DisplayAfniSlice.m.

OptDisp plane = Opt.plane
 

Definition at line 51 of file Test_AFNI_IndexChange.m.

Referenced by DRAW_2D_circle(), DRAW_2D_expand(), and DRAW_receiver().

case planename = 'Axial'
 

Definition at line 68 of file DisplayAfniSlice.m.

return
 

Definition at line 132 of file DisplayAfniSlice.m.

case Sa
 

Definition at line 65 of file DisplayAfniSlice.m.

end perform required scaling
 

Definition at line 81 of file DisplayAfniSlice.m.

Referenced by EDIT_one_dataset().

stit = sprintf ('%s--- %s', Opt.Info.RootName, planename)
 

Definition at line 126 of file DisplayAfniSlice.m.

clf subplot = [1 1]
 

end number of slices szslc = size(Slc.M)
 

Definition at line 72 of file DisplayAfniSlice.m.

ubval = Msort(round(Opt.colrange(2).*nM./100))
 

Definition at line 93 of file DisplayAfniSlice.m.

 

Powered by Plone

This site conforms to the following standards: