From f466894fe5ae0787f080d59b2e88542099ad553f Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Wed, 20 Mar 2024 16:32:27 +0100 Subject: [PATCH] #3512 clean bbs2 python version --- packages/vtk/src/bbvtkImageGaussianSmooth.xml | 2 +- packages/vtk/src/bbvtkImageVtkProperties.h | 2 +- .../vtk/src/bbvtkRescaleSlopeIntercept.cxx | 16 +++++++-------- packages/vtk/src/bbvtkRescaleSlopeIntercept.h | 20 +++++++++---------- packages/vtk/src/bbvtkTransform.cxx | 1 - packages/vtk/src/bbvtkTransform.h | 2 +- 6 files changed, 21 insertions(+), 22 deletions(-) diff --git a/packages/vtk/src/bbvtkImageGaussianSmooth.xml b/packages/vtk/src/bbvtkImageGaussianSmooth.xml index 780c20a..b1c6c49 100644 --- a/packages/vtk/src/bbvtkImageGaussianSmooth.xml +++ b/packages/vtk/src/bbvtkImageGaussianSmooth.xml @@ -3,7 +3,7 @@ laurent.guigues at creatis.insa-lyon.fr -
Performs a gaussian convolution of the input image (bbfication of vtkImageGaussianSmooth)
+
(C++,Python) Performs a gaussian convolution of the input image (bbfication of vtkImageGaussianSmooth)
image;filter vtkImageGaussianSmooth.h diff --git a/packages/vtk/src/bbvtkImageVtkProperties.h b/packages/vtk/src/bbvtkImageVtkProperties.h index 8945e1d..e22e13a 100644 --- a/packages/vtk/src/bbvtkImageVtkProperties.h +++ b/packages/vtk/src/bbvtkImageVtkProperties.h @@ -67,7 +67,7 @@ class bbvtk_EXPORT ImageVtkProperties BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageVtkProperties,bbtk::AtomicBlackBox); BBTK_NAME("ImageVtkProperties"); BBTK_AUTHOR("Info-Dev Creatis"); - BBTK_DESCRIPTION("Image information Dim, Spc, Type, MinMax"); + BBTK_DESCRIPTION("(C++,Python) Image information Dim, Spc, Type, MinMax"); BBTK_CATEGORY("filter"); BBTK_INPUT(ImageVtkProperties,In,"Input image (vtk)",vtkImageData*,""); BBTK_OUTPUT(ImageVtkProperties,Origin,"Origin", std::vector ,""); diff --git a/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx b/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx index a1d5805..4117fdf 100644 --- a/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx +++ b/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx @@ -57,11 +57,11 @@ void RescaleSlopeIntercept::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <SetExtentTranslation( -ext[0], -ext[2], -ext[4] ); mchange->SetOutputSpacing (spc); - filter1->Update(); //important - filter2->Update(); //important - mchange->Update(); //important + filter1->Update(); // important + filter2->Update(); // important + mchange->Update(); // important bbSetOutputOut( mchange->GetOutput() ); } else { bbSetOutputOut( NULL ); diff --git a/packages/vtk/src/bbvtkRescaleSlopeIntercept.h b/packages/vtk/src/bbvtkRescaleSlopeIntercept.h index 72b9e91..48f638e 100644 --- a/packages/vtk/src/bbvtkRescaleSlopeIntercept.h +++ b/packages/vtk/src/bbvtkRescaleSlopeIntercept.h @@ -71,16 +71,16 @@ class bbvtk_EXPORT RescaleSlopeIntercept }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(RescaleSlopeIntercept,bbtk::AtomicBlackBox); -BBTK_NAME("RescaleSlopeIntercept"); -BBTK_AUTHOR("eduardo.davila at creatis.insa-lyon.fr"); -BBTK_DESCRIPTION("Rescale Slope Intercept (see Type input descriptio)"); -BBTK_CATEGORY("filter"); -BBTK_INPUT(RescaleSlopeIntercept,In,"Image input",vtkImageData*,""); -BBTK_INPUT(RescaleSlopeIntercept,Type,"type of operation: 0 (default) SlopeIntercept np=p*A+B, 1 Invert, 2 Redimension A=newMin B=newMax, 3 InvertRedimension A=newMin B=newMax",int,""); -BBTK_INPUT(RescaleSlopeIntercept,A,"(1 default) see Type description",double,""); -BBTK_INPUT(RescaleSlopeIntercept,B,"(0 default) see Type description",double,""); -BBTK_INPUT(RescaleSlopeIntercept,OutputFormat,"Image output format: SAME (default), VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE",std::string,""); -BBTK_OUTPUT(RescaleSlopeIntercept,Out,"Image output",vtkImageData*,""); + BBTK_NAME("RescaleSlopeIntercept"); + BBTK_AUTHOR("eduardo.davila at creatis.insa-lyon.fr"); + BBTK_DESCRIPTION("(C++,Python)Rescale Slope Intercept (see Type input descriptio)"); + BBTK_CATEGORY("filter"); + BBTK_INPUT(RescaleSlopeIntercept,In,"Image input",vtkImageData*,""); + BBTK_INPUT(RescaleSlopeIntercept,Type,"type of operation: 0 (default) SlopeIntercept np=p*A+B, 1 Invert, 2 Redimension A=newMin B=newMax, 3 InvertRedimension A=newMin B=newMax",int,""); + BBTK_INPUT(RescaleSlopeIntercept,A,"(1 default) see Type description",double,""); + BBTK_INPUT(RescaleSlopeIntercept,B,"(0 default) see Type description",double,""); + BBTK_INPUT(RescaleSlopeIntercept,OutputFormat,"Image output format: SAME (default), VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE",std::string,""); + BBTK_OUTPUT(RescaleSlopeIntercept,Out,"Image output",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(RescaleSlopeIntercept); //===== // Don't edit this file. This file is generated from xml description.. diff --git a/packages/vtk/src/bbvtkTransform.cxx b/packages/vtk/src/bbvtkTransform.cxx index fd4b98e..8b71e00 100644 --- a/packages/vtk/src/bbvtkTransform.cxx +++ b/packages/vtk/src/bbvtkTransform.cxx @@ -84,7 +84,6 @@ namespace bbvtk } } - // -------------------------------------------------------------- void Transform::Process() { diff --git a/packages/vtk/src/bbvtkTransform.h b/packages/vtk/src/bbvtkTransform.h index ebe2e75..46e1c76 100644 --- a/packages/vtk/src/bbvtkTransform.h +++ b/packages/vtk/src/bbvtkTransform.h @@ -63,7 +63,7 @@ namespace bbvtk BBTK_BEGIN_DESCRIBE_BLACK_BOX(Transform,bbtk::AtomicBlackBox); BBTK_NAME("Transform"); BBTK_AUTHOR("InfoTeam CREATIS-LRMN"); - BBTK_DESCRIPTION("vtkTransform"); + BBTK_DESCRIPTION("(C++,Python) vtkTransform"); BBTK_CATEGORY("math"); BBTK_INPUT(Transform,Inverse,"(default false) true/false",bool,""); -- 2.45.1