in main.cpp:
bba::Operations ops = bba::parse_arguments(argc, argv);
for (const bba::Operation & op : ops) {
// TODO
}
in main.cpp:
switch (op.action) {
case bba::ACTION_INPUT:
// TODO
break;
case bba::ACTION_OUTPUT:
// TODO
break;
…
}
in main.cpp:
cv::Mat img;
for (…) {
switch (…) {
case bba::ACTION_INPUT:
img = cv::imread(…);
break;
case bba::ACTION_OUTPUT:
cv::imwrite(…, img);
break;
…
}
}
in main.cpp:
#include <stack>
…
std::stack<cv::Mat> stack;
cv::Mat img;
for (…) {
…
img = cv::imread(…);
stack.push(img);
…
img = stack.top();
stack.pop();
cv::imwrite(…, img);
…
}
Dokumentation Sammlungen der Standardbibliothek, std::stack.
in main.cpp:
…
img = cv::imread(…);
stack.push(img);
…
korrigieren zu
…
{
cv::Mat img = cv::imread(…);
stack.push(img);
}
…
Dokumentation Zuweisungsoperator von cv::Mat.