Rgb2GrayPreProcessor¶
-
class
maze.core.wrappers.observation_preprocessing.preprocessors.rgb2gray.Rgb2GrayPreProcessor(observation_space: gym.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¶ implementation of
PreProcessorinterface
-
processed_shape() → Tuple[int, …]¶ implementation of
PreProcessorinterface
-
processed_space() → gym.spaces.Box¶ implementation of
PreProcessorinterface