Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to improve .net app performance ? Pin
Not Active15-Jun-09 11:48
mentorNot Active15-Jun-09 11:48 
AnswerRe: How to improve .net app performance ? Pin
Pete O'Hanlon15-Jun-09 12:09
mvePete O'Hanlon15-Jun-09 12:09 
Questioncompare pictures of different sizes [modified] Pin
netDeveloper15-Jun-09 10:35
netDeveloper15-Jun-09 10:35 
AnswerRe: compare pictures of different sizes Pin
I Believe In GOD15-Jun-09 10:43
I Believe In GOD15-Jun-09 10:43 
GeneralRe: compare pictures of different sizes Pin
netDeveloper15-Jun-09 10:44
netDeveloper15-Jun-09 10:44 
AnswerRe: compare pictures of different sizes Pin
Luc Pattyn15-Jun-09 10:45
sitebuilderLuc Pattyn15-Jun-09 10:45 
GeneralRe: compare pictures of different sizes Pin
netDeveloper15-Jun-09 10:53
netDeveloper15-Jun-09 10:53 
GeneralRe: compare pictures of different sizes Pin
Luc Pattyn15-Jun-09 10:58
sitebuilderLuc Pattyn15-Jun-09 10:58 
You will have to decide for yourself when you call two images identical.

Here is one possibility:
- shrink the larger one to the size of the smaller one;
- now you have to images of identical size; iterate over all pixels in both, calculate the pixel difference, and make a histogram of that deviation.
Pixel difference could be (red1-red2)^2 + (blue1-blue2)^2 + (green1-green2)^2 or something similar.
Then apply some criterium on the histogram to judge equality.

Drawbacks:
1. this will not be fast;
2. the shrink you apply may be somewhat different from the original shrink;
3. the algorithm will fail if one picture is a shrink of only a (large) part of the other

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: compare pictures of different sizes Pin
I Believe In GOD15-Jun-09 12:01
I Believe In GOD15-Jun-09 12:01 
GeneralRe: compare pictures of different sizes [modified] Pin
Luc Pattyn15-Jun-09 12:04
sitebuilderLuc Pattyn15-Jun-09 12:04 
GeneralRe: compare pictures of different sizes Pin
I Believe In GOD15-Jun-09 12:11
I Believe In GOD15-Jun-09 12:11 
GeneralRe: compare pictures of different sizes Pin
Luc Pattyn15-Jun-09 12:42
sitebuilderLuc Pattyn15-Jun-09 12:42 
QuestionWord automation - selecting a part of the document Pin
dptalt15-Jun-09 8:56
dptalt15-Jun-09 8:56 
AnswerRe: Word automation - selecting a part of the document Pin
led mike15-Jun-09 9:57
led mike15-Jun-09 9:57 
GeneralRe: Word automation - selecting a part of the document Pin
dptalt15-Jun-09 10:09
dptalt15-Jun-09 10:09 
GeneralRe: Word automation - selecting a part of the document Pin
led mike15-Jun-09 10:25
led mike15-Jun-09 10:25 
GeneralRe: Word automation - selecting a part of the document Pin
DidiKunz15-Jun-09 22:16
DidiKunz15-Jun-09 22:16 
QuestionApplication that modifies packets read from an Ethernet card Pin
mouthpiec15-Jun-09 8:49
mouthpiec15-Jun-09 8:49 
AnswerRe: Application that modifies packets read from an Ethernet card Pin
Henry Minute15-Jun-09 11:34
Henry Minute15-Jun-09 11:34 
GeneralRe: Application that modifies packets read from an Ethernet card Pin
mouthpiec15-Jun-09 21:13
mouthpiec15-Jun-09 21:13 
QuestionGet Checked value of a checkBox from thread different of the UI thread Pin
Zeokat15-Jun-09 7:20
Zeokat15-Jun-09 7:20 
AnswerRe: Get Checked value of a checkBox from thread different of the UI thread Pin
I Believe In GOD15-Jun-09 8:36
I Believe In GOD15-Jun-09 8:36 
AnswerRe: Get Checked value of a checkBox from thread different of the UI thread Pin
Luc Pattyn15-Jun-09 8:57
sitebuilderLuc Pattyn15-Jun-09 8:57 
AnswerRe: Get Checked value of a checkBox from thread different of the UI thread Pin
hwswin15-Jun-09 15:48
hwswin15-Jun-09 15:48 
QuestionAccessing an array from another function ? Pin
Jasmine Pomelo15-Jun-09 6:36
Jasmine Pomelo15-Jun-09 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.