Skip to content

Commit

Permalink
fix cast/initialization of default values (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
headupinclouds authored Oct 21, 2017
1 parent 172a7d6 commit 1ddf488
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/drishti/geometry/Primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ inline cv::Point2f project2(const cv::Vec4f& line, const cv::Point2f& q)
// TODO: move this to a transformation class:
struct UniformSimilarityParams
{
cv::Vec2f scale = { 1.0, 1.5 };
cv::Vec2f deltaX = { -0.33, +0.33 };
cv::Vec2f deltaY = { -0.50, +0.50 };
cv::Vec2f theta = { -10.0 * M_PI / 180.0, 10.0 * M_PI / 180.0 };
cv::Vec2f scale = { 1.0f, 1.5f };
cv::Vec2f deltaX = { -0.33f, +0.33f };
cv::Vec2f deltaY = { -0.50f, +0.50f };
cv::Vec2f theta = { -10.0f * static_cast<float>(M_PI) / 180.0f, 10.0f * static_cast<float>(M_PI) / 180.0f };
};

cv::RotatedRect randomSimilarityEllipse(const UniformSimilarityParams& params, cv::RNG& rng);
Expand Down

0 comments on commit 1ddf488

Please sign in to comment.