Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 6ce8d9f8 authored by saubatn's avatar saubatn
Browse files

FEATURE 193 Properties updated.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1621 ec899d31-69d1-42ba-9299-647d76f65fb3
parent a5a3916f
......@@ -22,13 +22,18 @@
*
* $CAMITK_LICENCE_END$
****************************************************************************/
// CamiTK includes
#include "SobelEdgeDetection.h"
#include <Application.h>
#include <ItkProgressObserver.h>
#include <Property.h>
// Qt includes
#include <QMessageBox>
#include <QString>
#include <QTextStream>
// Itk includes
#include <itkImageToVTKImageFilter.h>
#include <itkVTKImageToImageFilter.h>
#include <itkCastImageFilter.h>
......@@ -53,8 +58,8 @@ SobelEdgeDetection::SobelEdgeDetection(ActionExtension * extension) : Action(ext
this->addTag("Edge Detection");
this->addTag("Contours");
setProperty("keepOriginalImageVoxelType", QVariant(true));
keepOrgVoxelType = true;
Property* keepOrgVoxelTypeProperty = new Property(tr("Keep original voxel type?"), true, tr("Does the output image have the same voxel type as the input one?"), "");
addParameter(keepOrgVoxelTypeProperty);
}
// --------------- destructor -------------------
......@@ -71,7 +76,7 @@ Action::ApplyStatus SobelEdgeDetection::apply() {
}
void SobelEdgeDetection::process(ImageComponent * comp) {
keepOrgVoxelType = property("keepOriginalImageVoxelType").toBool();
this->keepOrgVoxelType = property("Keep original voxel type?").toBool();
// ITK filter implementation using templates
vtkSmartPointer<vtkImageData> inputImage = comp->getImageData();
vtkSmartPointer<vtkImageData> outputImage = implementProcess (inputImage);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment