• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List

filter_resize.h

00001 /***************************************************************************
00002                           filter_resize.h  -  description
00003                              -------------------
00004     begin                : Fri Feb 1 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_RESIZE_H
00019 #define FILTER_RESIZE_H
00020 
00021 #include <odindata/filter_step.h>
00022 
00023 class FilterResize : public FilterStep {
00024 
00025   JDXint newsize[3];
00026 
00027   STD_string label() const {return "resize";}
00028   STD_string description() const {return "Spatial resize of image data";}
00029   bool process(Data<float,4>& data, Protocol& prot) const;
00030   FilterStep*  allocate() const {return new FilterResize();}
00031   void init();
00032 };
00033 
00035 
00036 class FilterResample : public FilterStep {
00037 
00038   JDXint newsize;
00039 
00040   STD_string label() const {return "resample";}
00041   STD_string description() const {return "Temporal resize of image data";}
00042   bool process(Data<float,4>& data, Protocol& prot) const;
00043   FilterStep*  allocate() const {return new FilterResample();}
00044   void init();
00045 };
00046 
00048 
00049 class FilterIsotrop : public FilterStep {
00050   JDXfloat size;
00051   STD_string label() const {return "isotrop";}
00052   STD_string description() const {return "make image voxels isotrop through interpolation (image geometry will not change)";}
00053   bool process(Data<float,4>& data, Protocol& prot) const;
00054   FilterStep*  allocate() const {return new FilterIsotrop();}
00055   void init();
00056 };
00057 
00058 #endif

Generated on Tue Dec 18 2012 15:11:14 by  doxygen 1.7.1