pub struct StatsKernel;Expand description
Statistics computation kernel
Implementations§
Source§impl StatsKernel
impl StatsKernel
Sourcepub fn compute_channels(
_device: &GpuDevice,
input: &[u8],
channels: usize,
) -> Result<Vec<ImageStats>>
pub fn compute_channels( _device: &GpuDevice, input: &[u8], channels: usize, ) -> Result<Vec<ImageStats>>
Compute channel-wise statistics for multi-channel images (CPU fallback).
input is expected to be interleaved channel data
(e.g., RGBRGB… for 3 channels).
§Arguments
_device- GPU device (CPU fallback: unused)input- Input image data (interleaved channels)channels- Number of channels
§Errors
Returns an error only on internal logic failures (currently infallible).
Auto Trait Implementations§
impl Freeze for StatsKernel
impl RefUnwindSafe for StatsKernel
impl Send for StatsKernel
impl Sync for StatsKernel
impl Unpin for StatsKernel
impl UnsafeUnpin for StatsKernel
impl UnwindSafe for StatsKernel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more