frame tests complete successfully.

This commit is contained in:
Jordan
2024-03-23 10:44:50 -07:00
parent 2e304394e5
commit 3022adcbb7
5 changed files with 23 additions and 13 deletions

View File

@ -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();