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

MRG

parents da7026cb 10dc27a4
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,9 @@ LineSegmentDetector<TInputImage, TPrecision>
::LineSegmentDetector()
{
m_DirectionsAllowed = 1. / 8.;
m_DirectionsAllowed = 1. / 16.;
m_Prec = CONST_PI * m_DirectionsAllowed;
m_Threshold = 2.;
m_Threshold = 5.2;
/** Compute the modulus and the orientation gradient images */
m_GradientFilter = GradientFilterType::New();
......@@ -108,7 +108,7 @@ LineSegmentDetector<TInputImage, TPrecision>
/** Compute the modulus and the orientation gradient image*/
m_GradientFilter->SetInput(castFilter->GetOutput());
m_GradientFilter->SetSigma(1.3);
m_GradientFilter->SetSigma(0.3);
m_MagnitudeFilter->SetInput(m_GradientFilter->GetOutput());
m_OrientationFilter->SetInput(m_GradientFilter->GetOutput());
......@@ -169,10 +169,10 @@ LineSegmentDetector<TInputImage, TPrecision>
max = minmaxCalculator->GetMaximum();
/** Compute the threshold on the gradient*/
m_Threshold = 4 * m_Threshold / vcl_sin(m_Prec) * ((max - min) / 255.); // threshold normalized with min & max of the values
m_Threshold = m_Threshold * ((max - min) / 255.); // threshold normalized with min & max of the values
/** Computing the length of the bins*/
unsigned int NbBin = 10;
unsigned int NbBin = 1024;
double lengthBin = static_cast<double>((max - min)) / static_cast<double>(NbBin - 1);
CoordinateHistogramType tempHisto(NbBin); /** Initializing the histogram */
......
......@@ -11,7 +11,7 @@ ENDIF(OTB_USE_MAPNIK)
IF( NOT OTB_DISABLE_CXX_TESTING AND BUILD_TESTING )
SET(BASELINE ${OTB_DATA_ROOT}/Baseline/Examples/Visualization)
SET(INPUTDATA ${OTB_DATA_ROOT}/Input)
SET(INPUTDATA ${OTB_DATA_ROOT}/Input)
#Remote sensing images (large images )
......@@ -35,7 +35,7 @@ IF(OTB_DATA_USE_LARGEINPUT)
${INPUTLARGEDATA}/VECTOR/MidiPyrenees/roads.shp
${OTB_DATA_ROOT}/Input/DEM/srtm_directory
0
${BASELINE_FILES}/DejaVuSans.ttf
${INPUTDATA}/DejaVuSans.ttf
)
ENDIF(OTB_USE_MAPNIK)
ENDIF(OTB_DATA_USE_LARGEINPUT)
......
......@@ -794,7 +794,7 @@ ADD_TEST(coTvVectorDataToImageFilter ${COMMON_TESTS9}
otbVectorDataToImageFilter
${LARGEINPUT}/VECTOR/MidiPyrenees/roads.shp
${TEMP}/coTvVectorDataToImageFilter.png
${BASELINE_FILES}/DejaVuSans.ttf # font
${INPUTDATA}/DejaVuSans.ttf # font
)
ADD_TEST(coTvVectorDataToImageFilterBinary ${COMMON_TESTS9}
......@@ -829,7 +829,7 @@ ADD_TEST(coTvVectorDataToImageFilterSensorModel ${COMMON_TESTS9}
${LARGEINPUT}/VECTOR/MidiPyrenees/roads.shp
${LARGEINPUT}/QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF
${TEMP}/coTvVectorDataToImageFilterSensorModel.png
${BASELINE_FILES}/DejaVuSans.ttf # font
${INPUTDATA}/DejaVuSans.ttf # font
)
ENDIF(OTB_DATA_USE_LARGEINPUT)
......@@ -844,7 +844,7 @@ ADD_TEST(coTvVectorDataToImageFilterWorld ${COMMON_TESTS9}
500 500 #Size
-20 60 #lon/lat
0.1 -0.1 #spacing lon/lat
${BASELINE_FILES}/DejaVuSans.ttf # font
${INPUTDATA}/DejaVuSans.ttf # font
)
......
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