Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, September 10, 2010 10:29:56 AM(UTC)

jigar  
Guest

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.

File Attachment(s):
Compare_Brightness_Saturation.zip (1,054kb) downloaded 183 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, October 2, 2017 8:18:38 AM(UTC)
Anthony Northrup

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.
File Attachment(s):
CDLL_CompareBrightnessSaturation.zip (1,056kb) downloaded 156 time(s).

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.

LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.111 seconds.