icevision_ToGray: ToGray

View source: R/icevision_albumentations.R

icevision_ToGrayR Documentation

ToGray

Description

Convert the input RGB image to grayscale. If the mean pixel value for the resulting image is greater than 127, invert the resulting grayscale image.

Usage

icevision_ToGray(always_apply = FALSE, p = 0.5)

Arguments

always_apply

always_apply

p

p

Value

None

Targets

image

Image types

uint8, float32


fastai documentation built on June 22, 2024, 11:15 a.m.