Skip to content
Snippets Groups Projects
Commit 3b7e5f86 authored by Julien Michel's avatar Julien Michel
Browse files

MAJ des tests et images en base avec l'imagette d'emmanuel.

parent 09ab9a76
No related branches found
No related tags found
No related merge requests found
......@@ -209,9 +209,9 @@ ADD_TEST(bfTvStreamingShrinkImageFilterQBMUL ${BASICFILTERS_TESTS}
${BASELINE}/bfTvSpectralAngleDistanceOutput.hdr
${TEMP}/bfTvSpectralAngleDistanceOutput.hdr
otbSpectralAngleDistanceImageFilter
${INPUTDATA}/InputForRoadDetection.tif
${INPUTDATA}/qb_RoadExtract.img.hdr
${TEMP}/bfTvSpectralAngleDistanceOutput.hdr
232 198
337 557 432 859
)
# A enrichir
......
......@@ -42,13 +42,16 @@ int otbSpectralAngleDistanceImageFilter(int argc, char * argv[])
reader->SetFileName(argv[1]);
writer->SetFileName(argv[2]);
InputImageType::IndexType refPixelIndex;
refPixelIndex[0]=atoi(argv[3]);
refPixelIndex[1]=atoi(argv[4]);
InputImageType::PixelType refPixel;
reader->Update();
refPixel.SetSize(reader->GetOutput()->GetNumberOfComponentsPerPixel());
for(unsigned int i = 0; i<reader->GetOutput()->GetNumberOfComponentsPerPixel();++i)
{
refPixel[i]=atoi(argv[3+i]);
}
filter->SetInput(reader->GetOutput());
filter->SetReferencePixel(reader->GetOutput()->GetPixel(refPixelIndex));
filter->SetReferencePixel(refPixel);
writer->SetInput(filter->GetOutput());
......
......@@ -481,7 +481,7 @@ ADD_TEST(feTvNeighborhoodScalarProductFilter ${FEATUREEXTRACTION_TESTS}
${INPUTDATA}/InputForRoadDetection_SpectralAngle.hdr
${TEMP}/feTvNeigborhoodScalarProductModulusOutput.hdr
${TEMP}/feTvNeigborhoodScalarProductDirectionOutput.hdr
2.0
1.0
)
# ------- otb::RemoveIsolatedByDirectionFilter -------------
......@@ -555,7 +555,7 @@ ADD_TEST(feTvVectorizationPathListFilterImageOutput ${FEATUREEXTRACTION_TESTS}
${INPUTDATA}/InputForRoadDetectionScalarProductDir.hdr
${TEMP}/feTvVectorizationPathListOutput.txt
${TEMP}/feTvVectorizationPathListOutput.png
0.0005
0.0001
)
# ------- otb::SimplifyPathFilter -------------
......
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