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 4cc9981e authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED Insert space padding around operators



Result after adding the --pad-oper option to astyle
Signed-off-by: Emmanuel Promayon's avatarEmmanuel Promayon <Emmanuel.Promayon@imag.fr>
parent d9efa697
......@@ -102,7 +102,7 @@ AnisotropicDiffusion::AnisoDiffType AnisotropicDiffusion::getDiffusionType() {
// --------------- apply -------------------
Action::ApplyStatus AnisotropicDiffusion::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -84,7 +84,7 @@ CannyEdgeDetection::~CannyEdgeDetection() {
// --------------- apply -------------------
Action::ApplyStatus CannyEdgeDetection::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -69,7 +69,7 @@ void ConnectedComponents::setNbConnectedComponents(const int nbConnectedComponen
// --------------- apply -------------------
Action::ApplyStatus ConnectedComponents::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -98,7 +98,7 @@ Derivative::~Derivative() {
// --------------- apply -------------------
Action::ApplyStatus Derivative::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
this->process(input);
}
......
......@@ -92,7 +92,7 @@ GaussianFilter::GaussianType GaussianFilter::getType() {
// --------------- apply -------------------
Action::ApplyStatus GaussianFilter::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -58,7 +58,7 @@ GradientMagnitude::~GradientMagnitude() {
// --------------- apply -------------------
Action::ApplyStatus GradientMagnitude::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -65,7 +65,7 @@ GradientMagnitudeRecursiveGaussian::GradientMagnitudeRecursiveGaussian(ActionExt
this->addTag("Smoothing");
// Setting parameters default values
Property* standardDeviationProperty = new Property(tr("Standard deviation"), 3.0 ,tr("The standard deviation <i>(sigma)</i> is used as a parameter of the Gaussian convolution kernel. \nThe higher the deviation is, the blurer the resulting image will be."), "");
Property* standardDeviationProperty = new Property(tr("Standard deviation"), 3.0 , tr("The standard deviation <i>(sigma)</i> is used as a parameter of the Gaussian convolution kernel. \nThe higher the deviation is, the blurer the resulting image will be."), "");
standardDeviationProperty->setAttribute("minimum", 0);
standardDeviationProperty->setAttribute("maximum", 100);
standardDeviationProperty->setAttribute("singleStep", 0.1);
......@@ -79,7 +79,7 @@ GradientMagnitudeRecursiveGaussian::~GradientMagnitudeRecursiveGaussian() {
// --------------- apply -------------------
Action::ApplyStatus GradientMagnitudeRecursiveGaussian::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -73,7 +73,7 @@ Laplacian::~Laplacian() {
// --------------- apply -------------------
Action::ApplyStatus Laplacian::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -61,7 +61,7 @@ LaplacianRecursiveGaussian::LaplacianRecursiveGaussian(ActionExtension * extensi
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);
Property* standardDeviationProperty = new Property(tr("Standard deviation"), 3.0 ,tr("The standard deviation <i>(sigma)</i> is used as a parameter of the Gaussian convolution kernel. \nThe higher the deviation is, the blurer the resulting image will be."), "");
Property* standardDeviationProperty = new Property(tr("Standard deviation"), 3.0 , tr("The standard deviation <i>(sigma)</i> is used as a parameter of the Gaussian convolution kernel. \nThe higher the deviation is, the blurer the resulting image will be."), "");
standardDeviationProperty->setAttribute("minimum", 0);
standardDeviationProperty->setAttribute("maximum", 100);
standardDeviationProperty->setAttribute("singleStep", 0.1);
......@@ -76,7 +76,7 @@ LaplacianRecursiveGaussian::~LaplacianRecursiveGaussian() {
// --------------- apply -------------------
Action::ApplyStatus LaplacianRecursiveGaussian::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -62,7 +62,7 @@ LaplacianSharpening::~LaplacianSharpening() {
// --------------- apply -------------------
Action::ApplyStatus LaplacianSharpening::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -94,7 +94,7 @@ MeanFilter::~MeanFilter() {
// --------------- apply -------------------
Action::ApplyStatus MeanFilter::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -94,7 +94,7 @@ MedianFilter::~MedianFilter() {
// --------------- apply -------------------
Action::ApplyStatus MedianFilter::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -97,7 +97,7 @@ MorphologicalOperators::MorphoOperation MorphologicalOperators::getMorphoOperati
// --------------- apply -------------------
Action::ApplyStatus MorphologicalOperators::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -68,7 +68,7 @@ SobelEdgeDetection::~SobelEdgeDetection() {
// --------------- apply -------------------
Action::ApplyStatus SobelEdgeDetection::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -79,7 +79,7 @@ ManualThreshold::~ManualThreshold() {
// --------------- apply -------------------
Action::ApplyStatus ManualThreshold::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -85,7 +85,7 @@ OtsuFilter::~OtsuFilter() {
// --------------- apply -------------------
Action::ApplyStatus OtsuFilter::apply() {
foreach (Component *comp, getTargets()) {
foreach (Component * comp, getTargets()) {
ImageComponent * input = dynamic_cast<ImageComponent *> ( comp );
process(input);
}
......
......@@ -57,7 +57,7 @@ public slots:
virtual ApplyStatus apply();
/// Same method to be called manually with the parameters
virtual ApplyStatus apply(int lowThreshold, int highThreshold, QList<QVector3D> * seedPoints, bool filterBefore=false, int nbIterations = 5, double timeStep = 0.120);
virtual ApplyStatus apply(int lowThreshold, int highThreshold, QList<QVector3D> * seedPoints, bool filterBefore = false, int nbIterations = 5, double timeStep = 0.120);
private:
......
......@@ -191,7 +191,7 @@ camitk::ImageOrientationHelper::PossibleImageOrientations DicomComponent::readDi
gdcm::Scanner::TagToValue const &ttv = scanner.GetMapping(fileNames[0].c_str());
gdcm::Scanner::TagToValue::const_iterator it = ttv.find(iopTag);
if(!(it != ttv.end())) {
CAMITK_WARNING("DicomComponent", "readDirectCosinesAngle","No tag (0x0020, 0x0037) Image Orientation Patient found on image " + fileNames[0]);
CAMITK_WARNING("DicomComponent", "readDirectCosinesAngle", "No tag (0x0020, 0x0037) Image Orientation Patient found on image " + fileNames[0]);
return ImageOrientationHelper::UNKNOWN;
}
......
......@@ -57,7 +57,7 @@ Component * DicomComponentExtension::open(const QString & path) throw (AbortExce
serieParsed = DicomParser::parseDirectory(path);
// create a Dialog entry for each serie parsed
foreach(DicomSerie* dicomSerie, serieParsed) {
foreach(DicomSerie * dicomSerie, serieParsed) {
DicomDialogEntry* entry = new DicomDialogEntry();
entry->setSelected(false);
entry->setAcquisitionDate(dicomSerie->getAcquisitionDate());
......@@ -77,9 +77,9 @@ Component * DicomComponentExtension::open(const QString & path) throw (AbortExce
// Open each selected Dicom as a component
if(!serieDialogEntries.isEmpty()) {
foreach(DicomDialogEntry* entry, serieDialogEntries) {
foreach(DicomDialogEntry * entry, serieDialogEntries) {
// Find the corresponding Dicom Serie in the List
foreach(DicomSerie* serie, serieParsed) {
foreach(DicomSerie * serie, serieParsed) {
if( (serie->getStudyName() == entry->getStudyName()) &&
(serie->getSerieName() == entry->getSerieName()) ) {
lastOpenedComponent = new DicomComponent(serie);
......
......@@ -48,7 +48,7 @@ DicomDialog::DicomDialog(QList<DicomDialogEntry*> elements): QDialog() {
int row = 0;
int column = 0;
foreach(DicomDialogEntry* item, dicomDialogEntries) {
foreach(DicomDialogEntry * item, dicomDialogEntries) {
column = 0;
QTableWidgetItem* selectionItem = new QTableWidgetItem("");
selectionItem->setCheckState(Qt::Unchecked);
......
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