-
Notifications
You must be signed in to change notification settings - Fork 868
Accept portrait imagery/video as input #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the nice code and the PR.
Would you check some comments?
// If the aspect ratio is less than 1, the patches are made in a vertical direction | ||
num_x_grid = 1; | ||
num_y_grid = std::round(1 / ratio); | ||
delta_x = max_x - min_y; | ||
delta_y = static_cast<double>(max_y - min_y) / num_y_grid; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This scope seems to be processed when the aspect ratio is equal to or less than 1.
Could you modify the comment?
@@ -500,7 +524,12 @@ std::list<orb_extractor_node> orb_extractor::initialize_nodes(const std::vector< | |||
|
|||
// Assign all keypoints to initial nodes which own keypoint's position | |||
for (const auto& keypt : keypts_to_distribute) { | |||
initial_nodes.at(keypt.pt.x / delta_x)->keypts_.push_back(keypt); | |||
// x / y index of the patch where the keypt place |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the keypt place" -> "the keypt is placed" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still run failed
hi ,I changed the code according to your change, but it still runs failed on portrait imagery/video |
@fangxu622 @MikiyaShibuya |
I‘m sorry for late., the error message like this , when the portrait imagery appears on the video
|
@fangxu622 |
According to #124, I conclude that the problem the feature extractor could not accept portrait imagery has been solved. |
@shinsumicco @MikiyaShibuya Hi , Sorry , My video data have some bug that was resulted in this bug. It's my problem |
Fix the crash when the portrait images or videos are feed.
When any portrait images are given as input, the orb feature extractor made crashes due to only landscape imagery input are assumed.
In order to fix the problem, I make some additional processes to accept the portrait images or videos.