00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef FILTER_RESLICE_H
00013 #define FILTER_RESLICE_H
00014
00015 #include <odindata/filter.h>
00016
00017 class FilterReSlice : public FilterStep
00018 {
00019 JDXenum orient;
00020 STD_string label() const {return "reslice";}
00021 STD_string description() const {return "reslices the image to a given orientation";}
00022 bool process(Data<float,4>& data, Protocol& prot)const;
00023 FilterStep* allocate() const {return new FilterReSlice();}
00024 void init();
00025 };
00026
00028
00029 class FilterSwapdim : public FilterStep
00030 {
00031 JDXstring newread,newphase,newslice;
00032
00033 STD_string label() const {return "swapdim";}
00034 STD_string description() const {return "swap/reflect dimensions by specifying a direction triple with optional reflection sign appended";}
00035 bool process(Data<float,4>& data, Protocol& prot)const;
00036 FilterStep* allocate() const {return new FilterSwapdim();}
00037 static bool selChannel(STD_string name, direction &dir, int& sign);
00038 void init();
00039 };
00040
00041 #endif