/tags/rel-0-1-2/FreeSpeech/video_blocks/include/Threshold.h

# · C++ Header · 46 lines · 17 code · 13 blank · 16 comment · 0 complexity · 32f8d87ada99f624fef7154f01c45b0e MD5 · raw file

  1. // Copyright (C) 2000 Dominic Letourneau (doumdi@yahoo.com)
  2. //
  3. // This program is free software; you can redistribute it and/or modify
  4. // it under the terms of the GNU General Public License as published by
  5. // the Free Software Foundation; either version 2, or (at your option)
  6. // any later version.
  7. //
  8. // This program is distributed in the hope that it will be useful, but
  9. // WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. // General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this file. If not, write to the Free Software Foundation,
  15. // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. #ifndef _THRESHOLD_H
  17. #define _THRESHOLD_H
  18. #include "Node.h"
  19. #include "GreyScale8Image.h"
  20. class Threshold : public Node
  21. {
  22. public:
  23. Threshold(string nodeName, ParameterSet params);
  24. virtual ~Threshold();
  25. virtual ObjectRef getOutput(int output_id, int count);
  26. private:
  27. int m_IMAGE1_ID;
  28. int m_THRESHOLD_ID;
  29. ObjectRef m_output;
  30. // Default constructor, should not be used
  31. Threshold() {throw(GeneralException("Threshold default constructor should not be called",__FILE__,__LINE__));}
  32. };
  33. #endif