X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvDeformationDialog.cxx;h=364db040e5033606eef91d8296a1b62322b06b2a;hb=90cfdf0b32d3e867e6df248d8c4b410ffdd4c354;hp=5dda22d62ebc5cfe281820cf1349a46d42c9a087;hpb=931a42358442f4ee4f314613c991c838d4b4e3b7;p=clitk.git diff --git a/vv/vvDeformationDialog.cxx b/vv/vvDeformationDialog.cxx index 5dda22d..364db04 100644 --- a/vv/vvDeformationDialog.cxx +++ b/vv/vvDeformationDialog.cxx @@ -87,12 +87,12 @@ void vvDeformationDialog::resetSlider(int slicer_index) void vvDeformationDialog::computeDeformationField() { vvImage::Pointer sequence=mSlicerManagers[inputSequenceBox->currentIndex()]->GetSlicer(0)->GetImage(); vtkImageData * first_image = sequence->GetVTKImages()[0]; - if (not sequence->IsTimeSequence()) + if (!sequence->IsTimeSequence()) { this->setResult(QDialog::Rejected); QMessageBox::warning(this,tr("Image type error"), tr("Deformable image registration only makes sense on time sequences.")); } - else if ((first_image->GetSpacing()[0] != first_image->GetSpacing()[1]) or (first_image->GetSpacing()[0] != first_image->GetSpacing()[2])) + else if ((first_image->GetSpacing()[0] != first_image->GetSpacing()[1]) || (first_image->GetSpacing()[0] != first_image->GetSpacing()[2])) { this->setResult(QDialog::Rejected); QMessageBox::warning(this,tr("Image type error"), tr("Deformable registration only works well with isotropic voxels. Please resample the image.")); @@ -123,7 +123,7 @@ void vvDeformationDialog::computeDeformationField() { registrator.start(); while (!registrator.isFinished()) { - if (progress.wasCanceled() and not aborted) + if (progress.wasCanceled() && !aborted) { this->setResult(QDialog::Rejected); registrator.abort(); @@ -136,7 +136,7 @@ void vvDeformationDialog::computeDeformationField() { qApp->processEvents(); registrator.wait(50); } - if (not aborted) + if (!aborted) { mOutput=registrator.getOutput(); }