Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
19th October 2013, 17:51 | #1 | Link |
Registered User
Join Date: Oct 2011
Posts: 24
|
Spot The Difference (STD 1.3) *Updated* 04/11/13
About app Compare the source image with compressed image and find the differences. Please leave feedbacks and suggestions. Installation guide (Windows Only): No installation, the app is portable, smaller than 400kb, just download & run. Download: STD v1.3 (04/11/13) STD v1.2 (29/10/13) STD v1.1 (20/10/13) STD v1.0 (19/10/13) Source STD v1.3 Code:
Changelog v1.3 -A lot of design changes -Color comparison is 20x times faster than previous version -Added drag and drop feature -Added copy from clipboard feature (have strange bug will try to fix it in next versions) -Added option to find color difference based on human perception (CIE76 algorithm - its 5x times slower than machine perception comparison) -Changed algorithm of finding color difference based on machine perception (faster and more accurate) Changelog v1.2 - A lot of design changes - Added progress bar Changelog v1.1 - Added error handler. (No more crashes only warning messages) - Added default value for distance color percentage. (Default Value = 2) - Added supported image file formats. Last edited by Xoemab; 7th November 2013 at 04:09. Reason: Update |
19th October 2013, 22:44 | #3 | Link |
Registered User
Join Date: Oct 2011
Posts: 24
|
I didn't know about ImageMAgick's, the idea came to me that time and after a quick google search I didn't find anything so I wrote it.. Still my app is 340kb and I have gui.. More to come who know maybe it will become better
|
19th October 2013, 23:24 | #4 | Link | |
47.952fps@71.928Hz
Join Date: Mar 2011
Posts: 940
|
o_O That's a huge discrepancy!
Quote:
+1 for a GUI. Waiting for approval to give this a looksy. Maybe after having my fun with this, I'll give ImageMagick a deeper look. I like finding small programs like this. Simplistic and thought-provocative (as in I'm going to really expand my knowledge to similar projects; ie, IM). EDIT1: Perhaps use a file host like MediaFire to share your app? Would save time from pending attachment approvals.
__________________
Win10 (x64) build 19041 NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4) NTSC | DVD: R1 | BD: A AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Last edited by Sparktank; 19th October 2013 at 23:28. Reason: EDIT1; EDIT2 "quite a fun" -> "quite a BIT of fun" |
|
20th October 2013, 00:17 | #5 | Link |
Registered User
Join Date: Oct 2011
Posts: 24
|
Now its approved.. tomorrow I will upload the updated version where I will add error handling, now there are many ways to make the program crash so if you testing it now and the program crashing just close and open it again... As I said I made it in hurry just wanted to see if anyone was interested
|
20th October 2013, 01:13 | #7 | Link | |
Registered User
Join Date: Oct 2011
Posts: 24
|
Quote:
Note: The two images should have same resolution Edit: If you still getting crash wait until tomorrow's update Last edited by Xoemab; 20th October 2013 at 01:17. |
|
29th October 2013, 14:07 | #10 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
I hope you'll take this as the constructive criticism it's meant to be, but STD seems incredibly slow for what it does (which is useful, don't get me wrong). What's it written in?
Have you considered implementing pasting images from the clipboard instead of opening files? David |
29th October 2013, 16:36 | #11 | Link | ||
Registered User
Join Date: Oct 2011
Posts: 24
|
Quote:
Quote:
It wasn't slow for me but I understand that for someone 10-20 seconds is slow so I will try to optimize somehow my code and also will add parallelism. It's written in C# I have considered to implement drag and drop but I also liked your idea, will add for sure this two features in next version Last edited by Xoemab; 29th October 2013 at 16:42. |
||
29th October 2013, 23:38 | #12 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Would you consider sharing your source code (or part of it) for examination? I would expect even a "slow" CPU like yours to be able to make such a comparison, even on HD images, in fractions of a second.
One optimisation springs to mind: if you want to check whether sqrt((r2-r1)^2+(g2-g1)^2+(b2-b1)^2) is less than x, do this comparison instead: Code:
(r2-r1)^2+(g2-g1)^2+(b2-b1)^2 < x^2 I would also recommend weighting your colour differences per channel, too, as the human eye is more sensitive to green, then red, then blue. David |
30th October 2013, 00:34 | #13 | Link | |
Registered User
Join Date: Oct 2011
Posts: 24
|
Quote:
I will upload also the source code after cleaning my code a bit and adding some comments for better understanding. We don't need to take in consideration the human eye because we want to see how close is the pixel color to the source and not how close it is for human eyes. |
|
30th October 2013, 10:15 | #14 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
Great that you've been able to speed it up! David |
|
30th October 2013, 13:27 | #16 | Link | |
Registered User
Join Date: Oct 2011
Posts: 24
|
Quote:
|
|
30th October 2013, 18:26 | #18 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
If you're still open to suggestions, I had an idea that I'd find useful - using left/right arrows to switch between original, compressed, and original+red overlay. Then you could easily flip between any two of those, so you could use the red overlay to find the differences and then flip between original and compressed to compare small areas of difference.
|
30th October 2013, 21:34 | #19 | Link | |
Registered User
Join Date: Oct 2011
Posts: 24
|
Quote:
I was overwriting the compressed image with compressed+red but I think your idea is great to keep also the compressed. So in the next version there will be a lot of changes.. I think tomorrow it will be ready. |
|
|
|