Skip to content
Snippets Groups Projects
Commit dd73be16 authored by OTB Bot's avatar OTB Bot
Browse files

Correction des tests en erreurs, adaptation du code pour le support de SUNoS.

parent d644dc3f
Branches
Tags
No related merge requests found
......@@ -211,7 +211,8 @@ namespace otb
for (int j =0; j<InputImageType::ImageDimension;j++)
{
sizeTmp=size[j];
size[j]=static_cast<unsigned int>(static_cast<double>(sizeTmp)/this->GetSubSampleScale());
// As we knwow that our values will always be positive ones, we can simulate round by ceil(value+0.5)
size[j]=static_cast<unsigned int>(ceil((static_cast<double>(sizeTmp)/this->GetSubSampleScale())+0.5));
}
otbMsgDebugMacro(<<"New size: "<<size);
......
......@@ -48,9 +48,9 @@
// estimation of the SVM model. Left: RGB image. Right: image of labels.}
// \label{fig:SVMROISMULTI}
// \end{figure}
//
// The following header files are needed for the program:
//
// Software Guide : EndLatex
......@@ -85,7 +85,7 @@ int main( int argc, char *argv[])
const char* inputImageFileName = argv[1];
const char* trainingImageFileName = argv[2];
const char* outputImageFileName = argv[3];
const char* outputModelFileName = argv[4];
// const char* outputModelFileName = argv[4];
// Software Guide : BeginLatex
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment