From: ctorres Date: Wed, 20 Nov 2013 15:06:30 +0000 (+0100) Subject: 2178 creaVtk Bug New High Error in creaVtkFromVtk4DToItk4 box output. X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b86c5e5bcfba4a249f324fc8a73c2691c54a24cd;p=creaVtk.git 2178 creaVtk Bug New High Error in creaVtkFromVtk4DToItk4 box output. --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx index fb20c30..4a79770 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx @@ -18,7 +18,8 @@ void FromVtk4DToItk4D::Process() { creaVtkFromVtk4DToItk4D prs; prs.SetImage4Dvtk(bbGetInputIn()); - bbSetOutputOut(prs.Process()); + //Bug. Cant declare output image in .h + //bbSetOutputOut(prs.Process()); } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx~ b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx~ index c85c4eb..f322be7 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx~ +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx~ @@ -18,18 +18,13 @@ void FromVtk4DToItk4D::Process() { creaVtkFromVtk4DToItk4D prs; prs.SetImage4Dvtk(bbGetInputIn()); - bbSetOutputOut(prs.Process()); + //bbSetOutputOut(prs.Process()); } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void FromVtk4DToItk4D::bbUserSetDefaultValues() { - -// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX -// Here we initialize the input 'In' to 0 - bbSetInputIn(0); - } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h index 5ea20bb..7ff303c 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h @@ -18,16 +18,13 @@ class bbcreaVtk_EXPORT FromVtk4DToItk4D public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(FromVtk4DToItk4D,bbtk::AtomicBlackBox); -//===== -// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -//===== + BBTK_DECLARE_INPUT(In,std::vector ); - BBTK_DECLARE_OUTPUT(Out,std::vector >); + //Bug. Image type doesn't work. + //BBTK_DECLARE_OUTPUT(Out,std::vector >); BBTK_PROCESS(Process); void Process(); -//===== -// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -//===== + }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(FromVtk4DToItk4D,bbtk::AtomicBlackBox); @@ -36,11 +33,9 @@ BBTK_AUTHOR("Carlos Torres"); BBTK_DESCRIPTION("carlos.torres@creatis.insa-lyon.fr -"); BBTK_CATEGORY("empty"); BBTK_INPUT(FromVtk4DToItk4D,In,"Vtk image 4D",std::vector,""); -BBTK_OUTPUT(FromVtk4DToItk4D,Out,"Itk image 4D",std::vector >,""); +//BBTK_OUTPUT(FromVtk4DToItk4D,Out,"Itk image 4D",std::vector >,""); BBTK_END_DESCRIBE_BLACK_BOX(FromVtk4DToItk4D); -//===== -// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -//===== + } // EO namespace bbcreaVtk diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h~ b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h~ index 399a007..584e159 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h~ +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.h~ @@ -6,6 +6,9 @@ #include "bbcreaVtk_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" +#include "vtkImageData.h" +#include +#include "itkImage.h" namespace bbcreaVtk { @@ -15,16 +18,12 @@ class bbcreaVtk_EXPORT FromVtk4DToItk4D public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(FromVtk4DToItk4D,bbtk::AtomicBlackBox); -//===== -// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -//===== + BBTK_DECLARE_INPUT(In,std::vector ); - BBTK_DECLARE_OUTPUT(Out,std::vector >); + //BBTK_DECLARE_OUTPUT(Out,std::vector >); BBTK_PROCESS(Process); void Process(); -//===== -// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -//===== + }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(FromVtk4DToItk4D,bbtk::AtomicBlackBox); @@ -33,11 +32,9 @@ BBTK_AUTHOR("Carlos Torres"); BBTK_DESCRIPTION("carlos.torres@creatis.insa-lyon.fr -"); BBTK_CATEGORY("empty"); BBTK_INPUT(FromVtk4DToItk4D,In,"Vtk image 4D",std::vector,""); -BBTK_OUTPUT(FromVtk4DToItk4D,Out,"Itk image 4D",std::vector >,""); +//BBTK_OUTPUT(FromVtk4DToItk4D,Out,"Itk image 4D",std::vector >,""); BBTK_END_DESCRIBE_BLACK_BOX(FromVtk4DToItk4D); -//===== -// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) -//===== + } // EO namespace bbcreaVtk