ODIN
filter_reslice.h
1 //
2 // C++ Interface: filter_reslice
3 //
4 // Description:
5 //
6 //
7 // Author: <>, (C) 2008
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef FILTER_RESLICE_H
13 #define FILTER_RESLICE_H
14 
15 #include <odindata/filter_step.h>
16 
17 class FilterReSlice : public FilterStep
18 {
19  LDRenum orient;
20  STD_string label() const {return "reslice";}
21  STD_string description() const {return "reslices the image to a given orientation";}
22  bool process(Data<float,4>& data, Protocol& prot)const;
23  FilterStep* allocate() const {return new FilterReSlice();}
24  void init();
25 };
26 
28 
29 class FilterSwapdim : public FilterStep
30 {
31  LDRstring newread,newphase,newslice;
32 
33  STD_string label() const {return "swapdim";}
34  STD_string description() const {return "swap/reflect/transpose dimensions by specifying a direction triple with optional reflection sign appended";}
35  bool process(Data<float,4>& data, Protocol& prot)const;
36  FilterStep* allocate() const {return new FilterSwapdim();}
37  static bool selChannel(STD_string name, direction &dir, int& sign);
38  void init();
39 };
40 
41 #endif
virtual bool process(Data< float, 4 > &data, Protocol &prot) const
Protocol proxy.
Definition: protocol.h:33
virtual FilterStep * allocate() const=0
virtual STD_string description() const=0
virtual void init()=0
virtual STD_string label() const=0
direction
Definition: odinpara.h:41