|
|
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
|
|
Referenced by ExtractClassifiedVolume(), normalizeDialAngle(), normalizeSpaceballAngle(), normalizeSpaceballDelta(), normalizeTabletPos(), VPCheckClassifiedVolume(), VPComputeScanRuns(), vpExtract(), VPInitOctreeLevelStack(), VPLoadRotation(), and vpRotate(). |
| 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.) |
) |
|
|
| subplot |
( |
Opt. |
subplot(1), |
|
|
Opt. |
subplot(2), |
|
|
i |
|
|
) |
|
|
Variable Documentation
|
|
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(). |
|
|
Initial value: DisplayAfniSlice (Slc, Opt)
%
% [err] = DisplayAfniSlice (Slc, Opt)
%
%Purpose:
%
% OBSOLETE
Definition at line 1 of file DisplayAfniSlice.m. |
|
|
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_(). |
| else Slc M = reshape(Slc.M,[nM 1]) |
|
|