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

Moments complexe avec Path

parent 6c57529f
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
Date : 22 mars 2006 Date : 22 mars 2006
Version : Version :
Role : Geometric Moments Class of path Role : Geometric Moments Class of path
$Id:$ $Id$
=========================================================================*/ =========================================================================*/
#ifndef _otbGeometricMomentPathFunction_h #ifndef _otbGeometricMomentPathFunction_h
...@@ -30,7 +30,7 @@ template < class TInputImage, ...@@ -30,7 +30,7 @@ template < class TInputImage,
class TOutput = float, class TOutput = float,
class TCoordRep = float > class TCoordRep = float >
class ITK_EXPORT GeometricMomentPathFunction : class ITK_EXPORT GeometricMomentPathFunction :
public itk::ImageFunction<TInputImage , TInputPath, TOutput, TCoordRep > public PathFunction<TInputImage , TInputPath, TOutput, TCoordRep >
{ {
public: public:
/** Standard class typedefs. */ /** Standard class typedefs. */
......
...@@ -35,9 +35,9 @@ int otbComplexMomentPath( int argc, char ** argv ) ...@@ -35,9 +35,9 @@ int otbComplexMomentPath( int argc, char ** argv )
typedef InputImageType::PointType ImagePointType; typedef InputImageType::PointType ImagePointType;
typedef otb::ImageFileReader< InputImageType > ReaderType; typedef otb::ImageFileReader< InputImageType > ReaderType;
typedef itk::PolyLineParametricPath< Dimension > PathType; typedef itk::PolyLineParametricPath< Dimension > PathType;
typedef std::complex<double> ComplexType typedef otb::ComplexMomentPathFunction<InputImageType,PathType> CMType;
typedef otb::ComplexMomentPathFunction<InputImageType,PathType,ComplexType> CMType; typedef typename CMType::ComplexType ComplexType;
ReaderType::Pointer reader = ReaderType::New(); ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName( inputFilename ); reader->SetFileName( inputFilename );
......
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