Doxygen Source Code Documentation
GetAfniSliceTriplet.m File Reference
Go to the source code of this file.
Functions | |
Sagittal and Coronal slice indices to | show (a la AFNI, first slice is indexed 0)%for examle[45 12 3] retrieves Axial slice 45 |
turn Brick into a matrix if it isn t already | if (ndims(Brik)< 3) |
end | if (~isfield(Opt, 'index')|isempty(Opt.index)) |
end | for (ip=1:1:3) |
end | if (Opt.iSlc(ip) > 0) |
end | if (DM(ip).zflip) |
end grab the slices switch | DM (ip).SliceDim |
end grab the slices switch | slc (ip).M = permute(Brik(:, Opt.iSlc(ip)+1, :, Opt.index+1), [1 3 2]) |
Variables | |
function [err, slc] | |
Sagittal and Coronal slice indices to Sagittal slice and Coronal slice if you need just one | slice |
Debug Flag | DBG = 1 |
initailize return variables | err = 1 |
turn Brick into a matrix if it isn t already | Brik |
end Opt | index = 0 |
end grab the slices switch | case |
return |
Function Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Variable Documentation
|
Initial value: reshape(Brik, BrikInfo.DATASET_DIMENSIONS(1), BrikInfo.DATASET_DIMENSIONS(2),... BrikInfo.DATASET_DIMENSIONS(3), BrikInfo.DATASET_RANK(2)) Definition at line 56 of file GetAfniSliceTriplet.m. |
|
Definition at line 74 of file GetAfniSliceTriplet.m. |
|
Definition at line 49 of file GetAfniSliceTriplet.m. |
|
Definition at line 92 of file GetAfniSliceTriplet.m. |
|
Initial value: GetAfniSliceTriplet (Brik, BrikInfo, DM, Opt) % % [err, slc] = GetAfniSliceTriplet (Brik, BrikInfo, DM, Opt) % %Purpose: % Get the slices to display as they appear in the AFNI window % % %Input Parameters: % Brik: is a vector or a matrix containing the brik values % BrikInfo is a structure containing Header info % (both are output by BrikLoad function) % % DM is the output of function AFNI_SliceDispManip % % Opt is a an options structure with the following fields % .iSlc is an 1x3 vector with the Axial Definition at line 1 of file GetAfniSliceTriplet.m. |
|
Definition at line 61 of file GetAfniSliceTriplet.m. |
|
Definition at line 93 of file GetAfniSliceTriplet.m. |
|
Definition at line 19 of file GetAfniSliceTriplet.m. Referenced by ART_send_volume(), colormap_median_cut(), r_fill_resampled_data_brick(), segment_x_slices(), segment_y_slices(), and segment_z_slices(). |