Home > Software engineering >  Images can be variable, just learn to teach
Images can be variable, just learn to teach

Time:11-22

Dim a
If a=1 picture then
For the first operation
If a=2 picture then
For the second operation
If a=3 picture then
For the third operation

Variables are Numbers, I will only do not know can is corresponding to the picture, if you can, how to put the picture as a variable, seek advice

CodePudding user response:

Don't usually do,
If the code inside this, apart from grammar, isn't that right, this comparison is an object, the object of comparison is the comparison of reference address, so if not refer to the same address is false, this determination
If it is on the comparison of image data, then for the two pictures, in theory should be a pixel by comparison, there are two problems: 1, 2, compare the amount of data is too big for the lossy compression of data is out there must be some differences, such as a BMP and a JPG you look, more is different,
Suggested comparative method:
1, if confirmed two image data is completely consistent, then extracts the two data respectively, such as MD5 results and compare
2, if it is after the lossy compression of data comparison, to a certain tolerance coefficient of pixels compared again,

CodePudding user response:

reference 1/f, crispy big ice cream reply:
don't usually do,
If the code inside this, apart from grammar, isn't that right, this comparison is an object, the object of comparison is the comparison of reference address, so if not refer to the same address is false, this determination
If it is on the comparison of image data, then for the two pictures, in theory should be a pixel by comparison, there are two problems: 1, 2, compare the amount of data is too big for the lossy compression of data is out there must be some differences, such as a BMP and a JPG you look, more is different,
Suggested comparative method:
1, if confirmed two image data is completely consistent, then extracts the two data respectively, such as MD5 results and compare
2, if it is after the lossy compression of data comparison, to a certain tolerance coefficient to compare pixels,

Thanks brother, thank you thank you thank you
  • Related