diff --git a/app/Operations/PointOp.cpp b/app/Operations/PointOp.cpp index f18d37fd2940f09f2a0a6d0676383cc75e9fc2df..81dcaf36a966152ee82bb4b12ca48e4b662b97ae 100644 --- a/app/Operations/PointOp.cpp +++ b/app/Operations/PointOp.cpp @@ -130,6 +130,17 @@ void PointOp::operator()(const ImageWindow* currentWnd, const vector<const Image QCheckBox* colorBox = new QCheckBox(qApp->translate("PointOp", "Explode colors"), dialog); layout->addWidget(colorBox); + + //Ajout d'une checkbox permettant d'avoir le résultat en format Double + QCheckBox* DoubleRes = new QCheckBox(qApp->translate("PointOp", "Double Result"), dialog); + //Si l'image est une image double le bouton est obligatoirement coché + if(currentWnd->isDouble()){ + DoubleRes->setChecked(true); + DoubleRes->setEnabled(false); + } + layout->addWidget(DoubleRes); + + int nChannel = currentWnd->getDisplayImage()->getNbChannels(); QHBoxLayout** valueLayouts = new QHBoxLayout*[nChannel+1]; @@ -202,7 +213,7 @@ void PointOp::operator()(const ImageWindow* currentWnd, const vector<const Image return; } - bool dblResult = currentWnd->isDouble(); + bool dblResult = currentWnd->isDouble() || DoubleRes->isChecked(); if(!valueButton->isChecked()) { if(!colorBox->isChecked()) { dblResult = dblResult || (imageBoxes[0]->currentType() == MixImageListBox::DBLIMG); diff --git a/app/imageinsa_en.ts b/app/imageinsa_en.ts index 6d0fc5239857a2a99762e00a77f04c552d73e3f6..7973051404f58ff0bf91c725bb9d411fc2dfaa5d 100644 --- a/app/imageinsa_en.ts +++ b/app/imageinsa_en.ts @@ -523,8 +523,23 @@ Number of classes = %1 </translation> </message> <message> <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> - <source>Error image</source> - <translation>Error image</translation> + <source>Prediction error image</source> + <translation>Prediction error image</translation> + </message> + <message> + <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> + <source>Quantized prediction error image</source> + <translation>Quantized prediction error image</translation> + </message> + <message> + <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> + <source>Coding error image</source> + <translation>Coding error image</translation> + </message> + <message> + <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> + <source>Prediction image</source> + <translation>Prediction image</translation> </message> <message> <location filename="Operations/DPCMEncodingOp.cpp" line="63"/> @@ -1233,6 +1248,11 @@ Number of classes = %1 </translation> <source>Explode colors</source> <translation>Explode colors</translation> </message> + <message> + <location filename="Operations/PointOp.cpp" line="128"/> + <source>Double Result</source> + <translation>Double Result</translation> + </message> </context> <context> <name>PseudoColorOp</name> diff --git a/app/imageinsa_fr.ts b/app/imageinsa_fr.ts index 7df49e7d19954c5634ecb1d945562fdc8691666b..d83ccbab3e45ea9776ef212772cd7534edff112f 100644 --- a/app/imageinsa_fr.ts +++ b/app/imageinsa_fr.ts @@ -523,13 +523,18 @@ Nombre de classes = %1 </translation> </message> <message> <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> - <source>Error image</source> - <translation>Image d'erreur</translation> + <source>Prediction error image</source> + <translation>Image d'erreur de prédiction</translation> </message> <message> <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> - <source>Quantized error image</source> - <translation>Image d'erreur quantifiée</translation> + <source>Quantized prediction error image</source> + <translation>Image d'erreur de prédiction quantifiée</translation> + </message> + <message> + <location filename="Operations/DPCMEncodingOp.cpp" line="62"/> + <source>Coding error image</source> + <translation>Image d'erreur de codage</translation> </message> <message> <location filename="Operations/DPCMEncodingOp.cpp" line="63"/> @@ -1248,6 +1253,11 @@ Nombre de classes = %1 </translation> <source>Explode colors</source> <translation>Eclater les couleurs</translation> </message> + <message> + <location filename="Operations/PointOp.cpp" line="128"/> + <source>Double Result</source> + <translation>Résultat Double</translation> + </message> </context> <context> <name>PseudoColorOp</name>