Skip to content
Snippets Groups Projects
Commit 60f7bd5d authored by Patrick Imbo's avatar Patrick Imbo
Browse files

nomsg

parent 3c57e5d3
No related branches found
No related tags found
No related merge requests found
......@@ -47,21 +47,12 @@ template <class TInputImage, class TOutputImage>
class FrostImageFilter : public itk::ImageToImageFilter< TInputImage, TOutputImage >
{
public:
/** Extrait les dimensions aussi bien des images
d'entrée (Input) que de sortie (Output). */
itkStaticConstMacro( InputImageDimension,
unsigned int,
TInputImage::ImageDimension);
itkStaticConstMacro( OutputImageDimension,
unsigned int,
TOutputImage::ImageDimension);
/** "typedef" pour simplifier la définition et la déclaration de variables. */
/** Some Image related typedefs. */
typedef TInputImage InputImageType;
/** "typedef" pour simplifier la définition et la déclaration de variables. */
typedef TOutputImage OutputImageType;
/** "typedef" pour les classes standards. */
/** Standard class typedefs. */
typedef FrostImageFilter Self;
typedef itk::ImageToImageFilter< InputImageType, OutputImageType> Superclass;
typedef itk::SmartPointer<Self> Pointer;
......@@ -70,7 +61,7 @@ public:
/** Methode pour la gestion "object factory". */
itkNewMacro(Self);
/** Retourne le nom de la classe. */
/** Run-time type information (and related methods). */
itkTypeMacro(FrostImageFilter, ImageToImageFilter);
/** Définition des images supportées. */
......@@ -85,6 +76,15 @@ public:
/** "typedef" définissant la taille d'une image. */
typedef typename InputImageType::SizeType SizeType;
/** ImageDimension constants */
itkStaticConstMacro( InputImageDimension,
unsigned int,
TInputImage::ImageDimension);
itkStaticConstMacro( OutputImageDimension,
unsigned int,
TOutputImage::ImageDimension);
/** Positionne le rayon définissant le voisinage utilisé pour le calcul du filtre. */
itkSetMacro(Radius, SizeType);
......
......@@ -29,7 +29,7 @@
#include "itkImageIteratorWithIndex.h"
#include "itkImageRegionIteratorWithIndex.h"
#include "itkImageRegionConstIteratorWithIndex.h"
#include "otbMacro.h"
namespace otb
{
......@@ -187,7 +187,7 @@ DrawPathListFilter<TInputImage,TInputPath,TOutputImage>
int nbPath = InputPath->size();
std::cout <<"nbPath: " <<nbPath <<std::endl;
otbMsgDevMacro( <<"nbPath: " <<nbPath);
for(int i =0 ; i<nbPath ;i++)
{
......
......@@ -19,6 +19,7 @@
#define __otbLineRatioDetectorImageFilter_txx
#include "otbLineRatioDetectorImageFilter.h"
#include "otbMacro.h"
#include "itkDataObject.h"
#include "itkExceptionObject.h"
......@@ -64,7 +65,7 @@ double LineRatioDetectorImageFilter<TInputImage, TOutputImage, InterpolatorType>
std::vector<double>::iterator m3It = m3->begin();
std::vector<double>::iterator m3End = m3->end();
// std::cout << "Means " << std::endl;
otbMsgDevMacro( << "Means " );
while( m1It!=m1End && m2It!=m2End && m3It!=m3End )
{
......
......@@ -115,14 +115,11 @@ Neighborhood::fix_down()
void
Neighborhood::print_neighborhood()
{
std::cout << "pNeighborhood : " << std::endl;
std::cout << " iNbPoints : " << iNbPoints << std::endl;
otbMsgDevMacro( << "pNeighborhood : " );
otbMsgDevMacro( << " iNbPoints : " << iNbPoints );
for(int i= 0 ; i<=iNbPoints ; i++)
{
std::cout << "tabPoints["<<i <<"] =" << tabPoints[i].value ;
std::cout << " Position: (" << tabPoints[i].point.x;
std::cout << " , " << tabPoints[i].point.y << ")" ;
std::cout << std::endl;
otbMsgDevMacro( << "tabPoints["<<i <<"] =" << tabPoints[i].value << " Position: (" << tabPoints[i].point.x << " , " << tabPoints[i].point.y << ")" );
}
}
......
......@@ -314,11 +314,11 @@ void MSTARImageIO::Read(void* buffer)
if (nhlen == 0)
{/* Implies FLOAT MSTAR chip image */
mstartype = CHIP_IMAGE;
std::cout << " Chip type " << std::endl;
otbMsgDevMacro(<< " Chip type ");
} else
{
mstartype = FSCENE_IMAGE; /* UnShort Fullscene */
std::cout << " Scene type " << std::endl;
otbMsgDevMacro(<< << " Scene type " );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment