Commit 43664267 authored by Aurélien Bricier's avatar Aurélien Bricier

ENH: corrected template parameters in VectorDataToRoadDescriptionFilter

parent 87d8478e
......@@ -45,7 +45,7 @@ namespace otb
* \sa VectorDataToBuildingDescriptionFilter
*/
template <class TVectorData, class TOpticalImage, class TNDVIImage>
template <class TVectorData, class TOpticalImage>
class ITK_EXPORT VectorDataToRoadDescriptionFilter :
public otb::VectorDataToSpecificDescriptionFilterBase<TVectorData>
{
......
......@@ -24,8 +24,8 @@ namespace otb
{
// Constructor
template <class TVectorData, class TOpticalImage, class TNDVIImage>
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
template <class TVectorData, class TOpticalImage>
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage>
::VectorDataToRoadDescriptionFilter()
{
this->SetNumberOfRequiredInputs(2);
......@@ -33,27 +33,27 @@ VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
m_SpectralAngleFeatureFunction = SpectralAngleFeatureFunctionType::New();
}
template <class TVectorData, class TOpticalImage, class TNDVIImage>
template <class TVectorData, class TOpticalImage>
void
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage>
::AddOpticalImage(const OpticalImageType * support)
{
this->AddSupport(const_cast<OpticalImageType *>(support), 0);
}
template <class TVectorData, class TOpticalImage, class TNDVIImage>
const typename VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
template <class TVectorData, class TOpticalImage>
const typename VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage>
::OpticalImageType *
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage>
::GetOpticalImage()
{
return static_cast<const OpticalImageType *>
(this->GetSupport(0));
}
template <class TVectorData, class TOpticalImage, class TNDVIImage>
template <class TVectorData, class TOpticalImage>
void
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage>
::GenerateData()
{
m_NDVIFeatureFunction->SetInputImage(const_cast<OpticalImageType *>(this->GetOpticalImage()));
......@@ -92,9 +92,9 @@ VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
}
// PrintSelf Method
template <class TVectorData, class TOpticalImage, class TNDVIImage>
template <class TVectorData, class TOpticalImage>
void
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage, TNDVIImage>
VectorDataToRoadDescriptionFilter<TVectorData, TOpticalImage>
::PrintSelf(std::ostream& os, itk::Indent indent) const
{
Superclass::PrintSelf(os, indent);
......
......@@ -42,7 +42,7 @@ int otbVectorDataToRoadDescriptionFilterNew(int argc, char* argv[])
typedef otb::VectorData<PrecisionType> VectorDataType;
typedef otb::VectorImage<PrecisionType> ImageType;
typedef otb::VectorDataToRoadDescriptionFilter<VectorDataType, ImageType, ImageType>
typedef otb::VectorDataToRoadDescriptionFilter<VectorDataType, ImageType>
VectorDataToRoadDescriptionFilterType;
VectorDataToRoadDescriptionFilterType::Pointer filter =
......@@ -65,7 +65,7 @@ int otbVectorDataToRoadDescriptionFilter(int argc, char* argv[])
typedef otb::VectorData<PrecisionType, 2> VectorDataType;
typedef otb::VectorImage<PrecisionType> ImageType;
typedef otb::VectorDataToRoadDescriptionFilter<VectorDataType, ImageType, ImageType>
typedef otb::VectorDataToRoadDescriptionFilter<VectorDataType, ImageType>
VectorDataToRoadDescriptionFilterType;
typedef otb::ImageFileReader<ImageType> ImageReaderType;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment