Make it more obvious when a image can be exported as a png and when not

This commit is contained in:
2021-08-23 19:16:32 +02:00
parent 5b07c96ce7
commit 0ddaa0bacd
3 changed files with 34 additions and 25 deletions

View File

@ -114,7 +114,7 @@ void MainWindow::openImage()
return;
}
if(matf.isOpened() && (!image.data || image.type() != CV_32FC1))
if(matf.isOpened() && !image.data)
{
image.release();
QMessageBox::warning(this, "Invalid file", "File selected dose not contain a valid image");