图像文件比较 [英] Image file comparison

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

问题描述

有人可以给我一个代码,将500个以上的文本文件(pdb)与另一个pdb文件进行比较,并在python中过滤不匹配的文件吗?我是编程新手.由于执行软件,我得到了一些pdb文件.我的任务是将它们与一个pdb匹配并过滤不匹配的那个.该软件是用python编写的,输出是存储为pdb文件的分子结构.我需要将数百个这些结构与单个结构进行匹配,无论哪个都不匹配,我都必须过滤这些pdb文件.

抱歉,我以前误解了pdb文件,搞砸了我的问题.
我的pdb文件具有所有的原子值等,就像文本文件一样.

解决方案

您编辑了帖子以添加我是编程新手",而忽略了我问你的问题.我敢肯定,我可以肯定地说这意味着您要问的任务,您不知道如何量化,这只会增加您想做的事情的可能性,而Python不可能做到这一点,并且一般而言,您可能无法胜任的工作.我建议您重新考虑手头的任务,或者为我们适当地定义它,因为如果您完全可以做您想做的事情(并且我怀疑您可以这样做),那么我相信它不会在Python中出现.

我以前没有收到您的任何回复.我刚收到你的回信.无论如何,我对c和C ++很熟悉.我就像被卡住了.我不知道从哪里开始以及如何开始.由于执行软件,我得到了一些pdb文件.我的任务是将它们与一个pdb(一种分子的结构)相匹配并过滤不匹配的那个.

谢谢,
Srjam


是的,是的,如果您使用真实的电子邮件地址注册,您将收到一封电子邮件.答案部分仅提供答案,而不是问题,不是您本人的问题.您应该编辑您的帖子以添加详细信息.我在下面的论坛中发布了问您要做什么的事情.

您说您是编程的新手,现在您说您知道C和C ++,那怎么可能?

PDB不是图像格式.它是一种数据库格式.如果要搜索500个数据库以与主数据库进行比较,为什么要使用python来做到这一点?我已经编写了将Win32数据库链接到Python的代码,因此可以编写C ++代码并让python执行它.问题是,为什么要这样做?


Hi, can anyone give me a code for comparing >500 text files(pdb) against another pdb file and filter mismatched files in python? I am new to programming. I have got as a result of executing a software some pdb files. My task is to match them against one pdb and filter whichever do not match. The software is written in python.The outputs are structure of molecules that are stored as pdb files. I need to match hundreds of these structures against a single structure and whichever do not match I have to filter those pdb files.

Sorry, I previously misunderstood pdb files and screwed up my question.
My pdb files has all the atoms values etc its like a text file.

解决方案

You edited your post to add ''I am new to programming'' and ignored the questions I asked you. I''m pretty sure I can safely say that this means that the task you''re asking about, you have no idea how to quantify, which only increases the odds that what you want to do, is not possible with Python, and in general beyond what you''re likely to be capable of. I suggest you reconsider the task at hand, or perhaps define it properly for us, because if you can do what you want at all ( and I doubt you can ), I am sure it won''t be with Python.


I dint get any reply from you previously. I have just got one reply from you. Anyways, I am familiar with c and C++. I am just like that stuck. I do not know where to start and how.I have got as a result of executing a software some pdb files. My task is to match them against one pdb( structure of a molecule) and filter whichever do not match.

Thanks,
Srjam


Yes, you did, and if you''d registered with a real email address, you''d have got an email. The answers section is for answers, not questions, not yours or mine. You should edit your post to add detail. I posted in the forum below to ask you what you''re trying to do.

You say you''re new to programming, and now you say you know C and C++, how is that possible ?

PDB is not an image format. It''s a database format. If you''re searching 500 databases to compare against a main DB, why would you use python to do that ? I have written code that links a Win32 database to Python, so it''s possible to write C++ code and have python execute it. The question is, why do it that way ?


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

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