123 setlocale( LC_NUMERIC,
"C" );
135 gifti_image *gim = hdr.giftiImageBase();
136 std::string fname = hdr.
name();
142 da_info = thdr.
getProperty(
"GIFTI_dataarrays_info" );
150 hdr.giftiAddTexture( gim, thing);
152 hdr.giftiAddExternalTextures( gim, hdrtexda, da_info );
157 da_label = thdr.
getProperty(
"GIFTI_labels_table" );
164 hdr.giftiAddLabelTable( gim );
168 gifti_write_image( gim, fname.c_str(), 1 );
170 gifti_free_image( gim );
188 catch( std::exception & e )
void setHeader(const aims::PythonHeader &hdr)
Set the header.
const aims::PythonHeader & header() const
Get the header.