Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
saveXMLheader.m File Reference

Save XML header for the HDF5 formats (for example, Fiji Big Data Viewer) More...

Functions

function result = saveXMLheader (filename, options)
 Save XML header for the HDF5 formats (for example, Fiji Big Data Viewer) More...
 

Detailed Description

Save XML header for the HDF5 formats (for example, Fiji Big Data Viewer)

Function Documentation

function result = saveXMLheader (   filename,
  options 
)

Save XML header for the HDF5 formats (for example, Fiji Big Data Viewer)

Parameters
filenamename of the file: myfile.xml
optionsa structure with parameters .Format - a string, template for storing data "bdv.hdf5", ilastik.hdf5, matlab.hdf5 .height - height of the dataset .width - width of the dataset .colors - number of colors in the dataset .depth - number of z-stacks of the dataset .time - number of time points .pixSize - a structure with pixel size of the dataset (.x .y .z .units) .lutColor - [optional], a matrix with definition of color channels [1:colorChannel, R G B], (0-1); or colors for materials of the model .ImageDescription - [optional], a string with description of the dataset .DatasetName - [optional], name of the dataset in the H5 file (not used with Big Data Viewer) .ModelMaterialNames [optional], a cell array with names of materials
Return values
result0 - fail, 1 - success
Required fields of options:

Examples:

saveXMLheader('c:\data\mydataset.xml', options); // save xml file

References struct2xml().

Referenced by menuFileSaveImageAs(), menuModelsSaveAs(), and mibchopDatasetGui>chopBtn_Callback().

Here is the call graph for this function:

Here is the caller graph for this function: