Magick.NET icon indicating copy to clipboard operation
Magick.NET copied to clipboard

Use of LocalContrast on specific channel

Open denisgavioli opened this issue 8 years ago • 4 comments

Hello,

I'm doing some tests with LocalContrast method and it works very well for my needs.

It would be great if this method could be applied on per channel basis.

Is it possible to implement a new method that let the command work on a specified channel? For example it would be great to apply it on the L* channel of the Lab colorspace.

Thank you very much.

denisgavioli avatar Apr 24 '18 07:04 denisgavioli

The ImageMagick code that does the LocalContrast will always set all channels: https://github.com/ImageMagick/ImageMagick/blob/38b42e1dd1ab4cd58cfe6cd0460d14c642379d08/MagickCore/effect.c#L1909. We will need to investigate if we could change this in ImageMagick. Will get back to you when I have more information.

dlemstra avatar Apr 24 '18 07:04 dlemstra

I understand Dirk, thank you. My request comes from an article that suggests tu use the LocalConstrast on the L* channel to avoid unexpected color saturations: https://www.cambridgeincolour.com/tutorials/local-contrast-enhancement.htm

denisgavioli avatar Apr 24 '18 08:04 denisgavioli

@zomeo I am so sorry but I just pushed a new release and I forgot to add this. This has been added to ImageMagick but I forgot to include it in the current release. Just pushed some changes to make this available in the next release.

dlemstra avatar May 01 '18 22:05 dlemstra

@dlemstra really no problem. Thank you for your efforts on this project. Really much appreciated.

denisgavioli avatar May 02 '18 06:05 denisgavioli