LEADTOOLS Support
Imaging
Imaging SDK Examples
Compare intensity and saturation of 2 images
#1
Posted
:
Friday, September 10, 2010 10:29:56 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The attached C++ project uses LEADTOOLS v17.5 C DLL programming interface to load two images, then you can compare between the brightness (Intensity) and Saturation between both images to see which is brighter and which has more saturation.
The main idea behind this project is:
First part: Brightness, check the histogram of image (1) to calculate the average intensity value (int1), then do the same for image (2) and calculate its intensity (int2).
Comparing these 2 numbers should give you a measure of which has more intensity (brighter).
Second part: Saturation, Separate the colors as HSV planes for image (1), then extract the Saturation's histogram of image (1) to calculate an average saturation value (sat1), then do the same for image (2) to calculate sat2.
Comparing these 2 numbers should give you a measure of which has more saturation average.
#2
Posted
:
Monday, October 2, 2017 8:18:38 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 199
Was thanked: 28 time(s) in 28 post(s)
Updated to LEADTOOLS v19 with Visual Studio 2017. Changed to Visual Studio 2010 (v100) Platform Toolset.
Extract to "C:\LEADTOOLS 19\Examples\CDLL\" to use the example.
Note: The program doesn't display the images, it has menu options to compare the two images for intensity or saturation.
Edited by user Tuesday, October 3, 2017 9:18:28 AM(UTC)
| Reason: Removed set license nag, forgot to delete
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
Compare intensity and saturation of 2 images
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.