Index
All Classes and Interfaces|All Packages
A
- analyze(Path, Path, RegisterOptions, boolean) - Method in class io.github.p4suta.register.infrastructure.registrar.LeptonicaPageRegistrar
- angleDeg() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Returns the value of the
angleDegrecord component. - assemble(Path, Path, Path, OptionalInt, int, Path) - Method in class io.github.p4suta.register.infrastructure.pdf.PdfBoxJbig2Assembler
-
Assemble
imageDir's registered pages intooutPdf, inheritingsource's metadata and PDF version.
C
- capture(List, long) - Static method in class io.github.p4suta.register.infrastructure.process.NativeTools
-
Run a command and return its stdout bytes, failing on nonzero exit or timeout.
- conf() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Returns the value of the
confrecord component. - correctable() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Whether
Deskewer.deskew(Pix)would straighten a page carrying this estimate: a reliable (confidence at leastDeskewer.MIN_DESKEW_CONFIDENCE) and real tilt (betweenDeskewer.MIN_DESKEW_ANGLE_DEGREESandDeskewer.MAX_DESKEW_ANGLE_DEGREESdegrees). - create(Path, boolean) - Method in class io.github.p4suta.register.infrastructure.diag.DiagnosticsReporterFactory
- createBeside(Path, String) - Static method in class io.github.p4suta.register.infrastructure.process.TempDirs
-
Create a temporary directory beside
sibling— under its parent, so the scratch space shares a filesystem with the output it serves (keeping moves/links cheap) and is cleaned up in the same tree.
D
- deleteRecursively(Path) - Static method in class io.github.p4suta.register.infrastructure.process.TempDirs
-
Delete
dirand everything under it, best-effort: walked depth-first (children before parents) so directories are empty when removed. - deskew(Pix) - Static method in class io.github.p4suta.register.infrastructure.registrar.Deskewer
-
Deskew
page, returning a fresh caller-ownedPix: rotate 90 degrees, measure the skew, and — only if the estimate is correctable — rotate it straight before rotating back; otherwise just complete the 90-degree round trip. - Deskewer - Class in io.github.p4suta.register.infrastructure.registrar
-
The register-specific deskew policy, layered on the shared
Pixprimitives (the shared imaging island exposes only raw rotations and the rawskew estimate, no project policy). - Deskewer.DeskewResult - Record Class in io.github.p4suta.register.infrastructure.registrar
-
A deskew outcome: the straightened
page(caller-owned) paired with the singleestimatethatDeskewer.deskewWithEstimate(Pix)measured and gated the straightening on. - Deskewer.SkewEstimate - Record Class in io.github.p4suta.register.infrastructure.registrar
-
A register skew reading (angle in degrees, confidence ratio, and whether Leptonica produced an estimate), adding the deskew policy's
Deskewer.SkewEstimate.correctable()gate to the raw shared estimate. - DeskewResult(Pix, Deskewer.SkewEstimate) - Constructor for record class io.github.p4suta.register.infrastructure.registrar.Deskewer.DeskewResult
-
Creates an instance of a
DeskewResultrecord class. - deskewWithEstimate(Pix) - Static method in class io.github.p4suta.register.infrastructure.registrar.Deskewer
-
Deskew
pageand return the single skew estimate that drove the decision, so a caller that also wants the diagnostic reading need not re-runDeskewer.measureSkew(Pix)(a second 90-degree rotation andpixFindSkew). - detect(Pix, int) - Method in class io.github.p4suta.register.infrastructure.registrar.MainColumnDetector
-
The detected main column with its vertical band, or empty if the page carries no detectable body text.
- DiagnosticsReporterFactory - Class in io.github.p4suta.register.infrastructure.diag
-
The
ReporterFactoryadapter: builds aDiagnosticscollector rooted at the requested diagnostics directory. - DiagnosticsReporterFactory() - Constructor for class io.github.p4suta.register.infrastructure.diag.DiagnosticsReporterFactory
- dominantDpi(Path) - Method in class io.github.p4suta.register.infrastructure.pdf.PdfImagesCliExtractor
-
The dominant x-ppi across the PDF's images, via
pdfimages -list.
E
- equals(Object) - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.DeskewResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Indicates whether some other object is "equal to" this one.
- estimate() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.DeskewResult
-
Returns the value of the
estimaterecord component. - extract(Path, Path, int) - Method in class io.github.p4suta.register.infrastructure.pdf.PdfImagesCliExtractor
-
Extract all pages of
pdfintooutDiras TIFFs, parallelized over page-range chunks.
F
- found() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Returns the value of the
foundrecord component.
H
- hashCode() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.DeskewResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Returns a hash code value for this object.
I
- io.github.p4suta.register.infrastructure.diag - package io.github.p4suta.register.infrastructure.diag
-
Development-time diagnostics for the registration pipeline: an opt-in (
--diag) subsystem that records and visualizes each page's internal state — skew, column detection, the reference it aligns to, and its final clamped placement — as overlay images, projection-profile plots, a machine-readable JSONL log, and an aggregate summary. - io.github.p4suta.register.infrastructure.pdf - package io.github.p4suta.register.infrastructure.pdf
-
The PDF adapters:
PdfImagesCliExtractor(thePdfImageExtractor) andPdfBoxJbig2Assembler(theJbig2Assembler). - io.github.p4suta.register.infrastructure.process - package io.github.p4suta.register.infrastructure.process
-
Process and filesystem-scratch plumbing for the adapters.
- io.github.p4suta.register.infrastructure.registrar - package io.github.p4suta.register.infrastructure.registrar
-
The Leptonica-backed page registrar: the
PageRegistraradapter (LeptonicaPageRegistrar) that deskews, detects the main column (MainColumnDetector), and scales/places each page using the domain's projection-profile, reference and transform-planner algorithms.
J
- jbig2() - Static method in class io.github.p4suta.register.infrastructure.process.NativeTools
L
- LeptonicaPageRegistrar - Class in io.github.p4suta.register.infrastructure.registrar
-
The Leptonica-backed
PageRegistrar: the per-page registration pipeline - LeptonicaPageRegistrar() - Constructor for class io.github.p4suta.register.infrastructure.registrar.LeptonicaPageRegistrar
M
- MainColumnDetector - Class in io.github.p4suta.register.infrastructure.registrar
-
Detects a page's main text column by intersecting a vertical band (from the row ink profile) with a horizontal band (from the column ink profile taken within that vertical band).
- MainColumnDetector() - Constructor for class io.github.p4suta.register.infrastructure.registrar.MainColumnDetector
- measureSkew(Pix) - Static method in class io.github.p4suta.register.infrastructure.registrar.Deskewer
-
Estimate
page's skew the wayDeskewer.deskew(Pix)sees it: rotate 90 degrees so the vertical columns become horizontal rows (what Leptonica's row-projection finder expects), then take the raw shared skew estimate.
N
- NativeTools - Class in io.github.p4suta.register.infrastructure.process
-
Resolves and runs the external native tools the PDF pipeline shells out to (
pdfimages,pdfinfo,jbig2). - noOp() - Method in class io.github.p4suta.register.infrastructure.diag.DiagnosticsReporterFactory
P
- page() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.DeskewResult
-
Returns the value of the
pagerecord component. - PdfBoxJbig2Assembler - Class in io.github.p4suta.register.infrastructure.pdf
-
Register's
Jbig2Assembleradapter: a thin binding onto the cross-appPdfBoxJbig2Assemblerisland (the Java port ofjbig2-pdf.py+pdfmeta.py). - PdfBoxJbig2Assembler() - Constructor for class io.github.p4suta.register.infrastructure.pdf.PdfBoxJbig2Assembler
- pdfimages() - Static method in class io.github.p4suta.register.infrastructure.process.NativeTools
- PdfImagesCliExtractor - Class in io.github.p4suta.register.infrastructure.pdf
-
Register's
PdfImageExtractoradapter: a thin binding onto the cross-appPdfImagesCliExtractorisland (the Java port ofextract-parallel.py+stamp-dpi.py --print). - PdfImagesCliExtractor() - Constructor for class io.github.p4suta.register.infrastructure.pdf.PdfImagesCliExtractor
- pdfinfo() - Static method in class io.github.p4suta.register.infrastructure.process.NativeTools
R
- readScanResolution(Path) - Method in class io.github.p4suta.register.infrastructure.registrar.LeptonicaPageRegistrar
- renderPlaced(Path, PageAnalysis, int, Parity, String, Reference, Canvas, Path, OutputFormat, RegisterOptions) - Method in class io.github.p4suta.register.infrastructure.registrar.LeptonicaPageRegistrar
- run(List, long) - Static method in class io.github.p4suta.register.infrastructure.process.NativeTools
-
Run a command, discarding all output, failing on nonzero exit or timeout.
S
- SkewEstimate(double, double, boolean) - Constructor for record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Creates an instance of a
SkewEstimaterecord class.
T
- TempDirs - Class in io.github.p4suta.register.infrastructure.process
-
Scratch-directory helpers for the infrastructure layer: create a working directory beside an output and remove a directory tree when a run ends.
- toString() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.DeskewResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.p4suta.register.infrastructure.registrar.Deskewer.SkewEstimate
-
Returns a string representation of this record class.
All Classes and Interfaces|All Packages