Skip to content

AFNI/NIfTI Server

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

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

end grab the slices switch DM ip   ) 
 

end for ip  = 1:1:3  ) 
 

end if DM(ip).  lrflip  ) 
 

end if Opt.  iSlc(ip),
 

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

turn Brick into a matrix if it isn t already if  ) 
 

Sagittal and Coronal slice indices to show a la  AFNI,
first slice is indexed  0
 

slc ip   )  = permute(Brik(:, Opt.iSlc(ip)+1, :, Opt.index+1), [1 3 2])
 


Variable Documentation

turn Brick into a matrix if it isn t already Brik
 

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.

end grab the slices switch case
 

Definition at line 74 of file GetAfniSliceTriplet.m.

Debug Flag DBG = 1
 

Definition at line 49 of file GetAfniSliceTriplet.m.

end end plane err = 1
 

Definition at line 92 of file GetAfniSliceTriplet.m.

function[err, slc]
 

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.

end Opt index = 0
 

Definition at line 61 of file GetAfniSliceTriplet.m.

return
 

Definition at line 93 of file GetAfniSliceTriplet.m.

Sagittal and Coronal slice indices to Sagittal slice and Coronal slice if you need just one slice
 

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().

 

Powered by Plone

This site conforms to the following standards: