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 |