Make it more obvious when a image can be exported as a png and when not
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user