ermig1979 / AntiDupl

A program to search similar and defect pictures on the disk
https://ermig1979.github.io/AntiDupl
MIT License
1.29k stars 93 forks source link

Request: toggle superimposing one image over another #13

Open JMM72 opened 6 years ago

JMM72 commented 6 years ago

I think AntiDupl is almost the perfect tool for image duplicates; let me say that it's the best, but still not perfect for me. It lacks one single feature that I'm politely requesting, in hopes that it'll be implemented soon due to its potential usefulness.

First let me clarify that I work with large image collections where often there is more than one version of the same image, with small differences that aren't always visible to the naked eye. Hence I have to check visually certain images even with the large amount of information that AntiDupl gives about each duplicate pair. However visually comparing some images side to side is like playing one of those 'find the differences' games in ultra-hard mode.

To solve this problem, there's one method. It's just superimposing one of the image duplicates over the other. Ideally, there would be 2 keys attached to this function; one would scale and put the 2nd image over the 1st, and the other would scale and put the 1st image over the 2nd. It would act when pressed, and pressing the same key again will remove the overlayed image. Toggling the images in the same place and with the same scale will show instantly subtle differences that the difference detector (which is useful) can't display properly.

Watching nearly identical images side to side doesn't readily show what the differences are, even if the difference detector is showing that in a certain place there's a difference. Sometimes it's a small change in brightness, or colour, or JPEG artifacts. Toggling the duplicate over the image repeatedly shows where the differences are as blinks, and allows you to refine the selection of which image to check.

Actually this is the only thing I miss from VisiPics, where I could do the same easily. Currently when I have more than a dozen of duplicates, what I have to do to achieve the same is copying the examined folder, use AntiDupl to delete all duplicates in the original folder, then delete all file duplicates in the copied folder (compared to the original folder) so I have a tree with just the duplicates detected by AntiDupl, and then I manually check everything with a viewer that allows me to put duplicates side to side and toggle between them quickly and seamlessly (XnViewMP is what I use).

Another way to implement this would be just swapping the duplicates between the 1st and 2nd window. No file renaming or action involved; just that 1st duplicate is shown on 2nd window, and 2nd duplicate is shown on 1st. This wouldn't work if in options you're not scaling both images to the viewport size, but might be way easier to implement.

Thanks for considering my feature request, and ofc for this awesome program.

ermig1979 commented 6 years ago

Thank you for so detail suggestions. May be we will implement some of them.

WonderRat commented 6 years ago

Обе картинки нужно сравнивать в одном масштабе (по умолчанию 100%, со скроллингом) - иначе нет смысла.

Предлагаю полноэкранный просмотр:

Показ второй картинки и скроллинг при зажатой правой кнопке (как в превью фильтров фотошопа) плюс хоткей для переключения, чтоб не было смещения из-за движения мыши - можно быстро оценить визуальную разницу. Сдвиг на полэкрана pgup/pgdn и home/end, стрелками на 5% экрана.

Режим совмещения картинок и подсветки различий: наложение в режиме difference (картинки вычитаются и одинаковые места становятся черными) с отключаемыми автоуровнями (получившаяся картинка растягивается на весь диапазон 0-255): включается при зажатом хоткее (например ctrl); сдвиг стрелками (+shift для ускорения) и с зажатой левой кнопкой - можно быстро найти отличающиеся места.

heinrichI commented 6 years ago

Чем текущий вариант окна Comparator не подходит? Увеличение, смена есть. Вызывается из контекстного меню. comparator alpha1.zip

WonderRat commented 6 years ago

Хочет .net 4.5, я его еще не ставил.

posicat commented 7 months ago

This is kind of like crossing your eyes to view one of those random dot 3D images ... if you cross your eyes you can do similar, and your brain will make what's different flicker/shimmer. Being able to subtract one image from the other and generate a difference map would be fantastic, and would make it very easy to do that same thing in software.