ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to compare two images and show the difference?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Dec 24 2014 : 23:44:28
The subject says it all.

I have a need wherein I have to allow user to select two different images (and load them in two separate ImageEn Controls) and then show the difference between two images in a third ImageEn control. The difference has to be calculated based on either light values (brightness) or color values.

I don't know as to how I will be able to achieve this so any hints or small sample code will be of great help.

TIA

Yogi Yang


Yogi Yang
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 28 2014 : 17:54:28
Hi

Yes, that should not be hard to do. Are you referring to the result of CompareWith or your own algorithm?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
yogiyang Posted - Dec 25 2014 : 22:52:46
Thanks Nigel,

This works like a charm.

Would it be possible to create a mask or selection from the resulting image and apply the same to user selected image?

TIA



Yogi Yang
xequte Posted - Dec 25 2014 : 03:52:37
Hi Yogi

There is the CompareWith function (see the "Show Image differences" demo), but it only works on pixel intensity:

http://www.imageen.com/help/TImageEnProc.CompareWith.html

So you may be better to write your own algorithm which resamples two images to the same size and then compares the individual pixels (via scanline).



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com