33 #ifndef RACK_IMAGE_OPS
34 #define RACK_IMAGE_OPS
39 #include <drain/imageops/ImageOp.h>
40 #include <drain/prog/CommandInstaller.h>
44 #include "resources.h"
65 void updateGeometryODIM(Hi5Tree & dstGroup,
const std::string & quantity,
drain::image::Geometry & geometry)
const;
118 "Flag. Handle intensities as physical quantities instead of storage typed values.",
"physical",
false){
154 void install(
const std::string & name = OP().getName()){
158 std::string key(name);
162 cmd.
section = getSection().index;
164 catch (
const std::exception &e) {
165 std::cerr <<
"error: ImageOpInstaller: " << name <<
'\n';
166 std::cerr <<
"error: " << e.what() <<
'\n';
static std::set< std::string > & trimWords()
Words that are moved from class name prior to composing a command name.
Definition: CommandBank.cpp:57
static void deriveCmdName(std::string &name, char prefix=0)
Given a command class name like MyFileReadCommand, derives a respective command line option ("myFileR...
Definition: CommandBank.cpp:62
static char getPrefix()
Return the character used as prefix for the commands in this section.
Definition: CommandInstaller.h:96
Combines command installation and sectioning.
Definition: CommandInstaller.h:159
Definition: CommandSections.h:54
Base class for commands: typically actions taking parameters but also plain variable assignments and ...
Definition: Command.h:54
int section
Definition: Command.h:213
A single-parameter command.
Definition: Command.h:501
Definition: Geometry.h:145
Base class for image processing functions.
Definition: ImageOp.h:49
Switch for image operators to use physical scale instead of storage typed values.
Definition: image-ops.h:113
virtual void exec() const
Run the command with current parameter values.
Definition: image-ops.h:123
bool imagePhysical
Defines if the next image processing operation uses scaled intentsites instead of raw byte values.
Definition: resources-base.h:63
Definition: image-ops.h:56
void execOp(const drain::image::ImageOp &imageOp, RackContext &ctx) const
Shared function, to minimize copies in template classes.
Definition: image-ops.cpp:154
Definition: image-ops.h:144
void install(const std::string &name=OP().getName())
Add ImageOp command to registry (CommandBank).
Definition: image-ops.h:154
ImageOpModule()
For separate commands.
Definition: image-ops.cpp:897
Resources provided separately for each thread.
Definition: resources.h:67
Designed for Rack.
Definition: image-ops.cpp:112
Definition: DataSelector.cpp:44
Definition: image-ops.h:133