public void GenerateInputsAlwaysInsideSensor() { var sensor = new BitmapPicture2DSensor(pathSpeed: 100); sensor.SetTrainingFolder(TrainingSetPath); var writer = new MatrixToBitmapFileWriter(); sensor.OnTransformedMatrixOutput += writer.OutputWriterHandler; var nbInputIterationsOutside = 0; foreach (var input in sensor.GetTrainingInputs(true)) { Assert.IsNotNull(input.CurrentFile); Assert.IsFalse(string.IsNullOrWhiteSpace(input.CategoryName)); foreach (var iteration in input) { if (sensor.IsCurrentInputOutsideField()) nbInputIterationsOutside++; } } Assert.AreEqual(0, nbInputIterationsOutside); }