Skip to content
Snippets Groups Projects
Commit 1b560b0f authored by Julien Malik's avatar Julien Malik
Browse files

MRG

parents 155b72d7 57430771
Branches
Tags
No related merge requests found
......@@ -28,9 +28,6 @@
int otbMatrixImageFilterNew(int argc, char * argv[])
{
const char * inputFilename = argv[1];
const char * outputFilename = argv[2];
typedef std::complex<double> PixelType;
typedef otb::VectorImage<PixelType> ImageType;
......
......@@ -49,6 +49,8 @@ int otbQuickLookImageGenerator(int argc, char* argv[])
filter->SetMaximumKernelWidth(atoi(argv[6]));
filter->UseImageSpacing(atoi(argv[7]));
filter->Update();
writer->SetInput(filter->GetOutput());
writer->SetFileName(outputFileName);
......
......@@ -70,9 +70,6 @@ int otbImageScalarFileWriterTestWithoutInputGeneric(int argc, char* argv[])
IteratorType it(image, image->GetLargestPossibleRegion());
it.GoToBegin();
double val = 0.;
ImagePixelType pixVal;
while (!it.IsAtEnd())
{
it.Set(static_cast<PixelType> (size[0] * it.GetIndex()[1] + it.GetIndex()[0]));
......
......@@ -71,9 +71,6 @@ int otbImageScalarStreamingFileWriterTestWithoutInputGeneric(int argc, char* arg
IteratorType it(image, image->GetLargestPossibleRegion());
it.GoToBegin();
double val = 0.;
ImagePixelType pixVal;
while (!it.IsAtEnd())
{
it.Set(static_cast<PixelType> (size[0] * it.GetIndex()[1] + it.GetIndex()[0]));
......
......@@ -36,7 +36,9 @@ void printPointSet(otb::SarImageMetadataInterface::PointSetPointer pointSet, std
{
stream << "PointSet values :" << std::endl;
otb::SarImageMetadataInterface::PointSetType::PointType point;
point.Fill(0);
otb::SarImageMetadataInterface::PointSetType::PixelType pointValue;
pointValue.Fill(0);
for (unsigned int i = 0; i < pointSet->GetNumberOfPoints(); ++i)
{
pointSet->GetPoint(i, &point);
......
......@@ -84,7 +84,6 @@ int otbVectorImageFileWriterScalarTestWithoutInputGeneric(int argc, char* argv[]
IteratorType it(image, image->GetLargestPossibleRegion());
it.GoToBegin();
double val = 0.;
ImagePixelType pixVal;
pixVal.SetSize(atoi(argv[3]));
......@@ -179,7 +178,6 @@ int otbVectorImageFileWriterComplexTestWithoutInputGeneric(int argc, char* argv[
IteratorType it(image, image->GetLargestPossibleRegion());
it.GoToBegin();
double val = 0.;
ImagePixelType pixVal;
pixVal.SetSize(atoi(argv[3]));
......
......@@ -84,7 +84,6 @@ int otbVectorImageStreamingFileWriterScalarTestWithoutInputGeneric(int argc, cha
IteratorType it(image, image->GetLargestPossibleRegion());
it.GoToBegin();
double val = 0.;
ImagePixelType pixVal;
pixVal.SetSize(atoi(argv[3]));
......@@ -105,7 +104,6 @@ int otbVectorImageStreamingFileWriterScalarTestWithoutInputGeneric(int argc, cha
writer->SetInput(image);
writer->Update();
return EXIT_SUCCESS;
}
......@@ -180,7 +178,6 @@ int otbVectorImageStreamingFileWriterComplexTestWithoutInputGeneric(int argc, ch
IteratorType it(image, image->GetLargestPossibleRegion());
it.GoToBegin();
double val = 0.;
ImagePixelType pixVal;
pixVal.SetSize(atoi(argv[3]));
......
......@@ -53,6 +53,7 @@ int otbImageLayerScalar(int argc, char * argv[])
// Quicklook
shrinker->SetInput(reader->GetOutput());
shrinker->SetShrinkFactor(ssrate);
shrinker->Update();
// new layer
LayerType::Pointer layer = LayerType::New();
......
......@@ -65,6 +65,7 @@ int otbImageLayerVector(int argc, char * argv[])
// Quicklook
shrinker->SetInput(reader->GetOutput());
shrinker->SetShrinkFactor(ssrate);
shrinker->Update();
// new layer
LayerType::Pointer layer = LayerType::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment