public void TempTest1() { using (var fileReader = new FileReader(filePathSource, new FileOperations.Buffer())) { using (var fileWriter = new FileWriter(filePathEncodedFile, new FileOperations.Buffer())) { jpegEncoder.EncodeImage(fileReader, fileWriter, downSampler); jpegEncoder.DecodeImage(downSampler, QuantizeMethod.Method2, 50); } } jpegEncoder.ReconstructedImage.Save(filePathDecodedFile, ImageFormat.Jpeg); }
private void buttonPredict_Click(object sender, EventArgs e) { using (var fileReader = new FileReader(filePathOriginalImage, new Buffer())) { jpegEncoder.EncodeImage(fileReader, new DownSampler411()); } }