Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch12 dense_mapping.cpp 为什么运行最后报错“已放弃 (核心已转储)” #322

Open
icefrogplus opened this issue Oct 1, 2024 · 3 comments

Comments

@icefrogplus
Copy link

*** loop 201 ***
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 140) > this->size() (which is 0)
已放弃 (核心已转储)

@icefrogplus
Copy link
Author

发现问题了,是索引超出范围了,给的数据不知道为什么少了一张照片,少了scene_107.png 所以是200张照片,但是对应的其他文件信息却是201个,所以运行到最后就会超出索引报错┭┮﹏┭┮
主函数的for循环改成下面就能跑通了:
for ( int index=1; index<color_image_files.size()-1; index++ )

@Zhiyehhh
Copy link

请问每个loop大概需要跑多久呢

@icefrogplus
Copy link
Author

请问每个loop大概需要跑多久呢

看电脑性能了吧,我的轻薄本200个loop要跑一个小时左右,游戏本可能快些

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

No branches or pull requests

2 participants