Debian Codegraph @

cvd/vision_exceptions.h

raw symbols SCIP
1 #ifndef CVD_INCLUDE_VISION_EXCEPTIONS_H
2 #define CVD_INCLUDE_VISION_EXCEPTIONS_H
3
4 #include <cvd/exceptions.h>
5 #include <string>
6
7 namespace CVD
8 {
9
10 namespace Exceptions
11 {
12
13 /// %Exceptions specific to vision algorithms
14 /// @ingroup gException
15 namespace Vision
16 {
17 /// Base class for all Image_IO exceptions
18 /// @ingroup gException
19 struct All : public CVD::Exceptions::All
20 {
21 using CVD::Exceptions::All::All;
22 };
23
24 /// Input images have incompatible dimensions
25 /// @ingroup gException
26 struct IncompatibleImageSizes : public All
27 {
28 IncompatibleImageSizes(const std::string& function)
29 : All("Incompatible image sizes in " + function) {};
30 };
31
32 /// Input ImageRef not within image dimensions
33 /// @ingroup gException
34 struct ImageRefNotInImage : public All
35 {
36 ImageRefNotInImage(const std::string& function)
37 : All("Input ImageRefs not in image in " + function) {};
38 };
39
40 struct BadInput : public All
41 {
42 BadInput(const std::string& function)
43 : All("Bad input in " + function) {};
44 };
45 };
46 }
47 }
48
49 #endif