| 112 | } |
| 113 | |
| 114 | bool Add(const vector<uint8_t> &f, int height, int width) |
| 115 | { |
| 116 | int i, j; |
| 117 | for (i = 0; i < height; i++) |
| 118 | { |
| 119 | for (j = 0; j < width; j++) |
| 120 | { |
| 121 | if (f[i * width + j] != 0) |
| 122 | { |
| 123 | if (!Push(i, j, 0)) |
| 124 | return false; |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | return true; |
| 129 | } |
| 130 | |
| 131 | bool Push(int i, int j, float T) |
| 132 | { |