limit black/white levels when using -compose Divide -composite?
Posted: 2015-09-29T18:01:32-07:00
hello!
Is there a way to control the black level when using -compose Divide -composite to remove a vignette from an image?
usage link for vignette removal:
http://www.imagemagick.org/Usage/photos/#vignettation
my actual single line of code to convert the image is as follows:
(the '!words!' in the code are variables passed down through the batch file)
i have tried replacing -compose Divide -composite with the FX operation -fx '(u/v)*v.p{w/2,h/2}' but this crashes the batch file as soon as it starts.
My goal is to limit how dark the black levels become in the final output. Which is why +level 5%%, 95%%,1.0 is present in the convert code..but the -compose method of removing the vignette darkens too much. Is there a way to control this during the actual Divide operation?
Thanks!
Is there a way to control the black level when using -compose Divide -composite to remove a vignette from an image?
usage link for vignette removal:
http://www.imagemagick.org/Usage/photos/#vignettation
my actual single line of code to convert the image is as follows:
Code: Select all
convert -quiet flatfield.tiff !name!!ext! -compose Divide -composite -density !dpi! -units pixelsPerInch -depth 8 -colorspace gray -negate +level 5%%,95%%,1.0 -gravity north -chop 0x!chopped! -rotate 180 -gravity south -splice 0x!addPixels! !namePfx!!nameNumber!.tif
i have tried replacing -compose Divide -composite with the FX operation -fx '(u/v)*v.p{w/2,h/2}' but this crashes the batch file as soon as it starts.
My goal is to limit how dark the black levels become in the final output. Which is why +level 5%%, 95%%,1.0 is present in the convert code..but the -compose method of removing the vignette darkens too much. Is there a way to control this during the actual Divide operation?
Thanks!