Skip to content
Snippets Groups Projects
Commit 0661f6ff authored by Luc Hermitte's avatar Luc Hermitte
Browse files

REFACT: Simplify and clean logs

parent 05c7e331
No related branches found
No related tags found
1 merge request!1Resolve "Adapt DiapOTB SARCartesianMeanEstimation to keep shadows"
......@@ -311,8 +311,8 @@ SARDEMPolygonsAnalysisImageFilter< TImageIn, TImageOut, TImageDEM, TImageSAR, TF
// Origin, Spacing and Size (SAR image geometry) in function of ML factors
ImageOutSizeType outputSize;
outputSize[0] = std::max<ImageOutSizeValueType>(static_cast<ImageOutSizeValueType>(std::floor( (double) m_NbColSAR/ (double) m_MLRan)),1);
outputSize[1] = std::max<ImageOutSizeValueType>(static_cast<ImageOutSizeValueType>(std::floor( (double) m_NbLinesSAR/ (double) m_MLAzi)),1);
outputSize[0] = std::max<ImageOutSizeValueType>(std::floor( (double) m_NbColSAR/m_MLRan), 1);
outputSize[1] = std::max<ImageOutSizeValueType>(std::floor( (double) m_NbLinesSAR/m_MLAzi), 1);
ImageOutPointType outOrigin = m_SarImagePtr->GetOrigin();
ImageOutSpacingType outSP = m_SarImagePtr->GetSignedSpacing();
......@@ -1017,8 +1017,8 @@ SARDEMPolygonsAnalysisImageFilter< TImageIn, TImageOut, TImageDEM, TImageSAR, TF
// The Projeted DEM Pixel/Bands is always into SAR geometry => must be adapted for mlRan and mlAzi != 1
// If mlRan and mlAzi == 1 same as SAR geometry (loop on ind_Line_start=ind_Line only)
int ind_Line_start = OutIt.GetIndex()[1] * m_MLAzi + int(origin[1]);
int ind_Line_end = (OutIt.GetIndex()[1]+1) * m_MLAzi + int(origin[1]);
int ind_Line_start = OutIt.GetIndex()[1] * m_MLAzi + int(origin[1]);
int ind_Line_end = (OutIt.GetIndex()[1]+1) * m_MLAzi + int(origin[1]);
if (ind_Line_end > (m_NbLinesSAR + int(origin[1])))
{
ind_Line_end = m_NbLinesSAR + int(origin[1]);
......@@ -1321,10 +1321,11 @@ SARDEMPolygonsAnalysisImageFilter< TImageIn, TImageOut, TImageDEM, TImageSAR, TF
progress.CompletedPixel(); // Completed...Line()
} // End lines (Main output)
std::cout << "IN VS OUT: " << cpt_in_window << " VS " << cpt_out_window
<< " / " << (cpt_out_window + cpt_in_window)
<< " ; lines w/o match: " << cpt_lines_with_no_match << " / " << nbDEMLines
<< std::endl;
otbMsgDevMacro(
"IN VS OUT: " << cpt_in_window << " VS " << cpt_out_window
<< " / " << (cpt_out_window + cpt_in_window)
<< " ; lines w/o match: " << cpt_lines_with_no_match << " / " << nbDEMLines
);
}
} /*namespace otb*/
......
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