Rgb2GrayPreProcessor¶
- class maze.core.wrappers.observation_preprocessing.preprocessors.rgb2gray.Rgb2GrayPreProcessor(observation_space: gymnasium.spaces.Box, rgb_dim: int)¶
An rgb-to-gray-scale conversion pre-processor.
- Parameters:
observation_space – The observation space to pre-process.
rgb_dim – Dimension of the rgb channels.
- process(observation: numpy.ndarray) numpy.ndarray¶
(overrides
PreProcessor)implementation of
PreProcessorinterface
- processed_shape() Tuple[int, ...]¶
(overrides
PreProcessor)implementation of
PreProcessorinterface
- processed_space() gymnasium.spaces.Box¶
(overrides
PreProcessor)implementation of
PreProcessorinterface