Skip to content

Visibility Estimator#3

Open
artemiipatov wants to merge 6 commits intomasterfrom
visibility-estimator
Open

Visibility Estimator#3
artemiipatov wants to merge 6 commits intomasterfrom
visibility-estimator

Conversation

@artemiipatov
Copy link
Copy Markdown
Collaborator

No description provided.

1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, -cameraHeight / sin(pitch),
0, 0, 0, 1);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

what if pitch = 0?

Comment thread VisibilityEstimator/src/contourDrawer.h Outdated
Comment on lines +1 to +3
#pragma once
#ifndef CONTOURDRAWER_H
#define CONTOURDRAWER_H
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Зачем и pragma once, и стражи включения в старом стиле?

Comment thread VisibilityEstimator/src/contourDrawer.h Outdated
class ContourDrawer
{
public:
static void colorContours(cv::Mat frame, const std::vector<std::vector<cv::Point>>& contours);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

frame вроде тоже можно по константной ссылке передавать

Comment thread VisibilityEstimator/src/imageFilter.cpp Outdated
return resultImage;
}

cv::Mat ImageFilter::selectMinimumForEachPixel(std::deque<cv::Mat> images)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Вообще, у Вас параметры то по константной ссылке передаются, то по значению, как-то без системы. По значению плохо, потому что будет копирование при вызове.

0, 0, 1);

cv::Mat matrix = instrinsicMatrix * transformationMatrix;
//for (int i = 0; i < 3; i++) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ой, закомментированный код в основную ветку нельзя принимать

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.

3 participants