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

ENH: Force forward relations only when inverted mode is disabled

parent 3ace8b21
No related branches found
No related tags found
No related merge requests found
......@@ -341,7 +341,18 @@ PolygonListToRCC8GraphFilter<TPolygonList, TOutputGraph>
{
// Add the edge to the graph.
otbMsgDevMacro(<<"Adding edge: "<<vIt1.GetIndex()<<" -> "<<vIt2.GetIndex()<<": "<<value);
m_EdgesPerThread[threadId][EdgePairType(vIt1.GetIndex(),vIt2.GetIndex())]=value;
if(value==OTB_RCC8_NTPPI)
{
m_EdgesPerThread[threadId][EdgePairType(vIt2.GetIndex(),vIt1.GetIndex())]=OTB_RCC8_NTPP;
}
else if(value == OTB_RCC8_TPPI)
{
m_EdgesPerThread[threadId][EdgePairType(vIt2.GetIndex(),vIt1.GetIndex())]=OTB_RCC8_TPP;
}
else
{
m_EdgesPerThread[threadId][EdgePairType(vIt1.GetIndex(),vIt2.GetIndex())]=value;
}
if (m_UseInverted)
{
m_EdgesPerThread[threadId][EdgePairType(vIt2.GetIndex(),vIt1.GetIndex())]=invert[value];
......
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