32 #ifndef RACK_FILE_IO_READ
33 #define RACK_FILE_IO_READ
36 #include <drain/prog/CommandInstaller.h>
37 #include <hi5/Hi5Read.h>
41 #include "resources.h"
77 getContext<RackContext>().inputPrefix = value;
96 "filename",
"",
"<filename>.[h5|hdf5|png|pgm|ppm|txt]"){
108 void readFileH5(
const std::string & fullFilename)
const;
112 void appendCartesianH5(Hi5Tree & tmpSrc, Hi5Tree & dst)
const;
118 typedef std::map<std::string, ODIMPathElem> quantity_map;
120 void updateData(Hi5Tree & srcData,
const std::string & srcKey, Hi5Tree & dstDataSet,
const quantity_map & dstQuantityElems)
const ;
124 void updateQuality(Hi5Tree & srcData, Hi5Tree & dstData)
const;
127 void readTextFile(
const std::string & fullFilename)
const;
136 odim.setGeometry(g.getWidth(), g.getHeight());
137 odim.type = drain::Type::getTypeChar(srcImage.
getType());
140 if (odim.scaling.scale == 0){
141 if (!odim.quantity.empty())
168 getContext<RackContext>().inputSelect = value;
A single-parameter command.
Definition: Command.h:501
Definition: Geometry.h:145
FlexVariableMap properties
Container for user-defined KEY=VALUE metadata.
Definition: ImageFrame.h:369
const std::type_info & getType() const
Get the storage type.
Definition: ImageLike.h:100
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
bool setQuantityDefaults(EncodingODIM &dst, const std::string &quantity, const std::string &values="") const
Sets default values of given quantity - but not the quantity itself. Optionally overrides with user v...
Definition: QuantityMap.cpp:398
Definition: DataSelector.cpp:44