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  

edt_wodcopy.c

Go to the documentation of this file.
00001 #include "mrilib.h"
00002 
00003 /*-------------------------------------------------------------------*/
00004 /*! Make a warp-on-demand "duplicate" of a dataset.
00005 ---------------------------------------------------------------------*/
00006 
00007 THD_3dim_dataset * EDIT_wod_copy( THD_3dim_dataset *dset_in )
00008 {
00009    THD_3dim_dataset *dset_out ;
00010    THD_warp * warp ;
00011 
00012 ENTRY("EDIT_wod_copy") ;
00013 
00014    if( !ISVALID_DSET(dset_in) ) RETURN(NULL) ;
00015 
00016    /*** copy header info ***/
00017 
00018    dset_out = EDIT_empty_copy( dset_in ) ;
00019    if( !ISVALID_3DIM_DATASET(dset_out) ) RETURN(NULL) ;
00020 
00021    warp = myXtNew( THD_warp ) ; *warp = IDENTITY_WARP ;
00022 
00023    EDIT_dset_items( dset_out ,
00024                       ADN_prefix      , "dup" ,
00025                       ADN_type        , HEAD_ANAT_TYPE ,
00026                       ADN_func_type   , ANAT_BUCK_TYPE ,
00027                       ADN_warp        , warp    ,
00028                       ADN_warp_parent , dset_in ,
00029                     ADN_none ) ;
00030 
00031    dset_out->dblk->diskptr->storage_mode = STORAGE_UNDEFINED ;
00032    dset_out->dblk->malloc_type           = DATABLOCK_MEM_UNDEFINED ;
00033 
00034    RETURN(dset_out) ;
00035 }
 

Powered by Plone

This site conforms to the following standards: