[][src]Function photon_rs::channels::remove_green_channel

pub fn remove_green_channel(img: &mut PhotonImage, min_filter: u8)

Remove the Green channel's influence in an image.

Arguments

  • img - A PhotonImage.
  • min_filter - Only remove the channel if the current pixel's channel value is less than this minimum filter.

Example

// For example, to remove the green channel for green channel pixel values less than 50:
photon::channels::remove_green_channel(img, 50);