+
+ // Check size
+ if (!mInput1->GetImage()->HaveSameSizeAndSpacingThan(mInput2->GetImage())) {
+ std::cerr << "Sorry inputs should have the same size and spacing." << std::endl;
+ QApplication::restoreOverrideCursor();
+ QMessageBox::information(this, "Wrong images size","Sorry, could not perform operation. Please select inputs with same size and spacing.");
+ close();
+ return;
+ }
+ } else {