Commit b7ec07b5 authored by Cédric Traizet's avatar Cédric Traizet

DOC : added doc limitations (none)

parent 24587a42
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
* limitations under the License. * limitations under the License.
*/ */
#include <time.h>
#include "otbWrapperApplication.h" #include "otbWrapperApplication.h"
#include "otbWrapperApplicationFactory.h" #include "otbWrapperApplicationFactory.h"
...@@ -28,6 +25,8 @@ ...@@ -28,6 +25,8 @@
#include "otbLabelImageSmallRegionMergingFilter.h" #include "otbLabelImageSmallRegionMergingFilter.h"
#include "itkChangeLabelImageFilter.h" #include "itkChangeLabelImageFilter.h"
#include "otbStopwatch.h"
namespace otb namespace otb
{ {
namespace Wrapper namespace Wrapper
...@@ -77,7 +76,9 @@ private: ...@@ -77,7 +76,9 @@ private:
" pixel will be merged with adjacent segments, then" " pixel will be merged with adjacent segments, then"
" all segments of area equal to 2 pixels will be" " all segments of area equal to 2 pixels will be"
" processed, until segments of area minsize."); " processed, until segments of area minsize.");
SetDocLimitations( "None") ;
SetDocAuthors("OTB-Team"); SetDocAuthors("OTB-Team");
SetDocSeeAlso("Segmentation"); SetDocSeeAlso("Segmentation");
AddDocTag(Tags::Segmentation); AddDocTag(Tags::Segmentation);
...@@ -121,8 +122,9 @@ private: ...@@ -121,8 +122,9 @@ private:
void DoExecute() override void DoExecute() override
{ {
clock_t tic = clock(); // Start Timer for the application
auto Timer = Stopwatch::StartNew();
unsigned int minSize = GetParameterInt("minsize"); unsigned int minSize = GetParameterInt("minsize");
//Acquisition of the input image dimensions //Acquisition of the input image dimensions
...@@ -180,9 +182,10 @@ private: ...@@ -180,9 +182,10 @@ private:
} }
SetParameterOutputImage("out", changeLabelFilter->GetOutput()); SetParameterOutputImage("out", changeLabelFilter->GetOutput());
RegisterPipeline(); RegisterPipeline();
clock_t toc = clock();
otbAppLogINFO(<<"Elapsed time: "<<(double)(toc - tic) / CLOCKS_PER_SEC<< Timer.Stop();
" seconds"); otbAppLogINFO( "Total elapsed time: "<< float(Timer.GetElapsedMilliseconds())/1000 <<" seconds.");
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment