The catch block (see below) in QmitkOtsuTool3DGUI::OnPreviewBtnClicked is not reached when an exception (eg. mitkThrow()) happens OtsuTool3D::DoUpdatePreview method.
... tool->UpdatePreview(); } catch (...) { MITK_INFO << "In QmitkOtsuTool3DGUI catch"; this->setCursor(Qt::ArrowCursor); QMessageBox *messageBox = new QMessageBox(QMessageBox::Critical, nullptr, "itkOtsuFilter error: image dimension must be in {2, 3} and no RGB images can be handled."); messageBox->exec(); delete messageBox; return; }
Is this expected behavior or happened in course of time while modifying the base tool api classes (eg. SegWithPreviewTool)?
If so, this "bug" could exist in GrowCut, nnUnet & upcoming MonaiLabel, as well.