Skip to content

AFNI/NIfTI Server

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

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

thd_countb.c File Reference

#include "mrilib.h"
#include "thd.h"

Go to the source code of this file.


Functions

int THD_count_databricks (THD_datablock *dblk)

Function Documentation

int THD_count_databricks THD_datablock   dblk
 

Definition at line 20 of file thd_countb.c.

References THD_datablock::brick, DBLK_ARRAY, DBLK_BRICK, ISVALID_DATABLOCK, and THD_datablock::nvals.

Referenced by AFNI_fimmer_compute(), EDIT_dset_items(), fim3d_fimmer_compute(), MAKER_4D_to_typed_fbuc(), MAKER_4D_to_typed_fim(), MAKER_4D_to_typed_fith(), PLUTO_4D_to_nothing(), THD_alloc_datablock(), THD_delete_datablock(), THD_load_datablock(), THD_load_statistics(), THD_setup_mastery(), THD_update_statistics(), and THD_write_datablock().

00021 {
00022    int ibr , count ;
00023 
00024    if( ! ISVALID_DATABLOCK(dblk) || dblk->brick == NULL ) return -1 ;
00025 
00026    count = 0 ;
00027    for( ibr=0 ; ibr < dblk->nvals ; ibr++ )
00028       if( DBLK_BRICK(dblk,ibr) != NULL && DBLK_ARRAY(dblk,ibr) != NULL )
00029         count++ ;
00030 
00031    return count ;
00032 }
 

Powered by Plone

This site conforms to the following standards: