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 ome::compat::shared_ptr<std::istream>
in;
243 initFile(
const boost::filesystem::path&
id);
253 isUsedFile(
const boost::filesystem::path& file);
271 readPlane(std::istream& source,
296 readPlane(std::istream& source,
314 ome::compat::shared_ptr< ::ome::xml::meta::MetadataStore>
315 makeFilterMetadata();
328 coremetadata_list_type::value_type cm(core.at(index));
330 throw std::logic_error(
"CoreMetadata null");
345 coremetadata_list_type::value_type cm(core.at(index));
347 throw std::logic_error(
"CoreMetadata null");
353 const std::set<MetadataOptions::MetadataLevel>&
354 getSupportedMetadataLevels();
362 getMetadataOptions()
const;
365 getMetadataOptions();
369 getGlobalMetadata()
const;
373 getMetadataValue(
const std::string& field)
const;
377 getSeriesMetadata()
const;
385 isThisType(
const boost::filesystem::path&
name,
386 bool open =
true)
const;
390 isThisType(
const uint8_t *begin,
391 std::size_t length)
const;
395 isThisType(
const uint8_t *begin,
396 const uint8_t *end)
const;
400 isThisType(std::istream& stream)
const;
417 isFilenameThisTypeImpl(
const boost::filesystem::path& name)
const;
433 isStreamThisTypeImpl(std::istream& stream)
const;
438 getImageCount()
const;
466 getPixelType()
const;
470 getBitsPerPixel()
const;
474 getEffectiveSizeC()
const;
486 isFalseColor()
const;
524 ome::compat::array<dimension_size_type, 2>
525 getThumbSize()
const;
530 getThumbSizeX()
const;
534 getThumbSizeY()
const;
538 isLittleEndian()
const;
542 getDimensionOrder()
const;
546 isOrderCertain()
const;
550 isThumbnailSeries()
const;
554 isInterleaved()
const;
595 close(
bool fileOnly =
false);
599 getSeriesCount()
const;
619 setGroupFiles(
bool group);
623 isGroupFiles()
const;
627 fileGroupOption(
const std::string&
id);
631 isMetadataComplete()
const;
635 setNormalized(
bool normalize);
639 isNormalized()
const;
643 setOriginalMetadataPopulated(
bool populate);
647 isOriginalMetadataPopulated()
const;
650 const std::vector<boost::filesystem::path>
651 getUsedFiles(
bool noPixels =
false)
const;
654 const std::vector<boost::filesystem::path>
655 getSeriesUsedFiles(
bool noPixels =
false)
const;
658 std::vector<FileInfo>
659 getAdvancedUsedFiles(
bool noPixels =
false)
const;
662 std::vector<FileInfo>
663 getAdvancedSeriesUsedFiles(
bool noPixels =
false)
const;
666 const boost::optional<boost::filesystem::path>&
667 getCurrentFile()
const;
685 ome::compat::array<dimension_size_type, 3>
689 ome::compat::array<dimension_size_type, 6>
693 const std::vector<ome::compat::shared_ptr< ::ome::files::CoreMetadata> >&
694 getCoreMetadataList()
const;
698 setMetadataFiltered(
bool filter);
702 isMetadataFiltered()
const;
706 setMetadataStore(ome::compat::shared_ptr< ::ome::xml::meta::MetadataStore>& store);
709 const ome::compat::shared_ptr< ::ome::xml::meta::MetadataStore>&
710 getMetadataStore()
const;
713 ome::compat::shared_ptr< ::ome::xml::meta::MetadataStore>&
717 std::vector<ome::compat::shared_ptr< ::ome::files::FormatReader> >
718 getUnderlyingReaders()
const;
722 isSingleFile(
const boost::filesystem::path&
id)
const;
726 getRequiredDirectories(
const std::vector<std::string>& files)
const;
730 getDatasetStructureDescription()
const;
733 const std::vector<std::string>&
734 getPossibleDomains(
const std::string&
id)
const;
738 hasCompanionFiles()
const;
741 const std::vector<std::string>&
754 getOptimalTileWidth()
const;
758 getOptimalTileHeight()
const;
770 getCoreIndex()
const;
778 getResolutionCount()
const;
786 getResolution()
const;
790 hasFlattenedResolutions()
const;
794 setFlattenedResolutions(
bool flatten);
798 setId(
const boost::filesystem::path&
id);
806 getFormatDescription()
const;
809 const std::vector<boost::filesystem::path>&
813 const std::vector<boost::filesystem::path>&
814 getCompressionSuffixes()
const;
821 #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:62
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:59
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
ome::compat::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::string description
Format description.
Definition: FormatReader.h:69
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:57
ReaderProperties(const std::string &name, const std::string &description)
Constructor.
Definition: FormatReader.h:83
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:75