00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef FILTER_MASK_H
00019 #define FILTER_MASK_H
00020
00021 #include <odindata/filter.h>
00022
00023 class FilterGenMask : public FilterStep {
00024
00025 JDXfloat min;
00026 JDXfloat max;
00027
00028
00029 STD_string label() const {return "genmask";}
00030 STD_string description() const {return "Create mask including all voxels with value in given range";}
00031 bool process(Data<float,4>& data, Protocol& prot) const;
00032 FilterStep* allocate() const {return new FilterGenMask();}
00033 void init();
00034 };
00035
00036
00038
00039 class FilterUseMask : public FilterStep {
00040
00041 JDXfileName fname;
00042
00043 STD_string label() const {return "usemask";}
00044 STD_string description() const {return "Create 1D dataset using mask from file";}
00045 bool process(Data<float,4>& data, Protocol& prot) const;
00046 FilterStep* allocate() const {return new FilterUseMask();}
00047 void init();
00048 };
00049
00050 #endif