40 #include <boost/filesystem/path.hpp>    44 #include <ome/files/FormatReader.h>    45 #include <ome/files/MetadataMap.h>    46 #include <ome/files/Types.h>    48 #include <ome/xml/meta/Metadata.h>    49 #include <ome/xml/meta/MetadataRoot.h>    50 #include <ome/xml/meta/OMEXMLMetadata.h>    52 #include <ome/xml/model/enums/DimensionOrder.h>    54 #ifndef OME_FILES_METADATATOOLS_H    55 #define OME_FILES_METADATATOOLS_H   127     std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
   136     std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
   145     std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
   154     std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
   165     std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
   167                          bool                doPlane = 
false,
   168                          bool                doImageName = 
true);
   177     std::shared_ptr<::ome::xml::meta::MetadataRoot>
   188     std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
   189     getOMEXMLMetadata(std::shared_ptr<::ome::xml::meta::MetadataRetrieve>& retrieve);
   204               bool                              validate = 
true);
   245                  const FormatReader&              reader,
   246                  bool                             doPlane = 
false,
   247                  bool                             doImageName = 
true);
   260                  const std::vector<std::shared_ptr<CoreMetadata>> seriesList,
   261                  bool                                             doPlane = 
false);
   273                   const FormatReader&              reader);
   285                const FormatReader&              reader);
   298                const CoreMetadata&              seriesMetadata,
   313                     bool                              resolve = 
true);
   357     getModulo(const ::ome::xml::meta::OMEXMLMetadata& omexml,
   358               const std::string&                      tag,
   418                          const MetadataMap&                metadata);
   493                            const boost::filesystem::path&   
id);
   522     pixelSize(const ::ome::xml::meta::MetadataRetrieve& meta,
   535     pixelSize(const ::ome::xml::meta::MetadataRetrieve& meta);
   567 #endif // OME_FILES_METADATATOOLS_H bool defaultCreationDateEnabled()
Check if default creation date is enabled. 
Definition: MetadataTools.cpp:1188
bool validateModel(::ome::xml::meta::Metadata &meta, bool correct)
Validate a metadata store. 
Definition: MetadataTools.cpp:396
std::size_t dimension_size_type
Size type for image dimensions. 
Definition: Types.h:58
uint64_t storage_size_type
Size type for storage size. 
Definition: Types.h:64
std::string getOMEXML(::ome::xml::meta::OMEXMLMetadata &omexml, bool validate)
Get OME-XML document from OME-XML metadata. 
Definition: MetadataTools.cpp:378
void fillOriginalMetadata(::ome::xml::meta::OMEXMLMetadata &omexml, const MetadataMap &metadata)
Create OriginalMetadataAnnotations from MetadataMap. 
Definition: MetadataTools.cpp:1041
void removeBinData(::ome::xml::meta::OMEXMLMetadata &omexml)
Remove all BinData elements from OME-XML metadata. 
Definition: MetadataTools.cpp:872
void removeChannels(::ome::xml::meta::OMEXMLMetadata &omexml, dimension_size_type image, dimension_size_type sizeC)
Remove all but the specified number of valid Channel elements from OME-XML metadata. 
Definition: MetadataTools.cpp:932
void fillPixels(::ome::xml::meta::MetadataStore &store, const FormatReader &reader)
Fill an OME-XML metadata store Pixels element from reader core metadata. 
Definition: MetadataTools.cpp:642
Modulo getModuloAlongT(const ::ome::xml::meta::OMEXMLMetadata &omexml, dimension_size_type image)
Get ModuloAlongT annotation from OME-XML metadata. 
Definition: MetadataTools.cpp:737
std::string createID(std::string const &type, dimension_size_type idx)
Create an object identifier for a given object type and index. 
Definition: MetadataTools.cpp:178
std::shared_ptr<::ome::xml::meta::OMEXMLMetadata > createOMEXMLMetadata(ome::common::xml::dom::Document &document)
Create OME-XML metadata from DOM Document. 
Definition: MetadataTools.cpp:224
std::shared_ptr<::ome::xml::meta::MetadataRoot > createOMEXMLRoot(const std::string &document)
Create OME-XML metadata root from XML document. 
Definition: MetadataTools.cpp:347
void addMetadataOnly(::ome::xml::meta::OMEXMLMetadata &omexml, dimension_size_type series, bool resolve)
Add a MetadataOnly element to Pixels for the specified series. 
Definition: MetadataTools.cpp:706
Modulo getModuloAlongC(const ::ome::xml::meta::OMEXMLMetadata &omexml, dimension_size_type image)
Get ModuloAlongC annotation from OME-XML metadata. 
Definition: MetadataTools.cpp:744
storage_size_type significantPixelSize(const ::ome::xml::meta::MetadataRetrieve &meta, dimension_size_type series)
Get the total significant size of pixel data in a series. 
Definition: MetadataTools.cpp:1275
Open Microscopy Environment C++. 
void setDefaultCreationDate(::ome::xml::meta::MetadataStore &store, dimension_size_type series, const boost::filesystem::path &id)
Set the creation data for a series. 
Definition: MetadataTools.cpp:1200
std::shared_ptr<::ome::xml::meta::OMEXMLMetadata > getOMEXMLMetadata(std::shared_ptr<::ome::xml::meta::MetadataRetrieve > &retrieve)
Get OME-XML metadata from metadata. 
Definition: MetadataTools.cpp:356
std::string transformToLatestModelVersion(const std::string &document)
Transform an OME-XML document to the latest model version. 
Definition: MetadataTools.cpp:1175
bool validateOMEXML(const std::string &document)
Validate an OME-XML document. 
Definition: MetadataTools.cpp:390
MetadataMap getOriginalMetadata(::ome::xml::meta::OMEXMLMetadata &omexml)
Get original metadata from OME-XML metadata StructuredAnnotations. 
Definition: MetadataTools.cpp:959
void verifyMinimum(::ome::xml::meta::MetadataRetrieve &retrieve, dimension_size_type series)
Verify correctness of minimal amount of metadata in a series. 
Definition: MetadataTools.cpp:824
Modulo getModulo(const ::ome::xml::meta::OMEXMLMetadata &omexml, const std::string &tag, dimension_size_type image)
Get Modulo annotation from OME-XML metadata. 
Definition: MetadataTools.cpp:751
Modulo getModuloAlongZ(const ::ome::xml::meta::OMEXMLMetadata &omexml, dimension_size_type image)
Get ModuloAlongZ annotation from OME-XML metadata. 
Definition: MetadataTools.cpp:730
void fillMetadata(::ome::xml::meta::MetadataStore &store, const FormatReader &reader, bool doPlane, bool doImageName)
Fill OME-XML metadata store from reader core metadata. 
Definition: MetadataTools.cpp:515
ome::xml::model::enums::DimensionOrder createDimensionOrder(const std::string &order)
Create a valid DimensionOrder from string. 
Definition: MetadataTools.cpp:1214
storage_size_type pixelSize(const ::ome::xml::meta::MetadataRetrieve &meta, dimension_size_type series)
Get the total size of pixel data in a series. 
Definition: MetadataTools.cpp:1240
void removeTiffData(::ome::xml::meta::OMEXMLMetadata &omexml)
Remove all TiffData elements from OME-XML metadata. 
Definition: MetadataTools.cpp:901
void fillAllPixels(::ome::xml::meta::MetadataStore &store, const FormatReader &reader)
Fill all OME-XML metadata store Pixels elements from reader core metadata. 
Definition: MetadataTools.cpp:629
std::string getModelVersion()
Get the currently-supported OME Data Model version. 
Definition: MetadataTools.cpp:1096