T O P I C R E V I E W |
AndyColmes |
Posted - Mar 07 2015 : 12:38:41 I am trying to get a color value from a selection rectangle in an image and then use that value to compare against another image with the same selection rectangle.
I understand that I might have to create some kind of tolerance level to compare the color values. So, to do this, how do I get an average color value of the selection and how do I use a tolerance level to determine if the color matches or not?
Thanks for any help.
Andy
|
10 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Mar 11 2015 : 20:05:59 Hi Andy
Actually I did not expose IEAverageRGB_Sample because I was not sure it would be useful. You might want to copy it from imageenproc.pas and if you think it worthwhile I will expose it.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
AndyColmes |
Posted - Mar 11 2015 : 13:37:05 Hi Nigel, I received the latest 6.0 today. Thanks very much. Where would I see the IEAverageRGB_Sample in the help file?
Andy |
AndyColmes |
Posted - Mar 08 2015 : 07:37:45 Hi Nigel, thanks so much for the CalcAverageRGB. That would help significantly. I can't wait to get next week's release!
Thanks for all the good work.
Andy
|
xequte |
Posted - Mar 08 2015 : 03:38:31 Hi
Note that you can calculate teh average color of a selectionn using ImageEnView1.Proc.CalcAverageRGB:
http://www.imageen.com/help/TImageEnProc.CalcAverageRGB.html
Also, next week's release will include an extended version (IEAverageRGB_Sample) which also returns the hue variance (difference between minumum hue and maximum hue of HSV).
Nigel Xequte Software www.xequte.com nigel@xequte.com |
AndyColmes |
Posted - Mar 08 2015 : 03:00:14 I found this resource in C#. Can this be converted to be used in Delphi with ImageEn?
http://www.vcskicks.com/dominant-color.php
|
AndyColmes |
Posted - Mar 08 2015 : 01:50:39 Hi Bill, thanks for the demo resource. That should help some. There are some JavaScript or PHP code that can come up with common colors in an image, but how can one do this in Delphi? If I could find the most dominant color in a selection, I can use that value to compare. |
AndyColmes |
Posted - Mar 08 2015 : 01:42:20 Hi spetric, does ComputeImageEquality checks for color differences as well or just outlines of differences? |
spetric |
Posted - Mar 07 2015 : 16:16:06 Hi Andy,
Maybe to use TImageEnProc.ComputeImageEquality, on selection: Copy selected portions of images to temporary bitmaps (map1, map2). As they are the same size, you will be able to analyze them with this method.
|
w2m |
Posted - Mar 07 2015 : 16:01:47 What you are trying to do is not simple. But this may give you some ideas... http://www.xecute.com/ieforum/topic.asp?TOPIC_ID=1446&whichpage=1... Select Similar Colors Demo It does not use selections but it may give you some ideas how to deal with 24 million colors by converting the image to 256 palette colors?
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |
AndyColmes |
Posted - Mar 07 2015 : 15:55:59 Maybe to save the selection to a file with conversion to less colors so whole color palette (like red, yellow, blue, etc.) can be derived without shades? But how would you recommend doing it this way?
Thanks again.
Andy
|