frame tests complete successfully.
This commit is contained in:
@ -77,6 +77,11 @@ void clean_frame(Frame *f) {
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
DartOpenMvg::Frame::Frame(const DartOpenMvg::Frame &frame) {
|
||||
cFrame = frame.cFrame;
|
||||
mRegions = std::unique_ptr<openMVG::features::Regions>(frame.mRegions.get());
|
||||
}
|
||||
|
||||
openMVG::image::Image<u_char> DartOpenMvg::imageFromFrame(const CFrame *frame)
|
||||
{
|
||||
rewind(frame->stream);
|
||||
@ -112,10 +117,10 @@ void DartOpenMvg::Frames::computeMatches()
|
||||
// Within openMvg::matching_image_collection::Matcher
|
||||
// they matcha gainst *ALL* images. However, since we know the order of the
|
||||
// image sequences (video frames), we'll stick to the sequence order.
|
||||
for (size_t i = 0; i < this->size() - 1; ++i)
|
||||
for (size_t i = 0; i < mFrames.size() - 1; ++i)
|
||||
{
|
||||
const Frame &frame1 = this->at(i);
|
||||
const Frame &frame2 = this->at(i + 1);
|
||||
const Frame &frame1 = mFrames[i];
|
||||
const Frame &frame2 = mFrames[i+1];
|
||||
auto *regions1 = frame1.mRegions.get();
|
||||
auto *regions2 = frame2.mRegions.get();
|
||||
|
||||
|
Reference in New Issue
Block a user