Skip to content
Snippets Groups Projects
Commit 130981cc authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: test printself in instanciation tests

parent 20f67375
No related branches found
No related tags found
No related merge requests found
Showing
with 42 additions and 5 deletions
......@@ -42,5 +42,7 @@ int otbAmplitudePhaseToRGBFunctorNew(int argc, char * argv[])
colormapper->GetFunctor().SetMaximum(150);
colormapper->GetFunctor().SetMinimum(70);
std::cout << colormapper << std::endl;
return EXIT_SUCCESS;
}
......@@ -29,7 +29,9 @@ int otbBCOInterpolateImageFunctionNew(int argc, char * argv[])
typedef otb::BCOInterpolateImageFunction<ImageType, double> InterpolatorType;
// Instantiating object
InterpolatorType::Pointer filter = InterpolatorType::New();
InterpolatorType::Pointer interp = InterpolatorType::New();
std::cout << interp << std::endl;
return EXIT_SUCCESS;
}
......
......@@ -28,5 +28,6 @@ int otbBSplineDecompositionImageFilterNew(int argc, char * argv[])
// Instantiating object
BSplineDecompositionImageFilterType::Pointer filter = BSplineDecompositionImageFilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -28,5 +28,7 @@ int otbBSplineInterpolateImageFunctionNew(int argc, char * argv[])
// Instantiating object
InterpolatorType::Pointer filter = InterpolatorType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -37,5 +37,7 @@ int otbBinaryImageDensityFunctionNew(int, char*[])
/**Instantiation of a Smart Pointer*/
FunctionType::Pointer filter = FunctionType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -31,5 +31,7 @@ int otbBinaryImageMinimalBoundingRegionCalculatorNew(int argc, char* argv[])
//Instantiation
BoundingRegionCalculatorType::Pointer brct = BoundingRegionCalculatorType::New();
std::cout << brct << std::endl;
return EXIT_SUCCESS;
}
......@@ -38,5 +38,7 @@ int otbBinaryImageToDensityImageFilterNew(int, char*[])
/**Instantiation of a Smart Pointer*/
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -33,5 +33,7 @@ int otbBoxAndWhiskerImageFilterNew(int argc, char * argv[])
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -33,6 +33,7 @@ int otbChangeLabelImageFilterNew(int argc, char * argv[])
FilterType::Pointer filter = FilterType::New();
return EXIT_SUCCESS;
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -35,5 +35,7 @@ int otbClosingOpeningMorphologicalFilterNew(int argc, char * argv[])
// instantiating the opening closing filter
ClosingOpeningFilterType::Pointer openingClosing = ClosingOpeningFilterType::New();
std::cout << openingClosing << std::endl;
return EXIT_SUCCESS;
}
......@@ -30,6 +30,7 @@ int otbContinuousMinimumMaximumImageCalculatorNew(int argc, char * argv[])
FilterType::Pointer filter = FilterType::New();
return EXIT_SUCCESS;
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -34,5 +34,7 @@ int otbConvolutionImageFilterNew(int argc, char * argv[])
FilterType::Pointer conv = FilterType::New();
std::cout << conv << std::endl;
return EXIT_SUCCESS;
}
......@@ -37,5 +37,7 @@ int otbEdgeDensityImageFilterNew(int, char*[])
/**Instantiation of an object*/
EdgeDensityFilterType::Pointer filter = EdgeDensityFilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -30,5 +30,7 @@ int otbEdgeDetectorImageFilterNew(int, char*[])
/**Instantiation of an object*/
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -30,5 +30,7 @@ int otbEstimateInnerProductPCAImageFilterNew(int argc, char* argv[])
// Instantiation object
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -31,5 +31,7 @@ int otbEuclideanDistanceWithMissingValueNew(int argc, char * argv[])
DistanceType::Pointer dist = DistanceType::New();
std::cout << dist << std::endl;
return EXIT_SUCCESS;
}
......@@ -35,5 +35,7 @@ int otbFlexibleDistanceWithMissingValueNew(int argc, char * argv[])
DistanceType::Pointer dist = DistanceType::New();
std::cout << dist << std::endl;
return EXIT_SUCCESS;
}
......@@ -41,5 +41,7 @@ int otbFrostFilterNew(int argc, char * argv[])
FilterType::Pointer frost = FilterType::New();
std::cout << frost << std::endl;
return EXIT_SUCCESS;
}
......@@ -30,7 +30,9 @@ int otbFunctionToImageFilterNew(int argc, char * argv[])
typedef otb::FunctionToImageFilter<ImageType, ImageType, FunctionType> FilterType;
// Instantiating object
FilterType::Pointer object = FilterType::New();
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
......@@ -68,7 +68,9 @@ int otbFunctionWithNeighborhoodToImageFilterNew(int argc, char * argv[])
typedef otb::FunctionWithNeighborhoodToImageFilter<ImageType, ImageType, FunctionType> FilterType;
// Instantiating object
FilterType::Pointer object = FilterType::New();
FilterType::Pointer filter = FilterType::New();
std::cout << filter << std::endl;
return EXIT_SUCCESS;
}
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