Program: bbtk
Module: $RCSfile: bbtkVtkBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/05/09 10:39:46 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
vtkParent::Delete(); \
}
-// bbmDescriptorPointer.reset(); \
+// bbmDescriptorPointer.reset();
#define BBTK_VTK_BLACK_BOX_INTERFACE(CLASS,PARENTBLACKBOX,VTKPARENT) \
BBTK_BLACK_BOX_INTERFACE(CLASS,PARENTBLACKBOX); \
else
{
//bbtkGlobalError("GetImageTypeInfoFromPixelTypeInfo : itk::Images not compiled for dim "<<dim);
+ return typeid(void);
}
+ return typeid(void);
}
Program: bbtk
Module: $RCSfile: bbitkImageProperties.cxx,v $
Language: C++
- Date: $Date: 2008/06/19 09:46:44 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
const typename itkImageType::IndexType& ind = r.GetIndex();
std::vector<int> vind;
- for (int i=0;i<dim;++i) vind.push_back(ind[i]);
+ for (unsigned int i=0;i<dim;++i) vind.push_back(ind[i]);
bbSetOutputIndex(vind);
const typename itkImageType::SizeType& sz = r.GetSize();
std::vector<int> vsz;
- for (int i=0;i<dim;++i) vsz.push_back(sz[i]);
+ for (unsigned int i=0;i<dim;++i) vsz.push_back(sz[i]);
bbSetOutputSize(vsz);
typename itkImageType::SpacingType sp = im->GetSpacing();
std::vector<float> vsp;
- for (int i=0;i<dim;++i) vsp.push_back(sp[i]);
+ for (unsigned int i=0;i<dim;++i) vsp.push_back(sp[i]);
bbSetOutputSpacing(vsp);
bbtkDebugDecTab("Core",9);
Program: bbtk
Module: $RCSfile: bbitkImageProperties.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:50 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
-=========================================================================*//**
+=========================================================================*/
+
/**
* \file
* \brief class ITKImageProperties : generic ITKImage reader
Program: bbtk
Module: $RCSfile: bbitkImageReader.h,v $
Language: C++
- Date: $Date: 2008/06/26 09:09:47 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
-=========================================================================*//**
+=========================================================================*/
/**
* \file
* \brief class ITKImageReader : generic ITKImage reader
Program: bbtk
Module: $RCSfile: bbitkImageSeriesReader.h,v $
Language: C++
- Date: $Date: 2008/06/26 07:55:12 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
-=========================================================================*//**
+=========================================================================*/
+
/**
* \file
* \brief class ITKImageSeriesReader : generic ITKImage reader
Program: bbtk
Module: $RCSfile: bbitkImageWriter.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:50 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
-=========================================================================*//**
+=========================================================================*/
/**
* \file
* \brief class ITKImageWriter : generic ITKImage reader
LPR = in->GetLargestPossibleRegion();
size = LPR.GetSize();
// origin = LPR.GetIndex(); //in->GetOrigin();
- for (int i=0;i<Dimension;++i)
+ for (unsigned int i=0;i<Dimension;++i)
{
origin[i] = LPR.GetIndex()[i]*in->GetSpacing()[i];
spacing[i] = bbGetInputSpacing()[i];
filter->SetTransform ( transform );
- // Interpolation
- if ( bbGetInputInterpolation() == "Linear" ) {
- typedef itk::LinearInterpolateImageFunction < ImageType, double > InterpolatorType;
- // We create an interpolator of the found type
- typename InterpolatorType::Pointer interpolator = InterpolatorType::New();
- filter->SetInterpolator( interpolator );
- }
- else if ( bbGetInputInterpolation() == "NearestNeighbor" ) {
+
+ if ( bbGetInputInterpolation() == "NearestNeighbor" ) {
typedef itk::NearestNeighborInterpolateImageFunction < ImageType, double > InterpolatorType;
// We create an interpolator of the found type
typename InterpolatorType::Pointer interpolator = InterpolatorType::New();
// std::cout << "Warning! you're using unsigned data ! The interpolated value may result negative! "<< std::endl;
// }
} //end else if
-
+ // Interpolation
+ else { // if ( bbGetInputInterpolation() == "Linear" ) {
+ typedef itk::LinearInterpolateImageFunction < ImageType, double > InterpolatorType;
+ // We create an interpolator of the found type
+ typename InterpolatorType::Pointer interpolator = InterpolatorType::New();
+ filter->SetInterpolator( interpolator );
+ }
filter->Update();
filter->GetOutput()->Register();
Program: bbtk
Module: $RCSfile: bbitkvtkitkImage2vtkImageData.h,v $
Language: C++
- Date: $Date: 2008/05/14 07:01:00 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
-=========================================================================*//**
+=========================================================================*/
/**
* \file
* \brief class itkImage2vtkImageData : converts a generic itkImage to a vtkImageData
Program: bbtk
Module: $RCSfile: bbitkvtkvtkImageData2itkImage.h,v $
Language: C++
- Date: $Date: 2008/05/14 07:01:00 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/07/23 12:02:15 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
-=========================================================================*//**
+=========================================================================*/
/**
* \file
* \brief class vtkImageData2itkImage : Converts a vtkImageData to a generic itkImage
delete_inter = true;
}
- int i;
+ unsigned int i;
bool ok=true;
int pos1=0,pos2;