Skip to content

Commit 96a6e89

Browse files
Clarify nodata docs — warp fill only, not camera frame borders
The nodata/alpha masking handles GDAL warp fill pixels, not the black camera frame borders within the original image. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d7c8307 commit 96a6e89

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

R/fly_thumb_georef.R

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@
1919
#' translates the image with GCPs then warps to the target CRS using
2020
#' bilinear resampling.
2121
#'
22-
#' **Nodata handling:** Band count is read from each file header. RGB
23-
#' thumbnails (3+ bands) get an alpha band (`-dstalpha`) for clean masking
24-
#' in mosaics. Grayscale thumbnails (1 band) use nodata=0 — some shadow
25-
#' detail is lost but black borders are eliminated.
22+
#' **Nodata handling:** Warping a rectangular thumbnail into a rotated
23+
#' footprint creates fill pixels outside the source frame. Band count is
24+
#' read from each file header to choose the masking strategy: RGB
25+
#' thumbnails (3+ bands) get an alpha band (`-dstalpha`) so fill areas
26+
#' are transparent; grayscale thumbnails (1 band) use nodata=0. This
27+
#' only masks GDAL warp fill — black camera frame borders within the
28+
#' original image (from film holder edges, fiducial marks, or scanning
29+
#' artifacts) are preserved as valid pixels.
2630
#'
2731
#' **Accuracy:** footprints assume flat terrain and nadir camera angle.
2832
#' The georeferenced thumbnails are approximate — useful for visual context,

man/fly_thumb_georef.Rd

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)