Y = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
| BT.601 | BT.709 | BT.2020 | |
|---|---|---|---|
| a | 0.299 | 0.2126 | 0.2627 |
| b | 0.587 | 0.7152 | 0.6780 |
Y = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
| BT.601 | BT.709 | BT.2020 | |
|---|---|---|---|
| a | 0.299 | 0.2126 | 0.2627 |
| b | 0.587 | 0.7152 | 0.6780 |
| import os | |
| def get_files_recursive(path) -> list: | |
| files_in_dir = os.listdir(path) | |
| all_files = [] | |
| for entry in files_in_dir: | |
| full_path = os.path.join(path, entry) | |
| if os.path.isdir(full_path): |
| #include <vector> | |
| std::vector<double> solve_matrix( | |
| const std::vector<double>& a, | |
| std::vector<double> c, | |
| const std::vector<double>& b, | |
| std::vector<double> f) | |
| { | |
| auto n = a.size(); | |
| #pragma once | |
| #define _USE_MATH_DEFINES | |
| #include <vector> | |
| #include <cmath> | |
| #include "Mediator.h" | |
| namespace Filters { | |
| // Median filter |
| #include <vector> | |
| #include <string> | |
| #include <cassert> | |
| #include <ExcelFormat/ExcelFormat.h> | |
| // skipColumns - количество пропускаемых столбцов с начала (в моей программе время не читалось) | |
| std::vector<std::vector<double>> readXLS(const std::string& fileName, int skipColumns = 0) { | |
| std::vector<std::vector<double>> result; |
| #include <FileUtils.h> | |
| #include <TECIO.H> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <cassert> | |
| double *holder; |
| #pragma once | |
| #include <map> | |
| #include <memory> | |
| #include <string> | |
| template <class Base, typename ... Args> | |
| class ClassBuilder { | |
| public: | |
| using BasePtr = std::shared_ptr<Base>; |