X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fitkvtk%2Fsrc%2FbbitkvtkvtkImageData2itkImage.cxx;h=45bb40289c41e24133f37c25bc6f320995d7c9a1;hb=879ef5e3816ad657576269a96edda4ada4848bdf;hp=ceee695e4e7b3ab621eb5a44fe379ba8dfe10d9a;hpb=48d234bd8fb5c1251b67a85599f832db414500ad;p=bbtk.git diff --git a/packages/itkvtk/src/bbitkvtkvtkImageData2itkImage.cxx b/packages/itkvtk/src/bbitkvtkvtkImageData2itkImage.cxx index ceee695..45bb402 100644 --- a/packages/itkvtk/src/bbitkvtkvtkImageData2itkImage.cxx +++ b/packages/itkvtk/src/bbitkvtkvtkImageData2itkImage.cxx @@ -1,34 +1,40 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la SantÈ) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# ------------------------------------------------------------------------ */ + + /*========================================================================= Program: bbtk Module: $RCSfile: bbitkvtkvtkImageData2itkImage.cxx,v $ Language: C++ - Date: $Date: 2011/06/16 12:28:57 $ - Version: $Revision: 1.6 $ + Date: $Date: 2012/11/16 08:50:49 $ + Version: $Revision: 1.8 $ =========================================================================*/ -/* --------------------------------------------------------------------- - -* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) -* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux -* -* This software is governed by the CeCILL-B license under French law and -* abiding by the rules of distribution of free software. You can use, -* modify and/ or redistribute the software under the terms of the CeCILL-B -* license as circulated by CEA, CNRS and INRIA at the following URL -* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -* or in the file LICENSE.txt. -* -* As a counterpart to the access to the source code and rights to copy, -* modify and redistribute granted by the license, users are provided only -* with a limited warranty and the software's author, the holder of the -* economic rights, and the successive licensors have only limited -* liability. -* -* The fact that you are presently reading this means that you have had -* knowledge of the CeCILL-B license and that you accept its terms. -* ------------------------------------------------------------------------ */ /** * \file @@ -70,8 +76,8 @@ namespace bbitkvtk BBTK_TEMPLATE_VTK_IMAGE_DATA_SWITCH_DIM(I,3,M) void vtkImageData2itkImage::Convert() - { - BBTK_TEMPLATE_VTK_IMAGE_DATA_SWITCH(bbGetInputIn(),Convert) + { + BBTK_TEMPLATE_VTK_IMAGE_DATA_SWITCH(bbGetInputIn(),Convert) } @@ -104,7 +110,7 @@ namespace bbitkvtk ((itk::ProcessObject*)mConverter); if (!conv) { - bbtkDebugMessage("process",5," ["<UnRegister(); conv = VtkToItkConnection::New(); @@ -121,14 +127,16 @@ namespace bbitkvtk } else { - bbtkDebugMessage("process",5," ["<Update(); + itkImageType* out = const_cast(conv->GetOutput()); bbSetOutputOut(out); } @@ -141,7 +149,7 @@ namespace bbitkvtk bbtkDebugMessage("process",5,"<== ["<()<<","<() *DONE*"<