Commit c72e8f4f authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: first object had label zero (now labeling starts from one)

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
......
Supports Markdown
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