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
 TImageEnProc.WhiteBalance_WhiteAt() question

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
chuckm Posted - May 29 2013 : 16:20:29
Searched the forum and sample programs but didn't see any info on using WhiteBalance_WhiteAt(). I use Autowhite() to correct images but would like to have a bit more control over defining the white balance. I implemented the procedure, passing the X,Y returned from XScr2Bmp(), but calling the method seems to have no impact on the image.

Am I missing some part of making it work beyond calling the method with the X/Y of a white pixel? When I use just the autowhite() it sometimes makes no difference to the image and sometimes overexposes. I was expecting it to perform like AutoWhite() but with me picking the baseline white pixel for the adjustment.

I've tried multiple images, locations, etc. and get no change in the image with any of them. I'm using V3 of the components with this app. Would appreciate any insights or workarounds. Thanks.
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jun 15 2013 : 00:22:30
Depends by the image and by the chosen point.
For example, this is the original:



After applying ImageEnView1.Proc.WhiteBalance_WhiteAt(346, 251):

chuckm Posted - Jun 07 2013 : 23:17:39
Thanks fab. I've tried various pixels across the color range and no matter what I submit I don't see any effect on the image. Is there an additional procedure to call? The .Autowhite() call will immediately change the image except in a few where it seems to not be able to make any adjustment. I'm wondering if the WhiteAt() is having that same problem or if I'm missing a step somewhere. I've fed it mouse selected coordinates as well as various random ones for a series of images.

Appreciate the help. Getting some more direct control over the white balance would be really useful but I haven't had any luck with it.
fab Posted - Jun 05 2013 : 06:43:12
WhiteBalance_WhiteAt extends the range from black to the white value read from the specified coordinate. You should Not specify a pure White (255,255,255) pixel, otherwise WhiteBalance_WhiteAt leave the image unchanged.