MCPcopy Create free account
hub / github.com/RustCV/RustCV / is_bayer

Method is_bayer

rustcv-core/src/pixel_format.rs:100–108  ·  view source on GitHub ↗

判断是否为 Bayer 原始格式 (需要 Demosaic)

(&self)

Source from the content-addressed store, hash-verified

98
99 /// 判断是否为 Bayer 原始格式 (需要 Demosaic)
100 pub fn is_bayer(&self) -> bool {
101 match self {
102 Self::Known(cc) => matches!(
103 *cc,
104 FourCC::BA81 | FourCC::GBRG | FourCC::GRBG | FourCC::RGGB
105 ),
106 _ => false,
107 }
108 }
109
110 /// 估算每像素比特数 (Bits Per Pixel),用于计算带宽
111 pub fn bpp_estimate(&self) -> u32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected