4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.15k stars 128 forks source link

ImageThresholdBlur #196

Closed zvezdochiot closed 12 months ago

zvezdochiot commented 1 year ago

Hi @4lex4 .

There is an ImageThresholdBlur method that is practically a transition from Otsu (BiMod) to Sauvola {0.0 ... 1.0}: https://github.com/ImageProcessing-ElectronicPublications/stb-image-djvul/blob/main/src/threshold.h .

This method only requires a Gaussian filter, a divide two images operation, and an Otsu threshold (BiMod).

Implementing it would expand the threshold adjustability (slider from 0.0 (BiMod or Otsu) to 1.0 (~Sauvola)).

If necessary, I could adapt the code of this threshold for ScanTailor, but I will not undertake to change the interface and the project file.

leonleon33156 commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

zvezdochiot commented 12 months ago

Resolved. STEX: 0.2023.07.27: threshold.