Comments (3)
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().
from leptonica.
@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?
from leptonica.
You can do this. Identify the bounding box of the image. (It was hardcoded in adaptmap_reg.c )
Then use the same approach.
from leptonica.
Related Issues (20)
- Disable all image I/O except for PNM files? HOT 8
- Writing 24bpp (depth=24, spp=3) PIX to BMP produces b0rked files HOT 1
- Saving odd-width 24bpp image to BMP+PNG produces color error in rightmost pixel column HOT 2
- Compilation error HOT 1
- Please, help to upgrade leptonica for Capture2Text. HOT 2
- Which interface corresponds to the color scale function in Photoshop? HOT 8
- Implementing resolution reduction HOT 1
- Support for JXL (JPEG XL) HOT 5
- cmake build on systems with lib in lib64 is broken HOT 7
- Dewarping issue HOT 1
- Please fix CMake for build Debug on linux HOT 2
- pixRead & pixReadWithHint return NULL HOT 11
- Errors building for iOS on mac HOT 5
- sw_execute not finding CMAKE_CXX_COMPILER_ID HOT 8
- Unable to build leptonica.dll. HOT 5
- RFE: open files with `O_CLOEXEC` HOT 6
- My. net6 program uses the Tesseract library, which works fine under Windows, but fails under Linux HOT 1
- Security binary scan reports XZ Utils library but unable to detect the version HOT 2
- Build fails under Windows HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leptonica.