Skip to content

Commit

Permalink
Fix build around vpMath::equal usage adding VISP_NAMESPACE_ADDRESSING
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Jan 3, 2025
1 parent 73f6846 commit c5a1d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial/particle-filter-curve-fitting/vpTutoCommonData.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ typedef struct vpTutoCommonData
#if defined(VISP_HAVE_DISPLAY)
const int horOffset = 20, vertOffset = 25;
std::string skeletonTitle("Skeletonized image (");
skeletonTitle += (vpMath::equal(m_ratioSaltPepperNoise, 0.) ? "without" : std::to_string(static_cast<unsigned int>(m_ratioSaltPepperNoise * 100.)) + "%");
skeletonTitle += (VISP_NAMESPACE_ADDRESSING vpMath::equal(m_ratioSaltPepperNoise, 0.) ? "without" : std::to_string(static_cast<unsigned int>(m_ratioSaltPepperNoise * 100.)) + "%");
skeletonTitle += " noise)";
m_displayOrig = VISP_NAMESPACE_ADDRESSING vpDisplayFactory::createDisplay(m_I_orig, horOffset, vertOffset, "Original image");
m_displaySegmented = VISP_NAMESPACE_ADDRESSING vpDisplayFactory::createDisplay(m_I_segmented, 2 * horOffset + m_I_orig.getWidth(), vertOffset, "Segmented image");
Expand Down Expand Up @@ -304,7 +304,7 @@ typedef struct vpTutoCommonData
return true;
}
#endif
}vpTutoCommonData;
} vpTutoCommonData;
}
#endif
#endif
Expand Down

0 comments on commit c5a1d37

Please sign in to comment.