Skip to content

Corner detection#51

Open
shiba24 wants to merge 4 commits intodevelopfrom
corner_detection
Open

Corner detection#51
shiba24 wants to merge 4 commits intodevelopfrom
corner_detection

Conversation

@shiba24
Copy link
Contributor

@shiba24 shiba24 commented Jun 29, 2019

Related issue:

@muskie82 muskie82 force-pushed the corner_detection branch 2 times, most recently from 71c1fdf to 19a0c89 Compare July 7, 2019 21:51
@muskie82 muskie82 force-pushed the corner_detection branch from 19a0c89 to 9ab7819 Compare July 7, 2019 21:58
usleep(ts - before_time);
}
pol = static_cast<bool>(pol_raw);
EventTuple tup = std::make_tuple(ts, x, y, pol_raw);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of deleting l37 (yes this may be a bug):

pol = static_cast<bool>(pol_raw);
EventTuple tup = std::make_tuple(ts, x, y, pol);

?

Tuple of <int32_t timestamp, uint16_t x, uint16_t y, bool polarity>.
*/
typedef std::tuple<int32_t, uint16_t, uint16_t, bool> EventTuple;
typedef std::tuple<double, uint16_t, uint16_t, bool> EventTuple;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you change this?

#include <tuple>
#include <memory>

#include <libcaercpp/libcaer.hpp>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you change the order here to l3?

double a = cv::sum(dx2_)[0];
double d = cv::sum(dy2_)[0];
double b = cv::sum(dxy_)[0];
double c = b;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need to define c?

double c = b;
Eigen::Matrix2d M;
M << a, b,
c, d;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce one indent?

double a = cv::sum(dx2_)[0];
double d = cv::sum(dy2_)[0];
double b = cv::sum(dxy_)[0];
double c = b;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

double c = b;
Eigen::Matrix2d M;
M << a, b,
c, d;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same


int ret;
double ts, x, y, pol_raw;
std::queue<evl::EventTuple> que;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change the name to event_queue ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or something more informative

@shiba24
Copy link
Contributor Author

shiba24 commented Jul 9, 2019

@muskie82 i reviewed. please see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants