Skip to content

Fixed cv::remap() crach when the neural network did not detect any features#1488

Merged
matlabbe merged 1 commit intointrolab:masterfrom
borongyuan:master
Apr 27, 2025
Merged

Fixed cv::remap() crach when the neural network did not detect any features#1488
matlabbe merged 1 commit intointrolab:masterfrom
borongyuan:master

Conversation

@borongyuan
Copy link
Copy Markdown
Contributor

If the neural network does not detect any features, cv::remap(coarse_desc, descriptors, map1, map2, cv::INTER_LINEAR); will crash because map1 and map2 are empty.

This may happen when the camera is completely blocked or when the image becomes completely black or white due to a sudden change in lighting.

@matlabbe matlabbe merged commit def9932 into introlab:master Apr 27, 2025
4 of 6 checks passed
@matlabbe
Copy link
Copy Markdown
Member

Thanks!

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.

2 participants