Index

A C D E F H I J L M N P R S T 
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 angleDeg record component.
assemble(Path, Path, Path, OptionalInt, int, Path) - Method in class io.github.p4suta.register.infrastructure.pdf.PdfBoxJbig2Assembler
Assemble imageDir's registered pages into outPdf, inheriting source'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 conf record 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 least Deskewer.MIN_DESKEW_CONFIDENCE) and real tilt (between Deskewer.MIN_DESKEW_ANGLE_DEGREES and Deskewer.MAX_DESKEW_ANGLE_DEGREES degrees).
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 dir and 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-owned Pix: 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 Pix primitives (the shared imaging island exposes only raw rotations and the raw skew 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 single estimate that Deskewer.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 DeskewResult record class.
deskewWithEstimate(Pix) - Static method in class io.github.p4suta.register.infrastructure.registrar.Deskewer
Deskew page and return the single skew estimate that drove the decision, so a caller that also wants the diagnostic reading need not re-run Deskewer.measureSkew(Pix) (a second 90-degree rotation and pixFindSkew).
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 ReporterFactory adapter: builds a Diagnostics collector 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 estimate record component.
extract(Path, Path, int) - Method in class io.github.p4suta.register.infrastructure.pdf.PdfImagesCliExtractor
Extract all pages of pdf into outDir as 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 found record 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 (the PdfImageExtractor) and PdfBoxJbig2Assembler (the Jbig2Assembler).
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 PageRegistrar adapter (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 way Deskewer.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 page record component.
PdfBoxJbig2Assembler - Class in io.github.p4suta.register.infrastructure.pdf
Register's Jbig2Assembler adapter: a thin binding onto the cross-app PdfBoxJbig2Assembler island (the Java port of jbig2-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 PdfImageExtractor adapter: a thin binding onto the cross-app PdfImagesCliExtractor island (the Java port of extract-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 SkewEstimate record 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.
A C D E F H I J L M N P R S T 
All Classes and Interfaces|All Packages