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  

3dEntropy.c File Reference

#include "mrilib.h"

Go to the source code of this file.


Functions

int main (int argc, char *argv[])

Function Documentation

int main int    argc,
char *    argv[]
 

compute the overall minimum and maximum voxel values for a dataset

Definition at line 3 of file 3dEntropy.c.

References argc, DSET_delete, ENTROPY_dataset(), ISVALID_DSET, and THD_open_dataset().

00004 {
00005    int iarg=1 ;
00006    THD_3dim_dataset * dset ;
00007    double eset ;
00008 
00009    if( argc < 2 || strcmp(argv[1],"-help") == 0 ){
00010       printf("Usage: 3dEntropy dataset ...\n") ; exit(0) ;
00011    }
00012 
00013    for( ; iarg < argc ; iarg++ ){
00014       dset = THD_open_dataset( argv[iarg] ) ;
00015       if( !ISVALID_DSET(dset) ){
00016          printf("%s: Can't open\n",argv[iarg]) ; continue ;
00017       }
00018       eset = ENTROPY_dataset(dset) ;
00019       printf("%s: %g\n",argv[iarg],eset) ;
00020       DSET_delete(dset) ;
00021    }
00022    exit(0) ;
00023 }
 

Powered by Plone

This site conforms to the following standards: