Skip to content
Snippets Groups Projects
Commit a61ab795 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: update test to take into account label sorting

parent 2594cd35
Branches
Tags
No related merge requests found
......@@ -25,8 +25,8 @@
int otbSharkNormalizeLabels(int itkNotUsed(argc), char* itkNotUsed(argv) [])
{
std::vector<unsigned int> inLabels = {2, 2, 3, 20, 1};
std::vector<unsigned int> expectedDictionary = {2, 3, 20, 1};
std::vector<unsigned int> expectedLabels = {0, 0, 1, 2, 3};
std::vector<unsigned int> expectedDictionary = {1, 2, 3, 20};
std::vector<unsigned int> expectedLabels = {1, 1, 2, 3, 0};
auto newLabels = inLabels;
std::vector<unsigned int> labelDict;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment