Exemplo n.º 1
0
 /// <summary>
 /// Creates the <see cref="CameraSensor"/>
 /// </summary>
 /// <returns>The created <see cref="CameraSensor"/> object for this component.</returns>
 public override ISensor CreateSensor()
 {
     m_Sensor = new CameraSensor(m_Camera, m_Width, m_Height, grayscale, m_SensorName, compression);
     return(m_Sensor);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Computes the observation shape of the sensor.
 /// </summary>
 /// <returns>The observation shape of the associated <see cref="CameraSensor"/> object.</returns>
 public override int[] GetObservationShape()
 {
     return(CameraSensor.GenerateShape(m_Width, m_Height, grayscale));
 }