00001 #ifndef CVD_INCLUDE_VISION_EXCEPTIONS_H 00002 #define CVD_INCLUDE_VISION_EXCEPTIONS_H 00003 00004 #include <cvd/exceptions.h> 00005 00006 namespace CVD { 00007 00008 namespace Exceptions { 00009 00012 namespace Vision { 00015 struct All: public CVD::Exceptions::All {}; 00016 00019 struct IncompatibleImageSizes : public All { 00020 IncompatibleImageSizes(const std::string & function) 00021 { 00022 what = "Incompatible image sizes in " + function; 00023 }; 00024 }; 00025 00028 struct ImageRefNotInImage : public All { 00029 ImageRefNotInImage(const std::string & function) 00030 { 00031 what = "Input ImageRefs not in image in " + function; 00032 }; 00033 }; 00034 }; 00035 } 00036 } 00037 00038 #endif 00039