Skip to content
Snippets Groups Projects
Commit 3cffedfe authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

ENH : Adapt margin according size image into SARDEMPolygonsAnalysis filter

parent 37a42b4a
No related branches found
No related tags found
1 merge request!16Merge branch Cosmo
......@@ -179,10 +179,14 @@ namespace otb
// Set the margin
int nbLinesSAR = m_SarImagePtr->GetLargestPossibleRegion().GetSize()[1];
int nbLinesDEM = m_DemImagePtr->GetLargestPossibleRegion().GetSize()[1];
if (nbLinesSAR > nbLinesDEM)
if (nbLinesSAR/2 > nbLinesDEM)
{
m_Margin = (nbLinesSAR/nbLinesDEM)*30;
}
else if (nbLinesSAR > nbLinesDEM)
{
m_Margin = (nbLinesSAR/nbLinesDEM)*60;
}
else
{
m_Margin = 100;
......
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