pub struct TilePlacement {
pub index: usize,
pub count: usize,
pub origin: (f32, f32),
pub crop_size: (f32, f32),
pub content_region: Option<[f32; 4]>,
pub frame_dims: (f32, f32),
}Expand description
One tile’s placement within a frame grid.
Produced by edgefirst_image::ImageProcessor::plan_tiles and consumed by
edgefirst_decoder::tiling to lift per-tile detections back to full-frame
coordinates. It lives here because it is the contract between those two
crates: it was previously defined in decoder and re-exported by image,
so the producer imported its own output type from its consumer.
Fields§
§index: usizeTile index within the frame grid, 0..count.
count: usizeTotal tiles for this frame (the streaming fan-in fence).
origin: (f32, f32)Native crop origin (ox, oy) in full-frame pixels.
crop_size: (f32, f32)Native crop size (cw, ch) in full-frame pixels. Equals the tile size
for the full-size tiles the EvenDist grid produces.
content_region: Option<[f32; 4]>The image content on the model input as normalized
[xmin, ymin, xmax, ymax] (a letterbox’s content region), or None
when the crop was stretched to fill it (the hot path).
frame_dims: (f32, f32)Full-frame dimensions (frame_w, frame_h) in pixels.