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

nomsg

parent 0f38ca43
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ namespace otb
*/
template <class TInputImage, class TOutputImage>
class FrostImageFilter : public itk::ImageToImageFilter< TInputImage, TOutputImage >
class ITK_EXPORT FrostImageFilter : public itk::ImageToImageFilter< TInputImage, TOutputImage >
{
public:
......
......@@ -37,7 +37,7 @@ namespace otb
*/
template <class TInputImage, class TOutputImage>
class LeeImageFilter : public itk::ImageToImageFilter< TInputImage, TOutputImage >
class ITK_EXPORT LeeImageFilter : public itk::ImageToImageFilter< TInputImage, TOutputImage >
{
public:
/** Extrait les dimensions aussi bien des images
......
......@@ -194,9 +194,9 @@ void LineDetectorImageFilterBase< TInputImage, TOutputImage, InterpolatorType>
// Number of zone
const int NB_ZONE = 3;
// Definition of the 4 directions
//double Theta[NB_DIR];
//ROMAIN
double* Theta = new double[NB_DIR];
//double Theta[NB_DIR];
//ROMAIN
double* Theta = new double[NB_DIR];
// La rotation nulle correspond a un contour horizontal -> 0 !!
for(int i=0; i<NB_DIR; i++)
......@@ -268,11 +268,11 @@ void LineDetectorImageFilterBase< TInputImage, TOutputImage, InterpolatorType>
// Contains for the 4 directions the the pixels belonging to each zone
//std::vector<double> PixelValues[NB_DIR][NB_ZONE];
//std::vector<double> PixelValues[NB_DIR][NB_ZONE];
// ROMAIN
std::vector<double>** PixelValues=new std::vector<double>*[NB_DIR];
for (int i=0; i<NB_DIR; i++)
PixelValues[i] = new std::vector<double>[NB_ZONE];
std::vector<double>** PixelValues=new std::vector<double>*[NB_DIR];
for (int i=0; i<NB_DIR; i++)
PixelValues[i] = new std::vector<double>[NB_ZONE];
// Loop on the region
//for (i = 0; i < neighborhoodSize; ++i)
......@@ -362,15 +362,15 @@ void LineDetectorImageFilterBase< TInputImage, TOutputImage, InterpolatorType>
++bit;
++it;
++itdir;
progress.CompletedPixel();
// ROMAIN
for (int i=0; i<NB_DIR; i++)
delete[] PixelValues[i];
progress.CompletedPixel();
// ROMAIN
for (int i=0; i<NB_DIR; i++)
delete[] PixelValues[i];
delete[] PixelValues;
}
}
}
delete[] Theta;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment