/// <summary> /// Initializes the sensor. /// </summary> /// <param name="grid">The <see cref="PixelGrid"/> instance to wrap.</param> /// <param name="compression">The compression to apply to the generated image.</param> /// <param name="name">Name of the sensor.</param> public GridSensor(PixelGrid grid, SensorCompressionType compression, string name) { m_Grid = grid; m_Compression = compression; m_SensorName = name; Allocate(); }
public override void UpdateSensor() { if (Sensor != null) { m_PixelGrid = new PixelGrid(GetGridShape()); base.UpdateSensor(); Sensor.Detector = CreateDetector(); Sensor.Encoder = CreateEncoder(); } }