Skip to content

Commit

Permalink
for compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
derzu committed May 28, 2018
1 parent 27a0755 commit 2c607fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/Skeleton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,10 @@ void Skeleton::locateMainBodyPoints(cv::Mat &frame) {
* @return true if all the points of the line are inside the body region. false otherwise.
**/
bool Skeleton::isLineInside(Mat &frame, cv::Point p1, cv::Point p2) {
p1 /= subSample;
p2 /= subSample;
p1.x /= subSample;
p1.y /= subSample;
p2.x /= subSample;
p2.y /= subSample;
std::vector<cv::Point> * lines = DrawAux::lineBresenham(p1, p2);
//printf("isLineInside::count=%ld::%d %d::%d %d\n", lines->size(), p1.x, p1.y, p2.x, p2.y);
int q = 0;
Expand All @@ -480,8 +482,10 @@ bool Skeleton::isLineInside(Mat &frame, cv::Point p1, cv::Point p2) {
}

int Skeleton::qPointsLineOutside(Mat &frame, cv::Point p1, cv::Point p2) {
p1 /= subSample;
p2 /= subSample;
p1.x /= subSample;
p1.y /= subSample;
p2.x /= subSample;
p2.y /= subSample;
std::vector<cv::Point> * lines = DrawAux::lineBresenham(p1, p2);
//printf("isLineInside::count=%ld::%d %d::%d %d\n", lines->size(), p1.x, p1.y, p2.x, p2.y);
int q = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ int main(int argc, char** argv)
#endif

#ifdef DEPTH
printf("main::Compilado com Depth\n");
printf("main::Compiled with Depth\n");
#else
printf("main::Compilado SEM Depth\n");
printf("main::Compiled witout Depth\n");
#endif

/*if (argc > 1)
Expand Down

0 comments on commit 2c607fb

Please sign in to comment.