Blank image was being written to, instead return a clone of it.

This commit is contained in:
Matt McWilliams 2024-05-14 19:31:20 -04:00
parent 09ca10947a
commit e902e1c3da
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Mat Image::getBlank () {
if (blank.empty()) {
blank = Mat::zeros(height, width, CV_8UC3);
}
return blank;
return blank.clone();
}
Mat Image::loadImage (string& image_path, uint64_t& x, uint64_t& y, uint64_t& w, uint64_t& h) {