如何按字典顺序比较两个bimaps,即使用字符串键逐个元素。 [英] How do I compare the two bimaps lexicographically, that is element by element using the string key.

查看:47
本文介绍了如何按字典顺序比较两个bimaps,即使用字符串键逐个元素。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比较两对,比较基于每对的.first,这是关键。



我尝试过:



我没有尝试任何东西,因为我不知道如何启动它。

解决方案

位图是二进制数据,因此您需要比较这些位。当它适用于类似时,你最好使用像 OpenCV图像比较这样的库。



从头开始重新审视你的任务并问你的老师,因为听起来你已经写好了。 :-O

Compare two pairs, and the comparison is based on the .first of each pair, which is the key.

What I have tried:

I haven't tried anything because I don't know how to start it.

解决方案

Bitmaps are binary data, so you need to compare the bits. When it goes for similiraty you better use some library like OpenCV image comparison.

Revisit your task from the scratch and ask your teacher, because it sounds weired what you have written. :-O


这篇关于如何按字典顺序比较两个bimaps,即使用字符串键逐个元素。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆