Skip to content

Commit

Permalink
Lastest works
Browse files Browse the repository at this point in the history
  • Loading branch information
taznux committed Jul 27, 2016
1 parent 9a68ae5 commit 57acda4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Tools/ContourTools/SRC/ExtractBoundary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,17 @@ int main( int argc, char *argv[] )
}

bool isTumorOnly = 0;
bool isExpand = 0;
if (argc > 5)
{
cout << argv[5] << endl;
if(strcmp(argv[5],"T")==0)
isTumorOnly = 1;
if(strcmp(argv[5],"TE")==0)
{
isTumorOnly = 1;
isExpand = 1;
}
}


Expand Down Expand Up @@ -343,9 +349,10 @@ int main( int argc, char *argv[] )

for (tumor.GoToBegin(), tumorOut.GoToBegin(), out.GoToBegin(); !tumor.IsAtEnd(); ++tumor, ++tumorOut, ++out)
{
if(tumor.Get() ==0 && tumorOut.Get() > 0 )
if((isExpand == 0 && tumor.Get() ==0 && tumorOut.Get() > 0)
|| (isExpand==1 && tumorOut.Get() > 0))
{
cout << "T ";
//cout << "T ";
out.Set(307);
}
}
Expand Down

0 comments on commit 57acda4

Please sign in to comment.