| 121 | } |
| 122 | |
| 123 | void IntensityMap::invert() { |
| 124 | #pragma omp parallel for |
| 125 | for(int y = 0; y < this->getHeight(); y++) { |
| 126 | for(int x = 0; x < this->getWidth(); x++) { |
| 127 | const double inverted = 1.0 - this->map.at(y).at(x); |
| 128 | this->map.at(y).at(x) = inverted; |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | QImage IntensityMap::convertToQImage() const { |
| 134 | QImage result(this->getWidth(), this->getHeight(), QImage::Format_ARGB32); |
no test coverage detected