Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cresson Remi
LSGRM
Commits
c72e8f4f
Commit
c72e8f4f
authored
Apr 11, 2018
by
Gaetano Raffaele
Browse files
FIX: first object had label zero (now labeling starts from one)
parent
ac5677f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/otbStreamingGraphToImageFilter.txx
View file @
c72e8f4f
...
...
@@ -135,7 +135,7 @@ StreamingGraphToImageFilter<TGraph, TLabelImage>
try {
index[0] = (unsigned int)(pix % (std::size_t)(m_OutputSize[0]));
index[1] = (unsigned int)(pix / (std::size_t)(m_OutputSize[0]));
labelImage->SetPixel(index, res.second);
labelImage->SetPixel(index, res.second
+ 1
);
} catch (std::exception e) {
std::cout << "Pixel ID: " << pix << std::endl;
std::cout << "Derived index: " << index[0] << "," << index[1] << std::endl;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment