Blank image was being written to, instead return a clone of it.
This commit is contained in:
parent
09ca10947a
commit
e902e1c3da
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue