# NOT RUN {
ilist = getANTsRData( "population" )
mask = getMask( ilist[[ 1 ]] )
imat = imageListToMatrix( ilist, mask )
demog = data.frame( id = c("A","B","C",NA),
age = c( 11, 7, 18, 22 ), sex = c("M","M","F","F") )
ibool = c( TRUE, TRUE, TRUE, FALSE )
if ( usePkg( "h5" ) ) writeNormalizedPopulationData( demog, imat, mask, ibool,
tempfile(fileext=".h5") )
# }
Run the code above in your browser using DataLab