Open jueqing1015 opened 1 year ago
See prog/adaptmap_reg.c.
You'll see pixim, which is a mask over the image part. For the image pat that has the painting, we don't clean to white, just do a TRC using pixGammaTRCMasked().
@DanBloomberg I don't know why I couldn't produce the correct effect by referring to the code in the example. Could you please use the following image to handle it?
You can do this. Identify the bounding box of the image. (It was hardcoded in adaptmap_reg.c ) Then use the same approach.
I want to remove the background color of the image in bulk to make it white, but I found that the CleanBackgroundToWhite interface will remove some of the colored parts from the image during cleaning.