← Về thư mục
skills/pathml/scripts/image_qc.py
- _next_token · function · L27-L47 — def _next_token(payload: bytes, offset: int) -> tuple[bytes, int]
- _read_pnm · function · L50-L89 — def _read_pnm(path: Path, max_pixels: int) -> tuple[int, int, bytes]
- _read_with_pillow · function · L92-L111 — def _read_with_pillow(path: Path, max_pixels: int) -> tuple[int, int, bytes]
- read_image · function · L114-L119 — def read_image(path: Path, max_pixels: int) -> tuple[int, int, bytes]
- synthetic_image · function · L122-L143 — def synthetic_image( width: int, height: int, tissue_fraction: float, ) -> bytes
- calculate_qc · function · L146-L217 — def calculate_qc( width: int, height: int, pixels: bytes, *, saturation_threshold: float, brightness_threshold: float, ) -> tuple[dict[str, Any], bytes]
- _write_mask · function · L220-L236 — def _write_mask( mask: bytes, width: int, height: int, *, destination: str, root: str, force: bool, ) -> None
- build_parser · function · L239-L273 — def build_parser() -> argparse.ArgumentParser
- main · function · L276-L321 — def main() -> None