Commit 6f2dd0bf0ad9d370a7ffc87af8368ae4b38310fc

Authored by Scott Klum
1 parent ecd876e9

Remove mask if cropfrommask fails

openbr/plugins/imgproc/cropfrommask.cpp
@@ -64,6 +64,7 @@ private: @@ -64,6 +64,7 @@ private:
64 64
65 dst.m() = Mat(src.m(), Rect(top, left, bottom - top + 1, right - left + 1)); 65 dst.m() = Mat(src.m(), Rect(top, left, bottom - top + 1, right - left + 1));
66 } else { 66 } else {
  67 + dst.file.remove("Mask");
67 dst.file.fte = true; 68 dst.file.fte = true;
68 } 69 }
69 } 70 }