Skip to content
Updated Metadata (markdown) authored by Anonymous's avatar Anonymous
......@@ -8,12 +8,25 @@ There are three sets of metadata necessary for the ND2reader to work correctly:
* ``experiment`` - e.g. number and type of acquisitions
* ``metadata`` - e.g. channel information including name
This data is imported into the ND2reader object when a file is opened. However, to inspect the data yourself, you can use the method ``readMetadata``:
``` matlab
attrib = readMetadata(obj, 'attributes'); %Returns metadata in a JSON string
attrib = jsondecode(attrib); %Convert JSON to struct
```
## File attributes
The file attributes contain information necessary to initialize pointers to the picture. The attributes contains the following fields:
* ```bitsPerComponentInMemory`` - Number of bits to hold each component (channel)
* ```bitsPerComponentInMemory`` - Number of bits to hold each component (channel)
* ```bitsPerComponentInMemory`` - Number of bits to hold each component (channel)
* ```bitsPerComponentInMemory`` - Number of bits to hold each component (channel)
* ```bitsPerComponentInMemory`` - Number of bits to hold each component (channel)
* ```bitsPerComponentInMemory`` - Number of bits to hold each component (channel)
## Translating coordinates to sequence index
Specific images in the ND2 file are referred to using their _sequence index_, which is an unsigned integer.
## Experiment metadata
......
......