38 #ifndef OME_FILES_DETAIL_FORMATREADER_H 39 #define OME_FILES_DETAIL_FORMATREADER_H 45 #include <ome/files/FormatReader.h> 46 #include <ome/files/FormatHandler.h> 84 const std::string& description):
86 description(description),
88 compression_suffixes(),
91 compression_suffixes.push_back(boost::filesystem::path(
""));
121 std::shared_ptr<std::istream>
in;
242 initFile(
const boost::filesystem::path&
id);
252 isUsedFile(
const boost::filesystem::path& file);
270 readPlane(std::istream& source,
295 readPlane(std::istream& source,
313 std::shared_ptr<::ome::xml::meta::MetadataStore>
314 makeFilterMetadata();
327 coremetadata_list_type::value_type cm(core.at(index));
329 throw std::logic_error(
"CoreMetadata null");
344 coremetadata_list_type::value_type cm(core.at(index));
346 throw std::logic_error(
"CoreMetadata null");
352 const std::set<MetadataOptions::MetadataLevel>&
353 getSupportedMetadataLevels();
361 getMetadataOptions()
const;
364 getMetadataOptions();
368 getGlobalMetadata()
const;
372 getMetadataValue(
const std::string& field)
const;
376 getSeriesMetadata()
const;
384 isThisType(
const boost::filesystem::path&
name,
385 bool open =
true)
const;
389 isThisType(
const uint8_t *begin,
390 std::size_t length)
const;
394 isThisType(
const uint8_t *begin,
395 const uint8_t *end)
const;
399 isThisType(std::istream& stream)
const;
416 isFilenameThisTypeImpl(
const boost::filesystem::path& name)
const;
432 isStreamThisTypeImpl(std::istream& stream)
const;
437 getImageCount()
const;
465 getPixelType()
const;
469 getBitsPerPixel()
const;
473 getEffectiveSizeC()
const;
485 isFalseColor()
const;
523 std::array<dimension_size_type, 2>
524 getThumbSize()
const;
529 getThumbSizeX()
const;
533 getThumbSizeY()
const;
537 isLittleEndian()
const;
541 getDimensionOrder()
const;
545 isOrderCertain()
const;
549 isThumbnailSeries()
const;
553 isInterleaved()
const;
594 close(
bool fileOnly =
false);
598 getSeriesCount()
const;
618 setGroupFiles(
bool group);
622 isGroupFiles()
const;
626 fileGroupOption(
const std::string&
id);
630 isMetadataComplete()
const;
634 setNormalized(
bool normalize);
638 isNormalized()
const;
642 setOriginalMetadataPopulated(
bool populate);
646 isOriginalMetadataPopulated()
const;
649 const std::vector<boost::filesystem::path>
650 getUsedFiles(
bool noPixels =
false)
const;
653 const std::vector<boost::filesystem::path>
654 getSeriesUsedFiles(
bool noPixels =
false)
const;
657 std::vector<FileInfo>
658 getAdvancedUsedFiles(
bool noPixels =
false)
const;
661 std::vector<FileInfo>
662 getAdvancedSeriesUsedFiles(
bool noPixels =
false)
const;
665 const boost::optional<boost::filesystem::path>&
666 getCurrentFile()
const;
684 std::array<dimension_size_type, 3>
688 std::array<dimension_size_type, 6>
692 const std::vector<std::shared_ptr<::ome::files::CoreMetadata>>&
693 getCoreMetadataList()
const;
697 setMetadataFiltered(
bool filter);
701 isMetadataFiltered()
const;
705 setMetadataStore(std::shared_ptr<::ome::xml::meta::MetadataStore>& store);
708 const std::shared_ptr<::ome::xml::meta::MetadataStore>&
709 getMetadataStore()
const;
712 std::shared_ptr<::ome::xml::meta::MetadataStore>&
716 std::vector<std::shared_ptr<::ome::files::FormatReader>>
717 getUnderlyingReaders()
const;
721 isSingleFile(
const boost::filesystem::path&
id)
const;
725 getRequiredDirectories(
const std::vector<std::string>& files)
const;
729 getDatasetStructureDescription()
const;
732 const std::vector<std::string>&
733 getPossibleDomains(
const std::string&
id)
const;
737 hasCompanionFiles()
const;
740 const std::vector<std::string>&
753 getOptimalTileWidth()
const;
757 getOptimalTileHeight()
const;
769 getCoreIndex()
const;
777 getResolutionCount()
const;
785 getResolution()
const;
789 hasFlattenedResolutions()
const;
793 setFlattenedResolutions(
bool flatten);
797 setId(
const boost::filesystem::path&
id);
805 getFormatDescription()
const;
808 const std::vector<boost::filesystem::path>&
812 const std::vector<boost::filesystem::path>&
813 getCompressionSuffixes()
const;
820 #endif // OME_FILES_DETAIL_FORMATREADER_H
Properties specific to a particular reader.
Definition: FormatReader.h:64
uint32_t pixel_size_type
Size type for pixel bit depths.
Definition: Types.h:61
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:58
std::set< MetadataOptions::MetadataLevel > metadata_levels
Supported metadata levels. A typical default is {METADATA_MINIMUM,METADATA_NO_OVERLAYS,METADATA_ALL}.
Definition: FormatReader.h:75
dimension_size_type getIndex(const std::string &order, dimension_size_type zSize, dimension_size_type cSize, dimension_size_type tSize, dimension_size_type num, dimension_size_type z, dimension_size_type c, dimension_size_type t)
Get the rasterized index corresponding to the given Z, C and T coordinates (real sizes).
Definition: FormatTools.cpp:365
std::vector< boost::filesystem::path > suffixes
Filename suffixes this format can handle.
Definition: FormatReader.h:71
std::string name
Format name.
Definition: FormatReader.h:67
Open Microscopy Environment C++.
std::string description
Format description.
Definition: FormatReader.h:69
std::array< dimension_size_type, 3 > getZCTCoords(const std::string &order, dimension_size_type zSize, dimension_size_type cSize, dimension_size_type tSize, dimension_size_type num, dimension_size_type index)
Get the Z, C and T coordinates (real sizes) corresponding to the given rasterized index value...
Definition: FormatTools.cpp:422
std::vector< boost::filesystem::path > compression_suffixes
Filename compression suffixes this format can handle.
Definition: FormatReader.h:73
A subdimension of Z, C, or T.
Definition: Modulo.h:56
ReaderProperties(const std::string &name, const std::string &description)
Constructor.
Definition: FormatReader.h:83
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:78