color-matcher icon indicating copy to clipboard operation
color-matcher copied to clipboard

Is it possible to add a mask to the color matcher module

Open Ir1d opened this issue 3 years ago • 2 comments

Hi!

Thanks for the great work! I'm wondering if I can add a mask onto the color matcher module to perform a local/regional color transfer.

Ir1d avatar Sep 28 '22 22:09 Ir1d

Hello,

I can see the idea behind this. Wouldn't it be sufficient to mask with an alpha channel (e.g., using a png image), then let the algorithm do the job and combine masked regions afterwards?

hahnec avatar Sep 29 '22 08:09 hahnec

Thanks for the prompt reply. I'm running it on some png images with transparent regions, and it sometimes seems the result color overflows and is not very stable. I've implemented a masked version of color-matcher (mkl solver) on my side. If the result is promising, I'll do a pr, but it's still not very good for now.

Ir1d avatar Sep 29 '22 15:09 Ir1d