00001 /*************************************************************************** 00002 filter_scale.h - description 00003 ------------------- 00004 begin : Thu Jan 31 2008 00005 copyright : (C) 2001 by Thies Jochimsen 00006 email : jochimse@cns.mpg.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef FILTER_SCALE_H 00019 #define FILTER_SCALE_H 00020 00021 #include <odindata/filter.h> 00022 00023 class FilterScale : public FilterStep { 00024 00025 JDXfloat slope; 00026 JDXfloat offset; 00027 00028 STD_string label() const {return "scale";} 00029 STD_string description() const {return "Rescale image values";} 00030 bool process(Data<float,4>& data, Protocol& prot) const; 00031 FilterStep* allocate() const {return new FilterScale();} 00032 void init(); 00033 }; 00034 00035 #endif
1.5.6