Page 1 of 1
removing lighting effects
Posted: 2010-05-30T15:04:57-07:00
by paulj
HI
Whats the best way of removing problems with reflection in pictures, e.g if you take a picture of a car on a sunny day, and half the car has sunlight reflected, is this possible to remove/correct for, and more importantly is there anyway (except visually) to see that you picture includes this 'effect'. The latter is more part of a general questions, Is there anyway to know you image suffers from effects like motion blur etc, without looking at it manually ?
Tks
Paul
Re: removing lighting effects
Posted: 2010-05-30T15:45:10-07:00
by fmw42
if on unix, you can try my scripts, redist, retinex or duotonemap (similar to Photoshope Shadows/Hightlights tool) and see if either will help your problem. (see the car example in retinex)
You can determine motion blur via FFT analysis using the cepstrum, see my cepstrum script (examples are lens defocus and motion blur). But yu have to use the script in HDRI IM mode.
see link below
Re: removing lighting effects
Posted: 2010-05-31T16:42:34-07:00
by paulj
tks, just seen the retinex examples on your website, looks like it will work, will give it a go,
Paul
Re: removing lighting effects
Posted: 2010-05-31T17:40:50-07:00
by fmw42
you may find the duotonemap a bit easier and better results and the fastest of the 3 methods
Re: removing lighting effects
Posted: 2010-05-31T19:07:08-07:00
by fmw42
if you post a link to one of your images, we can test various approaches and understand your problem better.
Re: removing lighting effects
Posted: 2010-05-31T19:09:24-07:00
by fmw42
and more importantly is there anyway (except visually) to see that you picture includes this 'effect'. The latter is more part of a general questions, Is there anyway to know you image suffers from effects like motion blur etc, without looking at it manually
This is a much harder problem and the technique would depend upon the effect, if it can be solved at all.
Re: removing lighting effects
Posted: 2010-06-01T17:10:29-07:00
by paulj
Hi
I uploaded one that I am trying to remove the glare from, with little success
http://img63.imageshack.us/img63/8098/csmtrue23.jpg
Paul
Re: removing lighting effects
Posted: 2010-06-01T17:20:44-07:00
by paulj
I was thinking if its not easily possible to detect images which have 'glare' then is there a downside to processing all images and try to remove glare ?
Paul
Re: removing lighting effects
Posted: 2010-06-01T17:27:33-07:00
by snibgo
The glare has removed information by burning it out. Some algorithms (not built into IM) can guess what has been lost, based on nearby colors.
Re: removing lighting effects
Posted: 2010-06-01T20:19:53-07:00
by anthony
The glare has removed information by burning it out. Some algorithms (not built into IM) can guess what has been lost, based on nearby colors.
That is changing! Their are techniques. but nothing like what some othe rprograms can do.
Re: removing lighting effects
Posted: 2010-06-02T08:12:12-07:00
by paulj
Hi
Can someone drop me a hint as to what programs I should look at. Of course if the time taken to process is too long, then it may not be worthwhile, but would be interesting to find out nonetheless
tks
Paul
Re: removing lighting effects
Posted: 2010-06-02T10:55:29-07:00
by fmw42
you can try this, but it needs some adjustment (possibly a blur of the mask and some adjustment of the modulate paramenters and perhaps a blending rather than a straight replacement).
convert csmtrue23.jpg \( -clone 0 -modulate 75,100,100 \) \( -clone 0 -threshold 75% \) -compose over -composite csmtrue23_t75_m75.jpg
or with some of these adjustments
convert csmtrue23.jpg \( -clone 0 -modulate 75,50,100 \) \( -clone 0 -threshold 75% -blur 5x65000 \) -compose over -composite csmtrue23_t75b5_m75x50x100.jpg