Skip to content

Commit 6789535

Browse files
committed
...
1 parent 350292c commit 6789535

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

imageproc/threatimage.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ cv::Mat ThreatImage::contrast(const cv::Mat& image, double contrast, double brig
183183
return result;
184184
}
185185

186-
void ThreatImage::drawWatermark(cv::Mat image, const std::string& date) {
186+
void ThreatImage::drawWatermark(cv::Mat image, const std::string& date, const std::string& satelliteName) {
187187
int x = 0;
188188
int y = 0;
189189
Settings& settings = Settings::getInstance();
@@ -199,6 +199,7 @@ void ThreatImage::drawWatermark(cv::Mat image, const std::string& date) {
199199
}
200200

201201
replaceAll(watermarkText, "%date%", date);
202+
replaceAll(watermarkText, "%sat%", satelliteName);
202203
replaceAll(watermarkText, "%version%", versionStr);
203204
replaceAll(watermarkText, "\\n", "\n");
204205

imageproc/threatimage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ThreatImage {
2121

2222
// Constrast 0.0-inf, brightnes -225 to 255
2323
static cv::Mat contrast(const cv::Mat& image, double contrast, double brightness);
24-
static void drawWatermark(cv::Mat image, const std::string& date);
24+
static void drawWatermark(cv::Mat image, const std::string& date, const std::string& satelliteName);
2525
static bool isNightPass(const cv::Mat& image, float treshold);
2626

2727
private:

0 commit comments

Comments
 (0)