English 中文(简体)
不同决议的图像比较
原标题:Comparing images with different resolutions

是否有可能将两种图像与不同的决议相比较?

我这里指的是一些算法/方案拟订方法。 例如,现在,我计算出hash代码,从图像外围阵列,并比较这些散列代码数值。 这是一项巨大的工作,但在不同的决议中却失败了,即:图像是相同的bywatch,但其内容不一样。

For example see my image attaches:
enter image description hereenter image description here

其中一个网站72 ppi,但另一个网站96 ppi。 在对平等进行比较时,我想有TRUE值,但现在我获得<>FALSE。 请在此找到正确的解决办法。

最佳回答

Two very simple perceptual hashing methods you might give a try before venturing into more complicated territory are based on the Discrete Cosine Transform and the local vs glocal mean of an image:

  1. 图像转换为光电

    1.1(EDIT) 塑造你的形象

  2. Crush your image down to thumbnail size, say [32x32]
  3. Run the two dimensional Discrete Cosine Transform
  4. Keep the top left [8 x 8], most significant low frequency components
  5. Binarize the block, based on the sign of the components
  6. Result is a 64 bit hash

关于这一主题的备选案文是

  1. 图像转换为光电
  2. Optionally re-size to a predefined size.
  3. Partition the image in a fixed number of blocks
  4. Determine the global mean
  5. Determine the local mean per block
  6. For the hash, write out a 1 or a 0 per block, pending if the local mean was larger or smaller than the global mean.

另见

问题回答

对于有几张不同颜色的合成图像,我首先要用自己的图相配。

基本上将每张颜色的颜色数量乘以图象总数。 然后,你有简单的浮质,作为inger。 如果你希望有更多或更少边界的图像能够算作匹配,你就可以忽视白人。

It s not going to detect the same image with the slices re-arranged, or the text moved down a line but i don t think that is the concern in this case





相关问题
Find the closest time from a list of times

So, here s the scenario. I have a file with a created time, and I want to choose a time from a list of times that that file s created time is closest or equal too...what would be the best way to ...

PHP Comparison Operators and Data Types

I m currently working through O Reilly s "Programming PHP" and have come across this table titled "Type of comparison performed by the comparison operators": First Operand | Second ...

Loop Until Condition Reached, iPhone

I have a problem here... After a button is pressed I want a loop to run until a condition is reached: - (IBAction)buttonclick1 ... if ((value2ForIf - valueForIf) >= 3) { ... I would like a loop ...

nuSoap or Zend Soap? [closed]

I would like to know the differences between nusoap and ZendSoap, which is the best? what benefits and disadvantages of each? Anyone who has used both technologies could make this comparison? Thank ...

Logic for a file compare

I trying to write a programm for file compare. For example: file1 1 2 3 4 5 file2 1 2 @ 3 4 5 If I do it line by line, I get: 1 == 1; 2 == 2; 3 != @; 4 != 3; 5 != 4; != 5; But, the truth is ...

热门标签