定义和比较图像? [英] Defining and comparing Images?

查看:55
本文介绍了定义和比较图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在做一个小项目(对我来说很重要,因为我几乎都是菜鸟)。我有这个soltaire游戏,当一张卡被捕获。我希望那张卡片用蓝色背景着色。换句话说,它已经被播放了。


您如何比较1张卡片,将黑桃王牌与另一张图片盒中的同一张卡片进行比较?含义卡片在一个图片盒中捕获,另一个图片盒将转换为某种颜色,使其消失。


我的伪代码是这样的:

如果pictbox1 = pictbox2那么

颜色即pictbox2为蓝色

否则让它可见

结束IF


所以真正的问题是我如何比较图像并定义它们,比如.bmp和图像框中的相同图像。


我可以在卡片上找到特定的十六进制颜色,然后pictbox2中的卡片就会消失。你会如何定义十六进制颜色?你会如何分析它?


很抱歉这个问题很多。如果您有问题我可以为您清理。


谢谢


PS使用vb.net 2005

Hi all,

I''m doing a little project (big for me because I''m pretty much a noob). I have this soltaire game and when a card is captured. I want that card to be colored with a blue background. In other words, that its been played.

How would you go about comparing 1 card say the ace of spades to that same card in another picturebox? Meaning The card is capture in one picturebox and the other picturebox will turn a certain color, making it disappear.

My pseudo code is something like this:
If pictbox1 = pictbox2 Then
color that pictbox2 to blue
Else leave it visible
End IF

So the real problem is how do I compare images and define them, like a .bmp to the same image as in ,say pictbox2.

Could I find a specific hex color on the card and then the card in pictbox2 disappears. How would you define hex color and how would you analzye it?

Sorry for the many questions. If you have a question I can clear it up for you.

Thanks

PS working with vb.net 2005

推荐答案


大家好,


我正在做一个小项目(大项目)我,因为我几乎是一个菜鸟。我有这个soltaire游戏,当一张卡被捕获。我希望那张卡片用蓝色背景着色。换句话说,它已经被播放了。


您如何比较1张卡片,将黑桃王牌与另一张图片盒中的同一张卡片进行比较?含义卡片在一个图片盒中捕获,另一个图片盒将转换为某种颜色,使其消失。


我的伪代码是这样的:

如果pictbox1 = pictbox2那么

颜色即pictbox2为蓝色

否则让它可见

结束IF


所以真正的问题是我如何比较图像并定义它们,比如.bmp和图像框中的相同图像。


我可以在卡片上找到特定的十六进制颜色,然后pictbox2中的卡片就会消失。你会如何定义十六进制颜色?你会如何分析它?


很抱歉这个问题很多。如果您有问题,我可以为您清理。


谢谢


PS使用vb.net 2005
Hi all,

I''m doing a little project (big for me because I''m pretty much a noob). I have this soltaire game and when a card is captured. I want that card to be colored with a blue background. In other words, that its been played.

How would you go about comparing 1 card say the ace of spades to that same card in another picturebox? Meaning The card is capture in one picturebox and the other picturebox will turn a certain color, making it disappear.

My pseudo code is something like this:
If pictbox1 = pictbox2 Then
color that pictbox2 to blue
Else leave it visible
End IF

So the real problem is how do I compare images and define them, like a .bmp to the same image as in ,say pictbox2.

Could I find a specific hex color on the card and then the card in pictbox2 disappears. How would you define hex color and how would you analzye it?

Sorry for the many questions. If you have a question I can clear it up for you.

Thanks

PS working with vb.net 2005



我认为你的问题非常复杂


你正在使用哪个数据库?


使用控制数组和差异图片


I think your problem is pretty complicated


which Database you are using?

use control array and diff pic in that


我没有使用数据库。我想我需要更多地研究视觉基础知识。这是我的头脑。我大约一个月前开始,所以也许我可以通过更多的研究和学习来改进我的问题。


感谢您的回复
I''m not using a database. I think I need to research more on visual basics. This is over my head. I started about a month ago so maybe I can refine my questions with more research and studying.

Thanks for the reply



我没有使用数据库。我想我需要更多地研究视觉基础知识。这是我的头脑。我大约一个月前开始,所以也许我可以通过更多的研究和学习来改进我的问题。


感谢您的回复
I''m not using a database. I think I need to research more on visual basics. This is over my head. I started about a month ago so maybe I can refine my questions with more research and studying.

Thanks for the reply



你的项目是扑克牌


is your project is an playing cards


这篇关于定义和比较图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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